Skip to content

cloudrun.v1beta1.service

"Service is the Schema for the Services API. A Cloud Run service has a unique endpoint and autoscales containers."

Index

Fields

fn new

new(name)

new returns an instance of Service

obj metadata

"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."

fn metadata.withAnnotations

withAnnotations(annotations)

"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"

fn metadata.withAnnotationsMixin

withAnnotationsMixin(annotations)

"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"

Note: This function appends passed data to existing values

fn metadata.withClusterName

withClusterName(clusterName)

"The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request."

fn metadata.withCreationTimestamp

withCreationTimestamp(creationTimestamp)

"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."

fn metadata.withDeletionGracePeriodSeconds

withDeletionGracePeriodSeconds(deletionGracePeriodSeconds)

"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."

fn metadata.withDeletionTimestamp

withDeletionTimestamp(deletionTimestamp)

"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."

fn metadata.withFinalizers

withFinalizers(finalizers)

"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."

fn metadata.withFinalizersMixin

withFinalizersMixin(finalizers)

"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."

Note: This function appends passed data to existing values

fn metadata.withGenerateName

withGenerateName(generateName)

"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"

fn metadata.withGeneration

withGeneration(generation)

"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."

fn metadata.withLabels

withLabels(labels)

"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"

fn metadata.withLabelsMixin

withLabelsMixin(labels)

"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"

Note: This function appends passed data to existing values

fn metadata.withName

withName(name)

"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names"

fn metadata.withNamespace

withNamespace(namespace)

"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces"

fn metadata.withOwnerReferences

withOwnerReferences(ownerReferences)

"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."

fn metadata.withOwnerReferencesMixin

withOwnerReferencesMixin(ownerReferences)

"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."

Note: This function appends passed data to existing values

fn metadata.withResourceVersion

withResourceVersion(resourceVersion)

"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"

withSelfLink(selfLink)

"SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release."

fn metadata.withUid

withUid(uid)

"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids"

obj spec

"ServiceSpec defines the desired state of Service"

fn spec.withDeletionPolicy

withDeletionPolicy(deletionPolicy)

"DeletionPolicy specifies what will happen to the underlying external when this managed resource is deleted - either \"Delete\" or \"Orphan\" the external resource. This field is planned to be deprecated in favor of the ManagementPolicies field in a future release. Currently, both could be set independently and non-default values would be honored if the feature flag is enabled. See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223"

fn spec.withManagementPolicies

withManagementPolicies(managementPolicies)

"THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored unless the relevant Crossplane feature flag is enabled, and may be changed or removed without notice. ManagementPolicies specify the array of actions Crossplane is allowed to take on the managed and external resources. This field is planned to replace the DeletionPolicy field in a future release. Currently, both could be set independently and non-default values would be honored if the feature flag is enabled. If both are custom, the DeletionPolicy field will be ignored. See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md"

fn spec.withManagementPoliciesMixin

withManagementPoliciesMixin(managementPolicies)

"THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored unless the relevant Crossplane feature flag is enabled, and may be changed or removed without notice. ManagementPolicies specify the array of actions Crossplane is allowed to take on the managed and external resources. This field is planned to replace the DeletionPolicy field in a future release. Currently, both could be set independently and non-default values would be honored if the feature flag is enabled. If both are custom, the DeletionPolicy field will be ignored. See the design doc for more information: https://github.com/crossplane/crossplane/blob/499895a25d1a1a0ba1604944ef98ac7a1a71f197/design/design-doc-observe-only-resources.md?plain=1#L223 and this one: https://github.com/crossplane/crossplane/blob/444267e84783136daa93568b364a5f01228cacbe/design/one-pager-ignore-changes.md"

Note: This function appends passed data to existing values

obj spec.forProvider

fn spec.forProvider.withAutogenerateRevisionName

withAutogenerateRevisionName(autogenerateRevisionName)

"If set to true, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set to true while template.metadata.name is also set. (For legacy support, if template.metadata.name is unset in state while this field is set to false, the revision name will still autogenerate.)"

fn spec.forProvider.withLocation

withLocation(location)

"The location of the cloud run instance. eg us-central1"

fn spec.forProvider.withMetadata

withMetadata(metadata)

"Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the \"autoscaling.knative.dev/minScale\" annotation key. To set maximum instances for this revision, use the \"autoscaling.knative.dev/maxScale\" annotation key. To set Cloud SQL connections for the revision, use the \"run.googleapis.com/cloudsql-instances\" annotation key. Structure is documented below."

fn spec.forProvider.withMetadataMixin

withMetadataMixin(metadata)

"Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the \"autoscaling.knative.dev/minScale\" annotation key. To set maximum instances for this revision, use the \"autoscaling.knative.dev/maxScale\" annotation key. To set Cloud SQL connections for the revision, use the \"run.googleapis.com/cloudsql-instances\" annotation key. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.withProject

withProject(project)

"The ID of the project in which the resource belongs. If it is not provided, the provider project is used."

fn spec.forProvider.withTemplate

withTemplate(template)

"template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source. Structure is documented below."

fn spec.forProvider.withTemplateMixin

withTemplateMixin(template)

"template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.withTraffic

withTraffic(traffic)

"Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below."

fn spec.forProvider.withTrafficMixin

withTrafficMixin(traffic)

"Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below."

Note: This function appends passed data to existing values

obj spec.forProvider.metadata

"Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the \"autoscaling.knative.dev/minScale\" annotation key. To set maximum instances for this revision, use the \"autoscaling.knative.dev/maxScale\" annotation key. To set Cloud SQL connections for the revision, use the \"run.googleapis.com/cloudsql-instances\" annotation key. Structure is documented below."

fn spec.forProvider.metadata.withAnnotations

withAnnotations(annotations)

"Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: http://kubernetes.io/docs/user-guide/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config.ignore_changes rule to the metadata.0.annotations field. Annotations with run.googleapis.com/ and autoscaling.knative.dev are restricted. Use the following annotation keys to configure features on a Revision template:"

fn spec.forProvider.metadata.withAnnotationsMixin

withAnnotationsMixin(annotations)

"Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: http://kubernetes.io/docs/user-guide/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config.ignore_changes rule to the metadata.0.annotations field. Annotations with run.googleapis.com/ and autoscaling.knative.dev are restricted. Use the following annotation keys to configure features on a Revision template:"

Note: This function appends passed data to existing values

fn spec.forProvider.metadata.withLabels

withLabels(labels)

"Map of string keys and values that can be used to organize and categorize (scope and select) objects."

fn spec.forProvider.metadata.withLabelsMixin

withLabelsMixin(labels)

"Map of string keys and values that can be used to organize and categorize (scope and select) objects."

Note: This function appends passed data to existing values

fn spec.forProvider.metadata.withNamespace

withNamespace(namespace)

"In Cloud Run the namespace must be equal to either the project ID or project number. It will default to the resource's project."

obj spec.forProvider.metadata.namespaceRef

"Reference to a Project in cloudplatform to populate namespace."

fn spec.forProvider.metadata.namespaceRef.withName

withName(name)

"Name of the referenced object."

obj spec.forProvider.metadata.namespaceRef.policy

"Policies for referencing."

fn spec.forProvider.metadata.namespaceRef.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.metadata.namespaceRef.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.metadata.namespaceSelector

"Selector for a Project in cloudplatform to populate namespace."

fn spec.forProvider.metadata.namespaceSelector.withMatchControllerRef

withMatchControllerRef(matchControllerRef)

"MatchControllerRef ensures an object with the same controller reference as the selecting object is selected."

fn spec.forProvider.metadata.namespaceSelector.withMatchLabels

withMatchLabels(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

fn spec.forProvider.metadata.namespaceSelector.withMatchLabelsMixin

withMatchLabelsMixin(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

Note: This function appends passed data to existing values

obj spec.forProvider.metadata.namespaceSelector.policy

"Policies for selection."

fn spec.forProvider.metadata.namespaceSelector.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.metadata.namespaceSelector.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.template

"template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source. Structure is documented below."

fn spec.forProvider.template.withMetadata

withMetadata(metadata)

"Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the \"autoscaling.knative.dev/minScale\" annotation key. To set maximum instances for this revision, use the \"autoscaling.knative.dev/maxScale\" annotation key. To set Cloud SQL connections for the revision, use the \"run.googleapis.com/cloudsql-instances\" annotation key. Structure is documented below."

fn spec.forProvider.template.withMetadataMixin

withMetadataMixin(metadata)

"Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the \"autoscaling.knative.dev/minScale\" annotation key. To set maximum instances for this revision, use the \"autoscaling.knative.dev/maxScale\" annotation key. To set Cloud SQL connections for the revision, use the \"run.googleapis.com/cloudsql-instances\" annotation key. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.withSpec

withSpec(spec)

"RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below."

fn spec.forProvider.template.withSpecMixin

withSpecMixin(spec)

"RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below."

Note: This function appends passed data to existing values

obj spec.forProvider.template.metadata

"Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the \"autoscaling.knative.dev/minScale\" annotation key. To set maximum instances for this revision, use the \"autoscaling.knative.dev/maxScale\" annotation key. To set Cloud SQL connections for the revision, use the \"run.googleapis.com/cloudsql-instances\" annotation key. Structure is documented below."

fn spec.forProvider.template.metadata.withAnnotations

withAnnotations(annotations)

"Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: http://kubernetes.io/docs/user-guide/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config.ignore_changes rule to the metadata.0.annotations field. Annotations with run.googleapis.com/ and autoscaling.knative.dev are restricted. Use the following annotation keys to configure features on a Revision template:"

fn spec.forProvider.template.metadata.withAnnotationsMixin

withAnnotationsMixin(annotations)

"Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: http://kubernetes.io/docs/user-guide/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config.ignore_changes rule to the metadata.0.annotations field. Annotations with run.googleapis.com/ and autoscaling.knative.dev are restricted. Use the following annotation keys to configure features on a Revision template:"

Note: This function appends passed data to existing values

fn spec.forProvider.template.metadata.withLabels

withLabels(labels)

"Map of string keys and values that can be used to organize and categorize (scope and select) objects."

fn spec.forProvider.template.metadata.withLabelsMixin

withLabelsMixin(labels)

"Map of string keys and values that can be used to organize and categorize (scope and select) objects."

Note: This function appends passed data to existing values

fn spec.forProvider.template.metadata.withName

withName(name)

"Volume's name."

fn spec.forProvider.template.metadata.withNamespace

withNamespace(namespace)

"In Cloud Run the namespace must be equal to either the project ID or project number. It will default to the resource's project."

obj spec.forProvider.template.spec

"RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below."

fn spec.forProvider.template.spec.withContainerConcurrency

withContainerConcurrency(containerConcurrency)

"ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container of the Revision. Values are:"

fn spec.forProvider.template.spec.withContainers

withContainers(containers)

"Container defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of the fields of this Container, including: name, ports, and volumeMounts. Structure is documented below."

fn spec.forProvider.template.spec.withContainersMixin

withContainersMixin(containers)

"Container defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of the fields of this Container, including: name, ports, and volumeMounts. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.withServiceAccountName

withServiceAccountName(serviceAccountName)

"Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account."

fn spec.forProvider.template.spec.withTimeoutSeconds

withTimeoutSeconds(timeoutSeconds)

"Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds."

fn spec.forProvider.template.spec.withVolumes

withVolumes(volumes)

"Volume represents a named volume in a container. Structure is documented below."

fn spec.forProvider.template.spec.withVolumesMixin

withVolumesMixin(volumes)

"Volume represents a named volume in a container. Structure is documented below."

Note: This function appends passed data to existing values

obj spec.forProvider.template.spec.containers

"Container defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of the fields of this Container, including: name, ports, and volumeMounts. Structure is documented below."

fn spec.forProvider.template.spec.containers.withArgs

withArgs(args)

"Arguments to the entrypoint. The docker image's CMD is used if this is not provided."

fn spec.forProvider.template.spec.containers.withArgsMixin

withArgsMixin(args)

"Arguments to the entrypoint. The docker image's CMD is used if this is not provided."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.withCommand

withCommand(command)

"Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided."

fn spec.forProvider.template.spec.containers.withCommandMixin

withCommandMixin(command)

"Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.withEnv

withEnv(env)

"List of environment variables to set in the container. Structure is documented below."

fn spec.forProvider.template.spec.containers.withEnvFrom

withEnvFrom(envFrom)

"List of sources to populate environment variables in the container. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Structure is documented below."

fn spec.forProvider.template.spec.containers.withEnvFromMixin

withEnvFromMixin(envFrom)

"List of sources to populate environment variables in the container. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.withEnvMixin

withEnvMixin(env)

"List of environment variables to set in the container. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.withImage

withImage(image)

"Docker image name. This is most often a reference to a container located in the container registry, such as gcr.io/cloudrun/hello"

fn spec.forProvider.template.spec.containers.withLivenessProbe

withLivenessProbe(livenessProbe)

"Periodic probe of container liveness. Container will be restarted if the probe fails. Structure is documented below."

fn spec.forProvider.template.spec.containers.withLivenessProbeMixin

withLivenessProbeMixin(livenessProbe)

"Periodic probe of container liveness. Container will be restarted if the probe fails. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.withPorts

withPorts(ports)

"List of open ports in the container. Structure is documented below."

fn spec.forProvider.template.spec.containers.withPortsMixin

withPortsMixin(ports)

"List of open ports in the container. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.withResources

withResources(resources)

"Compute Resources required by this container. Used to set values such as max memory Structure is documented below."

fn spec.forProvider.template.spec.containers.withResourcesMixin

withResourcesMixin(resources)

"Compute Resources required by this container. Used to set values such as max memory Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.withStartupProbe

withStartupProbe(startupProbe)

"Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. Structure is documented below."

fn spec.forProvider.template.spec.containers.withStartupProbeMixin

withStartupProbeMixin(startupProbe)

"Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.withVolumeMounts

withVolumeMounts(volumeMounts)

"Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below."

fn spec.forProvider.template.spec.containers.withVolumeMountsMixin

withVolumeMountsMixin(volumeMounts)

"Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.withWorkingDir

withWorkingDir(workingDir)

"Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image."

obj spec.forProvider.template.spec.containers.env

"List of environment variables to set in the container. Structure is documented below."

fn spec.forProvider.template.spec.containers.env.withName

withName(name)

"Volume's name."

fn spec.forProvider.template.spec.containers.env.withValue

withValue(value)

"The header field value."

fn spec.forProvider.template.spec.containers.env.withValueFrom

withValueFrom(valueFrom)

"Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below."

fn spec.forProvider.template.spec.containers.env.withValueFromMixin

withValueFromMixin(valueFrom)

"Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below."

Note: This function appends passed data to existing values

obj spec.forProvider.template.spec.containers.env.valueFrom

"Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below."

fn spec.forProvider.template.spec.containers.env.valueFrom.withSecretKeyRef

withSecretKeyRef(secretKeyRef)

"Selects a key (version) of a secret in Secret Manager. Structure is documented below."

fn spec.forProvider.template.spec.containers.env.valueFrom.withSecretKeyRefMixin

withSecretKeyRefMixin(secretKeyRef)

"Selects a key (version) of a secret in Secret Manager. Structure is documented below."

Note: This function appends passed data to existing values

obj spec.forProvider.template.spec.containers.env.valueFrom.secretKeyRef

"Selects a key (version) of a secret in Secret Manager. Structure is documented below."

fn spec.forProvider.template.spec.containers.env.valueFrom.secretKeyRef.withKey

withKey(key)

"A Cloud Secret Manager secret version. Must be 'latest' for the latest version or an integer for a specific version."

fn spec.forProvider.template.spec.containers.env.valueFrom.secretKeyRef.withName

withName(name)

"Volume's name."

obj spec.forProvider.template.spec.containers.env.valueFrom.secretKeyRef.nameRef

"Reference to a Secret in secretmanager to populate name."

fn spec.forProvider.template.spec.containers.env.valueFrom.secretKeyRef.nameRef.withName

withName(name)

"Name of the referenced object."

obj spec.forProvider.template.spec.containers.env.valueFrom.secretKeyRef.nameRef.policy

"Policies for referencing."

fn spec.forProvider.template.spec.containers.env.valueFrom.secretKeyRef.nameRef.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.template.spec.containers.env.valueFrom.secretKeyRef.nameRef.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.template.spec.containers.env.valueFrom.secretKeyRef.nameSelector

"Selector for a Secret in secretmanager to populate name."

fn spec.forProvider.template.spec.containers.env.valueFrom.secretKeyRef.nameSelector.withMatchControllerRef

withMatchControllerRef(matchControllerRef)

"MatchControllerRef ensures an object with the same controller reference as the selecting object is selected."

fn spec.forProvider.template.spec.containers.env.valueFrom.secretKeyRef.nameSelector.withMatchLabels

withMatchLabels(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

fn spec.forProvider.template.spec.containers.env.valueFrom.secretKeyRef.nameSelector.withMatchLabelsMixin

withMatchLabelsMixin(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

Note: This function appends passed data to existing values

obj spec.forProvider.template.spec.containers.env.valueFrom.secretKeyRef.nameSelector.policy

"Policies for selection."

fn spec.forProvider.template.spec.containers.env.valueFrom.secretKeyRef.nameSelector.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.template.spec.containers.env.valueFrom.secretKeyRef.nameSelector.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.template.spec.containers.envFrom

"List of sources to populate environment variables in the container. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Structure is documented below."

fn spec.forProvider.template.spec.containers.envFrom.withConfigMapRef

withConfigMapRef(configMapRef)

"The ConfigMap to select from. Structure is documented below."

fn spec.forProvider.template.spec.containers.envFrom.withConfigMapRefMixin

withConfigMapRefMixin(configMapRef)

"The ConfigMap to select from. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.envFrom.withPrefix

withPrefix(prefix)

"An optional identifier to prepend to each key in the ConfigMap."

fn spec.forProvider.template.spec.containers.envFrom.withSecretRef

withSecretRef(secretRef)

"The Secret to select from. Structure is documented below."

fn spec.forProvider.template.spec.containers.envFrom.withSecretRefMixin

withSecretRefMixin(secretRef)

"The Secret to select from. Structure is documented below."

Note: This function appends passed data to existing values

obj spec.forProvider.template.spec.containers.envFrom.configMapRef

"The ConfigMap to select from. Structure is documented below."

fn spec.forProvider.template.spec.containers.envFrom.configMapRef.withLocalObjectReference

withLocalObjectReference(localObjectReference)

"The Secret to select from. Structure is documented below."

fn spec.forProvider.template.spec.containers.envFrom.configMapRef.withLocalObjectReferenceMixin

withLocalObjectReferenceMixin(localObjectReference)

"The Secret to select from. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.envFrom.configMapRef.withOptional

withOptional(optional)

"Specify whether the Secret must be defined"

obj spec.forProvider.template.spec.containers.envFrom.configMapRef.localObjectReference

"The Secret to select from. Structure is documented below."

fn spec.forProvider.template.spec.containers.envFrom.configMapRef.localObjectReference.withName

withName(name)

"Volume's name."

obj spec.forProvider.template.spec.containers.envFrom.secretRef

"The Secret to select from. Structure is documented below."

fn spec.forProvider.template.spec.containers.envFrom.secretRef.withLocalObjectReference

withLocalObjectReference(localObjectReference)

"The Secret to select from. Structure is documented below."

fn spec.forProvider.template.spec.containers.envFrom.secretRef.withLocalObjectReferenceMixin

withLocalObjectReferenceMixin(localObjectReference)

"The Secret to select from. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.envFrom.secretRef.withOptional

withOptional(optional)

"Specify whether the Secret must be defined"

obj spec.forProvider.template.spec.containers.envFrom.secretRef.localObjectReference

"The Secret to select from. Structure is documented below."

fn spec.forProvider.template.spec.containers.envFrom.secretRef.localObjectReference.withName

withName(name)

"Volume's name."

obj spec.forProvider.template.spec.containers.livenessProbe

"Periodic probe of container liveness. Container will be restarted if the probe fails. Structure is documented below."

fn spec.forProvider.template.spec.containers.livenessProbe.withFailureThreshold

withFailureThreshold(failureThreshold)

"Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1."

fn spec.forProvider.template.spec.containers.livenessProbe.withGrpc

withGrpc(grpc)

"GRPC specifies an action involving a GRPC port. Structure is documented below."

fn spec.forProvider.template.spec.containers.livenessProbe.withGrpcMixin

withGrpcMixin(grpc)

"GRPC specifies an action involving a GRPC port. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.livenessProbe.withHttpGet

withHttpGet(httpGet)

"HttpGet specifies the http request to perform. Structure is documented below."

fn spec.forProvider.template.spec.containers.livenessProbe.withHttpGetMixin

withHttpGetMixin(httpGet)

"HttpGet specifies the http request to perform. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.livenessProbe.withInitialDelaySeconds

withInitialDelaySeconds(initialDelaySeconds)

"Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value is 240."

fn spec.forProvider.template.spec.containers.livenessProbe.withPeriodSeconds

withPeriodSeconds(periodSeconds)

"How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 240."

fn spec.forProvider.template.spec.containers.livenessProbe.withTimeoutSeconds

withTimeoutSeconds(timeoutSeconds)

"Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds."

obj spec.forProvider.template.spec.containers.livenessProbe.grpc

"GRPC specifies an action involving a GRPC port. Structure is documented below."

fn spec.forProvider.template.spec.containers.livenessProbe.grpc.withPort

withPort(port)

"Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort."

fn spec.forProvider.template.spec.containers.livenessProbe.grpc.withService

withService(service)

"The name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC."

obj spec.forProvider.template.spec.containers.livenessProbe.httpGet

"HttpGet specifies the http request to perform. Structure is documented below."

fn spec.forProvider.template.spec.containers.livenessProbe.httpGet.withHttpHeaders

withHttpHeaders(httpHeaders)

"Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below."

fn spec.forProvider.template.spec.containers.livenessProbe.httpGet.withHttpHeadersMixin

withHttpHeadersMixin(httpHeaders)

"Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.livenessProbe.httpGet.withPath

withPath(path)

"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 '..'."

fn spec.forProvider.template.spec.containers.livenessProbe.httpGet.withPort

withPort(port)

"Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort."

obj spec.forProvider.template.spec.containers.livenessProbe.httpGet.httpHeaders

"Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below."

fn spec.forProvider.template.spec.containers.livenessProbe.httpGet.httpHeaders.withName

withName(name)

"Volume's name."

fn spec.forProvider.template.spec.containers.livenessProbe.httpGet.httpHeaders.withValue

withValue(value)

"The header field value."

obj spec.forProvider.template.spec.containers.ports

"List of open ports in the container. Structure is documented below."

fn spec.forProvider.template.spec.containers.ports.withContainerPort

withContainerPort(containerPort)

"Port number the container listens on. This must be a valid port number (between 1 and 65535). Defaults to \"8080\"."

fn spec.forProvider.template.spec.containers.ports.withName

withName(name)

"Volume's name."

fn spec.forProvider.template.spec.containers.ports.withProtocol

withProtocol(protocol)

"Protocol for port. Must be \"TCP\". Defaults to \"TCP\"."

obj spec.forProvider.template.spec.containers.resources

"Compute Resources required by this container. Used to set values such as max memory Structure is documented below."

fn spec.forProvider.template.spec.containers.resources.withLimits

withLimits(limits)

"Limits describes the maximum amount of compute resources allowed. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go"

fn spec.forProvider.template.spec.containers.resources.withLimitsMixin

withLimitsMixin(limits)

"Limits describes the maximum amount of compute resources allowed. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go"

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.resources.withRequests

withRequests(requests)

"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. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go"

fn spec.forProvider.template.spec.containers.resources.withRequestsMixin

withRequestsMixin(requests)

"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. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go"

Note: This function appends passed data to existing values

obj spec.forProvider.template.spec.containers.startupProbe

"Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. Structure is documented below."

fn spec.forProvider.template.spec.containers.startupProbe.withFailureThreshold

withFailureThreshold(failureThreshold)

"Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1."

fn spec.forProvider.template.spec.containers.startupProbe.withGrpc

withGrpc(grpc)

"GRPC specifies an action involving a GRPC port. Structure is documented below."

fn spec.forProvider.template.spec.containers.startupProbe.withGrpcMixin

withGrpcMixin(grpc)

"GRPC specifies an action involving a GRPC port. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.startupProbe.withHttpGet

withHttpGet(httpGet)

"HttpGet specifies the http request to perform. Structure is documented below."

fn spec.forProvider.template.spec.containers.startupProbe.withHttpGetMixin

withHttpGetMixin(httpGet)

"HttpGet specifies the http request to perform. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.startupProbe.withInitialDelaySeconds

withInitialDelaySeconds(initialDelaySeconds)

"Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value is 240."

fn spec.forProvider.template.spec.containers.startupProbe.withPeriodSeconds

withPeriodSeconds(periodSeconds)

"How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 240."

fn spec.forProvider.template.spec.containers.startupProbe.withTcpSocket

withTcpSocket(tcpSocket)

"TcpSocket specifies an action involving a TCP port. Structure is documented below."

fn spec.forProvider.template.spec.containers.startupProbe.withTcpSocketMixin

withTcpSocketMixin(tcpSocket)

"TcpSocket specifies an action involving a TCP port. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.startupProbe.withTimeoutSeconds

withTimeoutSeconds(timeoutSeconds)

"Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds."

obj spec.forProvider.template.spec.containers.startupProbe.grpc

"GRPC specifies an action involving a GRPC port. Structure is documented below."

fn spec.forProvider.template.spec.containers.startupProbe.grpc.withPort

withPort(port)

"Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort."

fn spec.forProvider.template.spec.containers.startupProbe.grpc.withService

withService(service)

"The name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC."

obj spec.forProvider.template.spec.containers.startupProbe.httpGet

"HttpGet specifies the http request to perform. Structure is documented below."

fn spec.forProvider.template.spec.containers.startupProbe.httpGet.withHttpHeaders

withHttpHeaders(httpHeaders)

"Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below."

fn spec.forProvider.template.spec.containers.startupProbe.httpGet.withHttpHeadersMixin

withHttpHeadersMixin(httpHeaders)

"Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.containers.startupProbe.httpGet.withPath

withPath(path)

"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 '..'."

fn spec.forProvider.template.spec.containers.startupProbe.httpGet.withPort

withPort(port)

"Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort."

obj spec.forProvider.template.spec.containers.startupProbe.httpGet.httpHeaders

"Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below."

fn spec.forProvider.template.spec.containers.startupProbe.httpGet.httpHeaders.withName

withName(name)

"Volume's name."

fn spec.forProvider.template.spec.containers.startupProbe.httpGet.httpHeaders.withValue

withValue(value)

"The header field value."

obj spec.forProvider.template.spec.containers.startupProbe.tcpSocket

"TcpSocket specifies an action involving a TCP port. Structure is documented below."

fn spec.forProvider.template.spec.containers.startupProbe.tcpSocket.withPort

withPort(port)

"Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort."

obj spec.forProvider.template.spec.containers.volumeMounts

"Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below."

fn spec.forProvider.template.spec.containers.volumeMounts.withMountPath

withMountPath(mountPath)

"Path within the container at which the volume should be mounted. Must not contain ':'."

fn spec.forProvider.template.spec.containers.volumeMounts.withName

withName(name)

"Volume's name."

obj spec.forProvider.template.spec.volumes

"Volume represents a named volume in a container. Structure is documented below."

fn spec.forProvider.template.spec.volumes.withName

withName(name)

"Volume's name."

fn spec.forProvider.template.spec.volumes.withSecret

withSecret(secret)

"The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secret_name. Structure is documented below."

fn spec.forProvider.template.spec.volumes.withSecretMixin

withSecretMixin(secret)

"The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secret_name. Structure is documented below."

Note: This function appends passed data to existing values

obj spec.forProvider.template.spec.volumes.secret

"The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secret_name. Structure is documented below."

fn spec.forProvider.template.spec.volumes.secret.withDefaultMode

withDefaultMode(defaultMode)

"Mode bits to use on created files by default. Must be a value between 0000 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."

fn spec.forProvider.template.spec.volumes.secret.withItems

withItems(items)

"If unspecified, the volume will expose a file whose name is the secret_name. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a key and a path. Structure is documented below."

fn spec.forProvider.template.spec.volumes.secret.withItemsMixin

withItemsMixin(items)

"If unspecified, the volume will expose a file whose name is the secret_name. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a key and a path. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.forProvider.template.spec.volumes.secret.withSecretName

withSecretName(secretName)

"The name of the secret in Cloud Secret Manager. By default, the secret is assumed to be in the same project. If the secret is in another project, you must define an alias. An alias definition has the form: {alias}:projects/{project-id|project-number}/secrets/{secret-name}. If multiple alias definitions are needed, they must be separated by commas. The alias definitions must be set on the run.googleapis.com/secrets annotation."

obj spec.forProvider.template.spec.volumes.secret.items

"If unspecified, the volume will expose a file whose name is the secret_name. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a key and a path. Structure is documented below."

fn spec.forProvider.template.spec.volumes.secret.items.withKey

withKey(key)

"A Cloud Secret Manager secret version. Must be 'latest' for the latest version or an integer for a specific version."

fn spec.forProvider.template.spec.volumes.secret.items.withMode

withMode(mode)

"Mode bits to use on this file, must be a value between 0000 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."

fn spec.forProvider.template.spec.volumes.secret.items.withPath

withPath(path)

"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 '..'."

obj spec.forProvider.template.spec.volumes.secret.secretNameRef

"Reference to a Secret in secretmanager to populate secretName."

fn spec.forProvider.template.spec.volumes.secret.secretNameRef.withName

withName(name)

"Name of the referenced object."

obj spec.forProvider.template.spec.volumes.secret.secretNameRef.policy

"Policies for referencing."

fn spec.forProvider.template.spec.volumes.secret.secretNameRef.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.template.spec.volumes.secret.secretNameRef.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.template.spec.volumes.secret.secretNameSelector

"Selector for a Secret in secretmanager to populate secretName."

fn spec.forProvider.template.spec.volumes.secret.secretNameSelector.withMatchControllerRef

withMatchControllerRef(matchControllerRef)

"MatchControllerRef ensures an object with the same controller reference as the selecting object is selected."

fn spec.forProvider.template.spec.volumes.secret.secretNameSelector.withMatchLabels

withMatchLabels(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

fn spec.forProvider.template.spec.volumes.secret.secretNameSelector.withMatchLabelsMixin

withMatchLabelsMixin(matchLabels)

"MatchLabels ensures an object with matching labels is selected."

Note: This function appends passed data to existing values

obj spec.forProvider.template.spec.volumes.secret.secretNameSelector.policy

"Policies for selection."

fn spec.forProvider.template.spec.volumes.secret.secretNameSelector.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.forProvider.template.spec.volumes.secret.secretNameSelector.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.forProvider.traffic

"Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below."

fn spec.forProvider.traffic.withLatestRevision

withLatestRevision(latestRevision)

"LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty."

fn spec.forProvider.traffic.withPercent

withPercent(percent)

"Percent specifies percent of the traffic to this Revision or Configuration."

fn spec.forProvider.traffic.withRevisionName

withRevisionName(revisionName)

"RevisionName of a specific revision to which to send this portion of traffic."

fn spec.forProvider.traffic.withTag

withTag(tag)

"Tag is optionally used to expose a dedicated url for referencing this target exclusively."

obj spec.initProvider

"THIS IS AN ALPHA FIELD. Do not use it in production. It is not honored unless the relevant Crossplane feature flag is enabled, and may be changed or removed without notice. InitProvider holds the same fields as ForProvider, with the exception of Identifier and other resource reference fields. The fields that are in InitProvider are merged into ForProvider when the resource is created. The same fields are also added to the terraform ignore_changes hook, to avoid updating them after creation. This is useful for fields that are required on creation, but we do not desire to update them after creation, for example because of an external controller is managing them, like an autoscaler."

fn spec.initProvider.withAutogenerateRevisionName

withAutogenerateRevisionName(autogenerateRevisionName)

"If set to true, the revision name (template.metadata.name) will be omitted and autogenerated by Cloud Run. This cannot be set to true while template.metadata.name is also set. (For legacy support, if template.metadata.name is unset in state while this field is set to false, the revision name will still autogenerate.)"

fn spec.initProvider.withMetadata

withMetadata(metadata)

"Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the \"autoscaling.knative.dev/minScale\" annotation key. To set maximum instances for this revision, use the \"autoscaling.knative.dev/maxScale\" annotation key. To set Cloud SQL connections for the revision, use the \"run.googleapis.com/cloudsql-instances\" annotation key. Structure is documented below."

fn spec.initProvider.withMetadataMixin

withMetadataMixin(metadata)

"Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the \"autoscaling.knative.dev/minScale\" annotation key. To set maximum instances for this revision, use the \"autoscaling.knative.dev/maxScale\" annotation key. To set Cloud SQL connections for the revision, use the \"run.googleapis.com/cloudsql-instances\" annotation key. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.withProject

withProject(project)

"The ID of the project in which the resource belongs. If it is not provided, the provider project is used."

fn spec.initProvider.withTemplate

withTemplate(template)

"template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source. Structure is documented below."

fn spec.initProvider.withTemplateMixin

withTemplateMixin(template)

"template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.withTraffic

withTraffic(traffic)

"Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below."

fn spec.initProvider.withTrafficMixin

withTrafficMixin(traffic)

"Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below."

Note: This function appends passed data to existing values

obj spec.initProvider.metadata

"Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the \"autoscaling.knative.dev/minScale\" annotation key. To set maximum instances for this revision, use the \"autoscaling.knative.dev/maxScale\" annotation key. To set Cloud SQL connections for the revision, use the \"run.googleapis.com/cloudsql-instances\" annotation key. Structure is documented below."

fn spec.initProvider.metadata.withAnnotations

withAnnotations(annotations)

"Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: http://kubernetes.io/docs/user-guide/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config.ignore_changes rule to the metadata.0.annotations field. Annotations with run.googleapis.com/ and autoscaling.knative.dev are restricted. Use the following annotation keys to configure features on a Revision template:"

fn spec.initProvider.metadata.withAnnotationsMixin

withAnnotationsMixin(annotations)

"Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: http://kubernetes.io/docs/user-guide/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config.ignore_changes rule to the metadata.0.annotations field. Annotations with run.googleapis.com/ and autoscaling.knative.dev are restricted. Use the following annotation keys to configure features on a Revision template:"

Note: This function appends passed data to existing values

fn spec.initProvider.metadata.withLabels

withLabels(labels)

"Map of string keys and values that can be used to organize and categorize (scope and select) objects."

fn spec.initProvider.metadata.withLabelsMixin

withLabelsMixin(labels)

"Map of string keys and values that can be used to organize and categorize (scope and select) objects."

Note: This function appends passed data to existing values

obj spec.initProvider.template

"template holds the latest specification for the Revision to be stamped out. The template references the container image, and may also include labels and annotations that should be attached to the Revision. To correlate a Revision, and/or to force a Revision to be created when the spec doesn't otherwise change, a nonce label may be provided in the template metadata. For more details, see: https://github.com/knative/serving/blob/main/docs/client-conventions.md#associate-modifications-with-revisions Cloud Run does not currently support referencing a build that is responsible for materializing the container image from source. Structure is documented below."

fn spec.initProvider.template.withMetadata

withMetadata(metadata)

"Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the \"autoscaling.knative.dev/minScale\" annotation key. To set maximum instances for this revision, use the \"autoscaling.knative.dev/maxScale\" annotation key. To set Cloud SQL connections for the revision, use the \"run.googleapis.com/cloudsql-instances\" annotation key. Structure is documented below."

fn spec.initProvider.template.withMetadataMixin

withMetadataMixin(metadata)

"Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the \"autoscaling.knative.dev/minScale\" annotation key. To set maximum instances for this revision, use the \"autoscaling.knative.dev/maxScale\" annotation key. To set Cloud SQL connections for the revision, use the \"run.googleapis.com/cloudsql-instances\" annotation key. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.withSpec

withSpec(spec)

"RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below."

fn spec.initProvider.template.withSpecMixin

withSpecMixin(spec)

"RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below."

Note: This function appends passed data to existing values

obj spec.initProvider.template.metadata

"Optional metadata for this Revision, including labels and annotations. Name will be generated by the Configuration. To set minimum instances for this revision, use the \"autoscaling.knative.dev/minScale\" annotation key. To set maximum instances for this revision, use the \"autoscaling.knative.dev/maxScale\" annotation key. To set Cloud SQL connections for the revision, use the \"run.googleapis.com/cloudsql-instances\" annotation key. Structure is documented below."

fn spec.initProvider.template.metadata.withAnnotations

withAnnotations(annotations)

"Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: http://kubernetes.io/docs/user-guide/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config.ignore_changes rule to the metadata.0.annotations field. Annotations with run.googleapis.com/ and autoscaling.knative.dev are restricted. Use the following annotation keys to configure features on a Revision template:"

fn spec.initProvider.template.metadata.withAnnotationsMixin

withAnnotationsMixin(annotations)

"Annotations is a key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. More info: http://kubernetes.io/docs/user-guide/annotations Note: The Cloud Run API may add additional annotations that were not provided in your config.ignore_changes rule to the metadata.0.annotations field. Annotations with run.googleapis.com/ and autoscaling.knative.dev are restricted. Use the following annotation keys to configure features on a Revision template:"

Note: This function appends passed data to existing values

fn spec.initProvider.template.metadata.withLabels

withLabels(labels)

"Map of string keys and values that can be used to organize and categorize (scope and select) objects."

fn spec.initProvider.template.metadata.withLabelsMixin

withLabelsMixin(labels)

"Map of string keys and values that can be used to organize and categorize (scope and select) objects."

Note: This function appends passed data to existing values

fn spec.initProvider.template.metadata.withName

withName(name)

"Volume's name."

fn spec.initProvider.template.metadata.withNamespace

withNamespace(namespace)

"In Cloud Run the namespace must be equal to either the project ID or project number. It will default to the resource's project."

obj spec.initProvider.template.spec

"RevisionSpec holds the desired state of the Revision (from the client). Structure is documented below."

fn spec.initProvider.template.spec.withContainerConcurrency

withContainerConcurrency(containerConcurrency)

"ContainerConcurrency specifies the maximum allowed in-flight (concurrent) requests per container of the Revision. Values are:"

fn spec.initProvider.template.spec.withContainers

withContainers(containers)

"Container defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of the fields of this Container, including: name, ports, and volumeMounts. Structure is documented below."

fn spec.initProvider.template.spec.withContainersMixin

withContainersMixin(containers)

"Container defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of the fields of this Container, including: name, ports, and volumeMounts. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.withServiceAccountName

withServiceAccountName(serviceAccountName)

"Email address of the IAM service account associated with the revision of the service. The service account represents the identity of the running revision, and determines what permissions the revision has. If not provided, the revision will use the project's default service account."

fn spec.initProvider.template.spec.withTimeoutSeconds

withTimeoutSeconds(timeoutSeconds)

"Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds."

fn spec.initProvider.template.spec.withVolumes

withVolumes(volumes)

"Volume represents a named volume in a container. Structure is documented below."

fn spec.initProvider.template.spec.withVolumesMixin

withVolumesMixin(volumes)

"Volume represents a named volume in a container. Structure is documented below."

Note: This function appends passed data to existing values

obj spec.initProvider.template.spec.containers

"Container defines the unit of execution for this Revision. In the context of a Revision, we disallow a number of the fields of this Container, including: name, ports, and volumeMounts. Structure is documented below."

fn spec.initProvider.template.spec.containers.withArgs

withArgs(args)

"Arguments to the entrypoint. The docker image's CMD is used if this is not provided."

fn spec.initProvider.template.spec.containers.withArgsMixin

withArgsMixin(args)

"Arguments to the entrypoint. The docker image's CMD is used if this is not provided."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.withCommand

withCommand(command)

"Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided."

fn spec.initProvider.template.spec.containers.withCommandMixin

withCommandMixin(command)

"Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.withEnv

withEnv(env)

"List of environment variables to set in the container. Structure is documented below."

fn spec.initProvider.template.spec.containers.withEnvFrom

withEnvFrom(envFrom)

"List of sources to populate environment variables in the container. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Structure is documented below."

fn spec.initProvider.template.spec.containers.withEnvFromMixin

withEnvFromMixin(envFrom)

"List of sources to populate environment variables in the container. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.withEnvMixin

withEnvMixin(env)

"List of environment variables to set in the container. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.withImage

withImage(image)

"Docker image name. This is most often a reference to a container located in the container registry, such as gcr.io/cloudrun/hello"

fn spec.initProvider.template.spec.containers.withLivenessProbe

withLivenessProbe(livenessProbe)

"Periodic probe of container liveness. Container will be restarted if the probe fails. Structure is documented below."

fn spec.initProvider.template.spec.containers.withLivenessProbeMixin

withLivenessProbeMixin(livenessProbe)

"Periodic probe of container liveness. Container will be restarted if the probe fails. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.withPorts

withPorts(ports)

"List of open ports in the container. Structure is documented below."

fn spec.initProvider.template.spec.containers.withPortsMixin

withPortsMixin(ports)

"List of open ports in the container. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.withResources

withResources(resources)

"Compute Resources required by this container. Used to set values such as max memory Structure is documented below."

fn spec.initProvider.template.spec.containers.withResourcesMixin

withResourcesMixin(resources)

"Compute Resources required by this container. Used to set values such as max memory Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.withStartupProbe

withStartupProbe(startupProbe)

"Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. Structure is documented below."

fn spec.initProvider.template.spec.containers.withStartupProbeMixin

withStartupProbeMixin(startupProbe)

"Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.withVolumeMounts

withVolumeMounts(volumeMounts)

"Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below."

fn spec.initProvider.template.spec.containers.withVolumeMountsMixin

withVolumeMountsMixin(volumeMounts)

"Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.withWorkingDir

withWorkingDir(workingDir)

"Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image."

obj spec.initProvider.template.spec.containers.env

"List of environment variables to set in the container. Structure is documented below."

fn spec.initProvider.template.spec.containers.env.withName

withName(name)

"Volume's name."

fn spec.initProvider.template.spec.containers.env.withValue

withValue(value)

"The header field value."

fn spec.initProvider.template.spec.containers.env.withValueFrom

withValueFrom(valueFrom)

"Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below."

fn spec.initProvider.template.spec.containers.env.withValueFromMixin

withValueFromMixin(valueFrom)

"Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below."

Note: This function appends passed data to existing values

obj spec.initProvider.template.spec.containers.env.valueFrom

"Source for the environment variable's value. Only supports secret_key_ref. Structure is documented below."

fn spec.initProvider.template.spec.containers.env.valueFrom.withSecretKeyRef

withSecretKeyRef(secretKeyRef)

"Selects a key (version) of a secret in Secret Manager. Structure is documented below."

fn spec.initProvider.template.spec.containers.env.valueFrom.withSecretKeyRefMixin

withSecretKeyRefMixin(secretKeyRef)

"Selects a key (version) of a secret in Secret Manager. Structure is documented below."

Note: This function appends passed data to existing values

obj spec.initProvider.template.spec.containers.env.valueFrom.secretKeyRef

"Selects a key (version) of a secret in Secret Manager. Structure is documented below."

fn spec.initProvider.template.spec.containers.env.valueFrom.secretKeyRef.withKey

withKey(key)

"A Cloud Secret Manager secret version. Must be 'latest' for the latest version or an integer for a specific version."

obj spec.initProvider.template.spec.containers.envFrom

"List of sources to populate environment variables in the container. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Structure is documented below."

fn spec.initProvider.template.spec.containers.envFrom.withConfigMapRef

withConfigMapRef(configMapRef)

"The ConfigMap to select from. Structure is documented below."

fn spec.initProvider.template.spec.containers.envFrom.withConfigMapRefMixin

withConfigMapRefMixin(configMapRef)

"The ConfigMap to select from. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.envFrom.withPrefix

withPrefix(prefix)

"An optional identifier to prepend to each key in the ConfigMap."

fn spec.initProvider.template.spec.containers.envFrom.withSecretRef

withSecretRef(secretRef)

"The Secret to select from. Structure is documented below."

fn spec.initProvider.template.spec.containers.envFrom.withSecretRefMixin

withSecretRefMixin(secretRef)

"The Secret to select from. Structure is documented below."

Note: This function appends passed data to existing values

obj spec.initProvider.template.spec.containers.envFrom.configMapRef

"The ConfigMap to select from. Structure is documented below."

fn spec.initProvider.template.spec.containers.envFrom.configMapRef.withLocalObjectReference

withLocalObjectReference(localObjectReference)

"The Secret to select from. Structure is documented below."

fn spec.initProvider.template.spec.containers.envFrom.configMapRef.withLocalObjectReferenceMixin

withLocalObjectReferenceMixin(localObjectReference)

"The Secret to select from. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.envFrom.configMapRef.withOptional

withOptional(optional)

"Specify whether the Secret must be defined"

obj spec.initProvider.template.spec.containers.envFrom.configMapRef.localObjectReference

"The Secret to select from. Structure is documented below."

fn spec.initProvider.template.spec.containers.envFrom.configMapRef.localObjectReference.withName

withName(name)

"Volume's name."

obj spec.initProvider.template.spec.containers.envFrom.secretRef

"The Secret to select from. Structure is documented below."

fn spec.initProvider.template.spec.containers.envFrom.secretRef.withLocalObjectReference

withLocalObjectReference(localObjectReference)

"The Secret to select from. Structure is documented below."

fn spec.initProvider.template.spec.containers.envFrom.secretRef.withLocalObjectReferenceMixin

withLocalObjectReferenceMixin(localObjectReference)

"The Secret to select from. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.envFrom.secretRef.withOptional

withOptional(optional)

"Specify whether the Secret must be defined"

obj spec.initProvider.template.spec.containers.envFrom.secretRef.localObjectReference

"The Secret to select from. Structure is documented below."

fn spec.initProvider.template.spec.containers.envFrom.secretRef.localObjectReference.withName

withName(name)

"Volume's name."

obj spec.initProvider.template.spec.containers.livenessProbe

"Periodic probe of container liveness. Container will be restarted if the probe fails. Structure is documented below."

fn spec.initProvider.template.spec.containers.livenessProbe.withFailureThreshold

withFailureThreshold(failureThreshold)

"Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1."

fn spec.initProvider.template.spec.containers.livenessProbe.withGrpc

withGrpc(grpc)

"GRPC specifies an action involving a GRPC port. Structure is documented below."

fn spec.initProvider.template.spec.containers.livenessProbe.withGrpcMixin

withGrpcMixin(grpc)

"GRPC specifies an action involving a GRPC port. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.livenessProbe.withHttpGet

withHttpGet(httpGet)

"HttpGet specifies the http request to perform. Structure is documented below."

fn spec.initProvider.template.spec.containers.livenessProbe.withHttpGetMixin

withHttpGetMixin(httpGet)

"HttpGet specifies the http request to perform. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.livenessProbe.withInitialDelaySeconds

withInitialDelaySeconds(initialDelaySeconds)

"Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value is 240."

fn spec.initProvider.template.spec.containers.livenessProbe.withPeriodSeconds

withPeriodSeconds(periodSeconds)

"How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 240."

fn spec.initProvider.template.spec.containers.livenessProbe.withTimeoutSeconds

withTimeoutSeconds(timeoutSeconds)

"Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds."

obj spec.initProvider.template.spec.containers.livenessProbe.grpc

"GRPC specifies an action involving a GRPC port. Structure is documented below."

fn spec.initProvider.template.spec.containers.livenessProbe.grpc.withPort

withPort(port)

"Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort."

fn spec.initProvider.template.spec.containers.livenessProbe.grpc.withService

withService(service)

"The name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC."

obj spec.initProvider.template.spec.containers.livenessProbe.httpGet

"HttpGet specifies the http request to perform. Structure is documented below."

fn spec.initProvider.template.spec.containers.livenessProbe.httpGet.withHttpHeaders

withHttpHeaders(httpHeaders)

"Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below."

fn spec.initProvider.template.spec.containers.livenessProbe.httpGet.withHttpHeadersMixin

withHttpHeadersMixin(httpHeaders)

"Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.livenessProbe.httpGet.withPath

withPath(path)

"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 '..'."

fn spec.initProvider.template.spec.containers.livenessProbe.httpGet.withPort

withPort(port)

"Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort."

obj spec.initProvider.template.spec.containers.livenessProbe.httpGet.httpHeaders

"Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below."

fn spec.initProvider.template.spec.containers.livenessProbe.httpGet.httpHeaders.withName

withName(name)

"Volume's name."

fn spec.initProvider.template.spec.containers.livenessProbe.httpGet.httpHeaders.withValue

withValue(value)

"The header field value."

obj spec.initProvider.template.spec.containers.ports

"List of open ports in the container. Structure is documented below."

fn spec.initProvider.template.spec.containers.ports.withContainerPort

withContainerPort(containerPort)

"Port number the container listens on. This must be a valid port number (between 1 and 65535). Defaults to \"8080\"."

fn spec.initProvider.template.spec.containers.ports.withName

withName(name)

"Volume's name."

fn spec.initProvider.template.spec.containers.ports.withProtocol

withProtocol(protocol)

"Protocol for port. Must be \"TCP\". Defaults to \"TCP\"."

obj spec.initProvider.template.spec.containers.resources

"Compute Resources required by this container. Used to set values such as max memory Structure is documented below."

fn spec.initProvider.template.spec.containers.resources.withLimits

withLimits(limits)

"Limits describes the maximum amount of compute resources allowed. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go"

fn spec.initProvider.template.spec.containers.resources.withLimitsMixin

withLimitsMixin(limits)

"Limits describes the maximum amount of compute resources allowed. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go"

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.resources.withRequests

withRequests(requests)

"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. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go"

fn spec.initProvider.template.spec.containers.resources.withRequestsMixin

withRequestsMixin(requests)

"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. The values of the map is string form of the 'quantity' k8s type: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go"

Note: This function appends passed data to existing values

obj spec.initProvider.template.spec.containers.startupProbe

"Startup probe of application within the container. All other probes are disabled if a startup probe is provided, until it succeeds. Container will not be added to service endpoints if the probe fails. Structure is documented below."

fn spec.initProvider.template.spec.containers.startupProbe.withFailureThreshold

withFailureThreshold(failureThreshold)

"Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1."

fn spec.initProvider.template.spec.containers.startupProbe.withGrpc

withGrpc(grpc)

"GRPC specifies an action involving a GRPC port. Structure is documented below."

fn spec.initProvider.template.spec.containers.startupProbe.withGrpcMixin

withGrpcMixin(grpc)

"GRPC specifies an action involving a GRPC port. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.startupProbe.withHttpGet

withHttpGet(httpGet)

"HttpGet specifies the http request to perform. Structure is documented below."

fn spec.initProvider.template.spec.containers.startupProbe.withHttpGetMixin

withHttpGetMixin(httpGet)

"HttpGet specifies the http request to perform. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.startupProbe.withInitialDelaySeconds

withInitialDelaySeconds(initialDelaySeconds)

"Number of seconds after the container has started before the probe is initiated. Defaults to 0 seconds. Minimum value is 0. Maximum value is 240."

fn spec.initProvider.template.spec.containers.startupProbe.withPeriodSeconds

withPeriodSeconds(periodSeconds)

"How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. Maximum value is 240."

fn spec.initProvider.template.spec.containers.startupProbe.withTcpSocket

withTcpSocket(tcpSocket)

"TcpSocket specifies an action involving a TCP port. Structure is documented below."

fn spec.initProvider.template.spec.containers.startupProbe.withTcpSocketMixin

withTcpSocketMixin(tcpSocket)

"TcpSocket specifies an action involving a TCP port. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.startupProbe.withTimeoutSeconds

withTimeoutSeconds(timeoutSeconds)

"Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. Maximum value is 3600. Must be smaller than periodSeconds."

obj spec.initProvider.template.spec.containers.startupProbe.grpc

"GRPC specifies an action involving a GRPC port. Structure is documented below."

fn spec.initProvider.template.spec.containers.startupProbe.grpc.withPort

withPort(port)

"Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort."

fn spec.initProvider.template.spec.containers.startupProbe.grpc.withService

withService(service)

"The name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC."

obj spec.initProvider.template.spec.containers.startupProbe.httpGet

"HttpGet specifies the http request to perform. Structure is documented below."

fn spec.initProvider.template.spec.containers.startupProbe.httpGet.withHttpHeaders

withHttpHeaders(httpHeaders)

"Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below."

fn spec.initProvider.template.spec.containers.startupProbe.httpGet.withHttpHeadersMixin

withHttpHeadersMixin(httpHeaders)

"Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below."

Note: This function appends passed data to existing values

fn spec.initProvider.template.spec.containers.startupProbe.httpGet.withPath

withPath(path)

"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 '..'."

fn spec.initProvider.template.spec.containers.startupProbe.httpGet.withPort

withPort(port)

"Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort."

obj spec.initProvider.template.spec.containers.startupProbe.httpGet.httpHeaders

"Custom headers to set in the request. HTTP allows repeated headers. Structure is documented below."

fn spec.initProvider.template.spec.containers.startupProbe.httpGet.httpHeaders.withName

withName(name)

"Volume's name."

fn spec.initProvider.template.spec.containers.startupProbe.httpGet.httpHeaders.withValue

withValue(value)

"The header field value."

obj spec.initProvider.template.spec.containers.startupProbe.tcpSocket

"TcpSocket specifies an action involving a TCP port. Structure is documented below."

fn spec.initProvider.template.spec.containers.startupProbe.tcpSocket.withPort

withPort(port)

"Port number to access on the container. Number must be in the range 1 to 65535. If not specified, defaults to the same value as container.ports[0].containerPort."

obj spec.initProvider.template.spec.containers.volumeMounts

"Volume to mount into the container's filesystem. Only supports SecretVolumeSources. Structure is documented below."

fn spec.initProvider.template.spec.containers.volumeMounts.withMountPath

withMountPath(mountPath)

"Path within the container at which the volume should be mounted. Must not contain ':'."

fn spec.initProvider.template.spec.containers.volumeMounts.withName

withName(name)

"Volume's name."

obj spec.initProvider.template.spec.volumes

"Volume represents a named volume in a container. Structure is documented below."

fn spec.initProvider.template.spec.volumes.withName

withName(name)

"Volume's name."

fn spec.initProvider.template.spec.volumes.withSecret

withSecret(secret)

"The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secret_name. Structure is documented below."

fn spec.initProvider.template.spec.volumes.withSecretMixin

withSecretMixin(secret)

"The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secret_name. Structure is documented below."

Note: This function appends passed data to existing values

obj spec.initProvider.template.spec.volumes.secret

"The secret's value will be presented as the content of a file whose name is defined in the item path. If no items are defined, the name of the file is the secret_name. Structure is documented below."

fn spec.initProvider.template.spec.volumes.secret.withDefaultMode

withDefaultMode(defaultMode)

"Mode bits to use on created files by default. Must be a value between 0000 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."

fn spec.initProvider.template.spec.volumes.secret.withItems

withItems(items)

"If unspecified, the volume will expose a file whose name is the secret_name. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a key and a path. Structure is documented below."

fn spec.initProvider.template.spec.volumes.secret.withItemsMixin

withItemsMixin(items)

"If unspecified, the volume will expose a file whose name is the secret_name. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a key and a path. Structure is documented below."

Note: This function appends passed data to existing values

obj spec.initProvider.template.spec.volumes.secret.items

"If unspecified, the volume will expose a file whose name is the secret_name. If specified, the key will be used as the version to fetch from Cloud Secret Manager and the path will be the name of the file exposed in the volume. When items are defined, they must specify a key and a path. Structure is documented below."

fn spec.initProvider.template.spec.volumes.secret.items.withKey

withKey(key)

"A Cloud Secret Manager secret version. Must be 'latest' for the latest version or an integer for a specific version."

fn spec.initProvider.template.spec.volumes.secret.items.withMode

withMode(mode)

"Mode bits to use on this file, must be a value between 0000 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set."

fn spec.initProvider.template.spec.volumes.secret.items.withPath

withPath(path)

"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 '..'."

obj spec.initProvider.traffic

"Traffic specifies how to distribute traffic over a collection of Knative Revisions and Configurations Structure is documented below."

fn spec.initProvider.traffic.withLatestRevision

withLatestRevision(latestRevision)

"LatestRevision may be optionally provided to indicate that the latest ready Revision of the Configuration should be used for this traffic target. When provided LatestRevision must be true if RevisionName is empty; it must be false when RevisionName is non-empty."

fn spec.initProvider.traffic.withPercent

withPercent(percent)

"Percent specifies percent of the traffic to this Revision or Configuration."

fn spec.initProvider.traffic.withRevisionName

withRevisionName(revisionName)

"RevisionName of a specific revision to which to send this portion of traffic."

fn spec.initProvider.traffic.withTag

withTag(tag)

"Tag is optionally used to expose a dedicated url for referencing this target exclusively."

obj spec.providerConfigRef

"ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured."

fn spec.providerConfigRef.withName

withName(name)

"Name of the referenced object."

obj spec.providerConfigRef.policy

"Policies for referencing."

fn spec.providerConfigRef.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.providerConfigRef.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.providerRef

"ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef"

fn spec.providerRef.withName

withName(name)

"Name of the referenced object."

obj spec.providerRef.policy

"Policies for referencing."

fn spec.providerRef.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.providerRef.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.publishConnectionDetailsTo

"PublishConnectionDetailsTo specifies the connection secret config which contains a name, metadata and a reference to secret store config to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource."

fn spec.publishConnectionDetailsTo.withName

withName(name)

"Name is the name of the connection secret."

obj spec.publishConnectionDetailsTo.configRef

"SecretStoreConfigRef specifies which secret store config should be used for this ConnectionSecret."

fn spec.publishConnectionDetailsTo.configRef.withName

withName(name)

"Name of the referenced object."

obj spec.publishConnectionDetailsTo.configRef.policy

"Policies for referencing."

fn spec.publishConnectionDetailsTo.configRef.policy.withResolution

withResolution(resolution)

"Resolution specifies whether resolution of this reference is required. The default is 'Required', which means the reconcile will fail if the reference cannot be resolved. 'Optional' means this reference will be a no-op if it cannot be resolved."

fn spec.publishConnectionDetailsTo.configRef.policy.withResolve

withResolve(resolve)

"Resolve specifies when this reference should be resolved. The default is 'IfNotPresent', which will attempt to resolve the reference only when the corresponding field is not present. Use 'Always' to resolve the reference on every reconcile."

obj spec.publishConnectionDetailsTo.metadata

"Metadata is the metadata for connection secret."

fn spec.publishConnectionDetailsTo.metadata.withAnnotations

withAnnotations(annotations)

"Annotations are the annotations to be added to connection secret. - For Kubernetes secrets, this will be used as \"metadata.annotations\". - It is up to Secret Store implementation for others store types."

fn spec.publishConnectionDetailsTo.metadata.withAnnotationsMixin

withAnnotationsMixin(annotations)

"Annotations are the annotations to be added to connection secret. - For Kubernetes secrets, this will be used as \"metadata.annotations\". - It is up to Secret Store implementation for others store types."

Note: This function appends passed data to existing values

fn spec.publishConnectionDetailsTo.metadata.withLabels

withLabels(labels)

"Labels are the labels/tags to be added to connection secret. - For Kubernetes secrets, this will be used as \"metadata.labels\". - It is up to Secret Store implementation for others store types."

fn spec.publishConnectionDetailsTo.metadata.withLabelsMixin

withLabelsMixin(labels)

"Labels are the labels/tags to be added to connection secret. - For Kubernetes secrets, this will be used as \"metadata.labels\". - It is up to Secret Store implementation for others store types."

Note: This function appends passed data to existing values

fn spec.publishConnectionDetailsTo.metadata.withType

withType(type)

"Type is the SecretType for the connection secret. - Only valid for Kubernetes Secret Stores."

obj spec.writeConnectionSecretToRef

"WriteConnectionSecretToReference specifies the namespace and name of a Secret to which any connection details for this managed resource should be written. Connection details frequently include the endpoint, username, and password required to connect to the managed resource. This field is planned to be replaced in a future release in favor of PublishConnectionDetailsTo. Currently, both could be set independently and connection details would be published to both without affecting each other."

fn spec.writeConnectionSecretToRef.withName

withName(name)

"Name of the secret."

fn spec.writeConnectionSecretToRef.withNamespace

withNamespace(namespace)

"Namespace of the secret."