GCSConnection
Gives tables a connection to source objects in a Google Cloud Storage bucket and prefix.
google.sources.prokrust.ai/v1beta1 · Namespaced · gcsconnections
Enable the gcs connector CRD in the cluster to use this kind.
The connection spec is immutable. To use different settings, create a new connection.
To select data through this connection, see Create a table.
Controller status
Conditions
Controller observations about configuration, credential binding, runtime readiness, and admission. Read the entry for the question you need to answer.
| Condition | What it tells you |
|---|---|
ConfigValid | Reports whether the controller accepted the connection configuration. Compare the condition’s observed generation with the resource generation. |
CredentialsValid | Reports whether the controller accepted the source credential reference, when the configuration requires one. A connection probe tests access to the source. |
RuntimeReady | Reports whether at least one runtime pod is ready. Read status.runtime.readyReplicas for the count. |
AcceptingNewScans | Reports whether the workspace can start a new scan on this runtime. Existing work can continue during a drain. |
When the runtime is draining
The installation closes admission while two runtime pods remain ready. Existing scans can finish.
status:
observedGeneration: 1
runtime:
acceptsNewScans: false
admissionEpoch: 5
readyReplicas: 2
conditions:
- type: RuntimeReady
status: "True"
reason: RuntimeReplicasReady
observedGeneration: 1
- type: AcceptingNewScans
status: "False"
reason: AdmissionClosed
observedGeneration: 1
Check the workspace and release before starting another scan. Wait for AcceptingNewScans=True at the current generation.
GCSConnection condition results and reasons
ConfigValid
| Status and reason | What to check |
|---|---|
True / ConfigResolved | The configuration passed validation. Check the runtime and admission conditions before starting a new scan. |
False / InvalidConnectionSpec | The specification failed validation. Check the provider’s connection schema. Create a new connection to correct an immutable specification. |
CredentialsValid
| Status and reason | What to check |
|---|---|
True / CredentialBindingResolved | The credential reference is acceptable, or the configuration needs none. Run a connection probe if you need to verify remote access. |
False / CredentialBindingUnavailable | The controller rejected the source Secret reference. Check the name, including whether it is reserved for a Prokrust-managed Secret. |
RuntimeReady
| Status and reason | What to check |
|---|---|
True / RuntimeReplicasReady | At least one runtime pod is ready. Check AcceptingNewScans to determine whether it can accept new work. |
False / WaitingForRuntimeReplicas | The controller counted zero ready runtime pods. Inspect the runtime Deployment and pod readiness in the workspace. |
AcceptingNewScans
| Status and reason | What to check |
|---|---|
True / AdmissionActive | The workspace is ready, a runtime pod is ready, and admission is open for the requested provider major version. |
False / AdmissionClosed | Check workspace enrollment, runtime readiness, and whether the installation is draining, disabling, or replacing the runtime. |
Condition field meanings
| Field | What to look for |
|---|---|
type | Names the check. Use it to select the condition you want to inspect. |
status | Reports whether the named condition holds. Read the reason to see why. |
reason | A short identifier for this outcome. Use it when comparing observations or filtering results. |
message | When present, gives details about this object, such as the name of a dependency. |
observedGeneration | Compare with metadata.generation to see which version of the spec the controller checked. |
lastTransitionTime | Records the time of the last transition for this condition. |
How to read status fields
| Field | What it tells you |
|---|---|
status.observedGeneration | The connection generation observed on the last full reconciliation. Compare it with metadata.generation. After a validation failure, also check each condition’s generation. |
status.configDigest | Identifies the resolved connection configuration. Compare the digest when checking which source configuration a runtime serves. |
status.resolvedConfigRefs | Lists resolved configuration references. These controller versions publish an empty list. Check CredentialsValid for the outcome of credential reference validation. |
status.rootUIDs | Records the Kubernetes UIDs of the connection’s NetworkPolicy, Service, and Deployment. The controller uses these identities to verify ownership before changing or deleting resources. |
status.releasedEpoch | Admission epoch acknowledged after the controller removes the managed runtime resources. Inspect it when a disabled connection is being released. |
status.runtime | Identifies the runtime endpoint and reports admission and readiness. Use it to distinguish a missing runtime from a pool closed to new scans. |
Kubernetes schema for status
Required applies when the parent is present. A dash in the default column means the CRD declares no default.
| Field | Type | Required | Default | Schema constraints and descriptions |
|---|---|---|---|---|
status | object | no | — | Reports the configuration and runtime last observed by the provider controller. Read it when a table cannot start a scan. |
status.observedGeneration | integer | no | — | The connection generation observed on the last full reconciliation. Compare it with metadata.generation. After a validation failure, also check each condition’s generation. · format "int64" |
status.configDigest | string | no | — | Identifies the resolved connection configuration. Compare the digest when checking which source configuration a runtime serves. |
status.resolvedConfigRefs | array | no | — | Lists resolved configuration references. These controller versions publish an empty list. Check CredentialsValid for the outcome of credential reference validation. |
status.resolvedConfigRefs[] | object | — | — | x-kubernetes-preserve-unknown-fields true |
status.rootUIDs | object | no | — | Records the Kubernetes UIDs of the connection’s NetworkPolicy, Service, and Deployment. The controller uses these identities to verify ownership before changing or deleting resources. |
status.rootUIDs[key] | string | — | — | |
status.releasedEpoch | integer | no | — | Admission epoch acknowledged after the controller removes the managed runtime resources. Inspect it when a disabled connection is being released. · format "int64" |
status.runtime | object | no | — | Identifies the runtime endpoint and reports admission and readiness. Use it to distinguish a missing runtime from a pool closed to new scans. |
status.runtime.serviceName | string | no | — | Kubernetes Service name in the workspace that routes requests to the runtime pods. |
status.runtime.serviceUID | string | no | — | UID of the runtime Service observed by the controller. Compare it when checking whether the Service was replaced. |
status.runtime.deploymentUID | string | no | — | UID of the runtime Deployment. Compare it with the Deployment in the workspace when checking a rollout. |
status.runtime.port | integer | no | — | Service port for requests to the connector runtime. Use it with the Service name when checking endpoint routing. · minimum 1 · maximum 65535 |
status.runtime.providerId | string | no | — | Identifier of the provider serving this connection. Use it to confirm the controller selected the expected connector. |
status.runtime.providerMajor | integer | no | — | Major version of the deployed provider. Admission checks it against the requested release before accepting new scans. · minimum 0 |
status.runtime.protocolMajor | integer | no | — | Connector protocol major version spoken by the runtime. Check it when diagnosing an incompatible client. · minimum 1 |
status.runtime.readyReplicas | integer | no | — | Count of ready runtime pods with a release label that are not terminating. Check this when RuntimeReady is false. · minimum 0 |
status.runtime.releaseVersions | array | no | — | Distinct release versions found on ready runtime pods. Inspect this list when a rollout still serves multiple versions. |
status.runtime.releaseVersions[] | string | — | — | |
status.runtime.admissionEpoch | integer | no | — | Current control epoch reported by the runtime pool. Compare epochs when investigating stale scan admission during a drain. · format "int64" |
status.runtime.acceptsNewScans | boolean | no | — | Whether new scans may enter the runtime pool. Inspect this flag when pods are ready but new requests are blocked. |
status.conditions | array | no | — | Controller observations about configuration, credential binding, runtime readiness, and admission. Read the entry for the question you need to answer. · x-kubernetes-list-type "map" · x-kubernetes-list-map-keys ["type"] |
status.conditions[] | object | — | — | |
status.conditions[].type | string | yes | — | Names the observation. Use the type to find one condition regardless of list order. |
status.conditions[].status | string | yes | — | Reports the boolean result. The shared controller writes True or False when it completes the check. · enum ["True","False","Unknown"] |
status.conditions[].reason | string | yes | — | Machine-readable explanation for the current state. Use the reason to choose the next check. |
status.conditions[].message | string | yes | — | Additional human-readable detail. The shared controller writes an empty message and supplies its explanation through reason. |
status.conditions[].observedGeneration | integer | no | — | Connection generation evaluated for this condition. Compare it with metadata.generation before acting on the result. · format "int64" |
status.conditions[].lastTransitionTime | string | yes | — | Time when the boolean status last changed. This can stay the same across reconciliations. · format "date-time" |
Specification
Choose these settings when you create the connection. To change them, create a new connection in the workspace.
This resource requires bucket, prefix, bucketProjectNumber, expectedServiceAccountEmail.
authMode
Selects how the connector obtains a source token. Use serviceAccountKey for a mounted Google key or impersonation for GKE workload identity. Omission uses key-based authentication.
bucket
Names the Cloud Storage bucket that holds the source objects. Use a separate connection to read a different bucket.
prefix
Limits the object names the connector can select. Set a prefix for a single export directory. An empty prefix allows the whole bucket within the reader’s IAM permissions.
bucketProjectNumber
Specifies the Google Cloud project number the connector expects to own the bucket. Use the owner’s numeric project number for a cross-project source.
expectedServiceAccountEmail
Identifies the Google service account allowed to read the source. Use the key owner’s email for key authentication or the target account’s email for impersonation.
credentialsSecretRef
Selects a source key for serviceAccountKey authentication. Omit this reference when a workload impersonates the source service account.
| Field | When to use it |
|---|---|
spec.credentialsSecretRef.name | Names the Secret in the workspace that contains service-account.json. Choose the Secret whose key belongs to the expected service account. |
Kubernetes schema for spec
Required applies when the parent is present. A dash in the default column means the CRD declares no default.
| Field | Type | Required | Default | Schema constraints and descriptions |
|---|---|---|---|---|
spec | object | yes | — | Choose these settings when you create the connection. To change them, create a new connection in the workspace. · Connection spec is immutable self == oldSelf · Choose a mounted service account key or workload impersonation (!has(self.authMode) || self.authMode == 'serviceAccountKey') == has(self.credentialsSecretRef) |
spec.authMode | string | no | — | Selects how the connector obtains a source token. Use serviceAccountKey for a mounted Google key or impersonation for GKE workload identity. Omission uses key-based authentication. · enum ["serviceAccountKey","impersonation"] |
spec.bucket | string | yes | — | Names the Cloud Storage bucket that holds the source objects. Use a separate connection to read a different bucket. · minLength 3 · maxLength 222 · pattern "^[a-z0-9][a-z0-9._-]*[a-z0-9]$" |
spec.prefix | string | yes | — | Limits the object names the connector can select. Set a prefix for a single export directory. An empty prefix allows the whole bucket within the reader’s IAM permissions. · maxLength 1024 |
spec.bucketProjectNumber | string | yes | — | Specifies the Google Cloud project number the connector expects to own the bucket. Use the owner’s numeric project number for a cross-project source. · pattern "^[1-9][0-9]{0,19}$" |
spec.expectedServiceAccountEmail | string | yes | — | Identifies the Google service account allowed to read the source. Use the key owner’s email for key authentication or the target account’s email for impersonation. · minLength 20 · maxLength 254 · pattern "^[a-z0-9][a-z0-9-]*@[a-z0-9][a-z0-9-]*[.]iam[.]gserviceaccount[.]com$" |
spec.credentialsSecretRef | object | no | — | Selects a source key for serviceAccountKey authentication. Omit this reference when a workload impersonates the source service account. |
spec.credentialsSecretRef.name | string | yes | — | Names the Secret in the workspace that contains service-account.json. Choose the Secret whose key belongs to the expected service account. · minLength 1 · maxLength 253 · pattern "^[a-z0-9][a-z0-9.-]*[a-z0-9]$|^[a-z0-9]$" |
The validation schema matches prokrust-crds 0.23.0-rc.1.