mark redis instance maintenanceSchedule block as output only #15063
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
For some reason
maintenance_schedule
is being set (to NULL) even though the whole block is output-only.I haven't been able to figure out with 100% certainty why, but me and others, are suddenly suffering from this.
I think it might have to do with a slight change in the gcloud API regarding scheduled upcoming maintenance...
for instances that are due for an upgrade the gcloud API will return the
maintenance_schedule
for the scheduled upcoming maintenance, and then terraform incorrectly NULLs the 3 properties because they're output only, leaving an emptymaintenance_schedule
object that it will use apply.for a freshly creation redis instance I don't get a
maintenanceSchedule
in theGET GET /v1beta1/projects/my-instance/locations/europe-west4/instances/aurora-redis?alt=json
while for an older one it is present.note how it nulls the properties, not the whole object;
This PR marks the whole block as
output: true
to by-pass this problem entirely.Fixes 11871
If this PR is for Terraform, I acknowledge that I have:
make test
andmake lint
in the generated providers to ensure it passes unit and linter tests.Note: I wasn't able to run the acceptance test because I'm struggling with the authentication ... will try to resolve ...
Release Note Template for Downstream PRs (will be copied)
Derived from GoogleCloudPlatform/magic-modules#8261