Skip to content

Fix an issue where updating a Cloud Function that retires would add incorrect fields to the updateMask#8560

Merged
colerogers merged 3 commits intomasterfrom
colerogers.fix-update-field-mask
May 13, 2025
Merged

Fix an issue where updating a Cloud Function that retires would add incorrect fields to the updateMask#8560
colerogers merged 3 commits intomasterfrom
colerogers.fix-update-field-mask

Conversation

@colerogers
Copy link
Copy Markdown
Contributor

@colerogers colerogers commented May 13, 2025

During a deployment we add buildEnvironmentVariables to the Cloud Function on Creates/Updates. If the Update operation fails, then we'll retry using the same Cloud Function reference. This reference contains the new fields which the field mask on the retry to contain all buildEnvironmentVariables.$VAR. These are not recognized on the Cloud Functions API and will return a 400 - The updateMask field contains fields not existing in CloudFunction resource.

Comment thread CHANGELOG.md Outdated
Co-authored-by: Daniel Lee <danielylee@google.com>
@colerogers colerogers enabled auto-merge (squash) May 13, 2025 16:45
@colerogers colerogers merged commit 0d01bd5 into master May 13, 2025
48 of 50 checks passed
@github-project-automation github-project-automation Bot moved this from Approved [PR] to Done in [Cloud] Extensions + Functions May 13, 2025
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.

2 participants