Subscription is a managed resource that represents a Google PubSub Subscription.
Type
CRD
Group
pubsub.gcp.crossplane.io
Version
v1alpha1
apiVersion: pubsub.gcp.crossplane.io/v1alpha1
kind: Subscription
SubscriptionSpec defines the desired state of a Subscription.
SubscriptionParameters defines parameters for a desired Subscription.
DeadLetterPolicy is the policy that specifies the conditions for dead lettering messages in this subscription. If dead_letter_policy is not set, dead lettering is disabled.
ExpirationPolicy is the policy that specifies the conditions for this subscription's expiration. If expiration_policy
is not set, a default policy with ttl
of 31 days will be used. The minimum allowed value for expiration_policy.ttl
is 1 day.
PushConfig is a parameter which configures push delivery. An empty pushConfig
signifies that the subscriber will pull and ack messages using API methods.
OidcToken is a set of parameters to attach OIDC JWT token as an Authorization
header in the HTTP request for every pushed message.
RetryPolicy is the policy that specifies how Pub/Sub retries message delivery for this subscription. If not set, the default retry policy is applied. This generally implies that messages will be retried as soon as possible for healthy subscribers.
ProviderConfigReference specifies how the provider that will be used to create, observe, update, and delete this managed resource should be configured.
Policies for referencing.
ProviderReference specifies the provider that will be used to create, observe, update, and delete this managed resource. Deprecated: Please use ProviderConfigReference, i.e. providerConfigRef
Policies for referencing.
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.
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.
SubscriptionStatus represents the observed state of a Subscription.
Conditions of the resource.
my-subscription
apiVersion: pubsub.gcp.crossplane.io/v1alpha1
kind: Subscription
metadata:
name: my-subscription
spec:
deletionPolicy: Delete
forProvider:
ackDeadlineSeconds: 25
deadLetterPolicy:
deadLetterTopic: my-topic
expirationPolicy:
ttl: 864000s
labels:
example: "true"
topic: my-topic
providerConfigRef:
name: gcp-provider
© 2022 Upbound, Inc.
Discover the building blocksfor your internal cloud platform.