Skip to content

Conversation

ktinubu
Copy link
Contributor

@ktinubu ktinubu commented Mar 12, 2025

…ription generation with empty expiration_policy variable
@ktinubu ktinubu requested review from a team and imrannayer as code owners March 12, 2025 16:29
@q2w
Copy link
Collaborator

q2w commented Mar 13, 2025

Thanks for the fix!

@ktinubu ktinubu requested a review from apeabody March 13, 2025 14:45
Copy link
Contributor

@apeabody apeabody left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ktinubu!

Already approved

@apeabody apeabody merged commit 5f793ad into terraform-google-modules:main Mar 13, 2025
4 checks passed
@Ram1604
Copy link
Contributor

Ram1604 commented Mar 17, 2025

@ktinubu @q2w @apeabody

I couldn't set the expiration policy to 'never expire' for pull subscriptions. But push is working fine.

pull_subscriptions = [
{
name = "test-pull"
ack_deadline_seconds = 30
message_retention_duration = "2000s"
retain_acked_messages = false
dead_letter_topic = null
max_delivery_attempts = null
minimum_backoff = null
maximum_backoff = null
filter = null
enable_message_ordering = true
enable_exactly_once_delivery = true
expiration_policy = ""
}
]

push_subscriptions = [
{
name = "test-push"
ack_deadline_seconds = 20
message_retention_duration = "604800s"
retain_acked_messages = false
push_endpoint = "https://example.com/"
oidc_service_account_email = "svc-parsehub-staging@imgcp-c60779a219ef249c.iam.gserviceaccount.com"
dead_letter_topic = "projects/imgcp-c60779a219ef249c/topics/gds-deals-ingestor-dead-topic"
max_delivery_attempts = 5
maximum_backoff = null
minimum_backoff = null
filter = null
enable_exactly_once_delivery = true
enable_message_ordering = true
expiration_policy = ""
}
]

Expected behavior
expiration_policy = ""

When I use the above in pull subscription, the subscription should not expire.

Observed behavior
Instead, the subscription is getting created as "will expire after 31 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants