Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add validations for Composer 2/3 only fields #17361

Conversation

modular-magician
Copy link
Collaborator

Release Note Template for Downstream PRs (will be copied)

composer: 
- added validations for Composer 2/3 only fields
- blocked Composer2 -> Composer3 upgrade
- updated attributes of fields not used in Composer 3
Fixes: b/304402327, b/304432953, b/304432956, b/304432959

Derived from GoogleCloudPlatform/magic-modules#9917

* block upgrade to composer 3

* make isComposer3 more generic, correct imageVersionChangeValidationFunc

* added validation for Composer 2/3 specific fields

* add tests for validation

* add checks in flattenComposerEnvironmentConfig

* Update attributes of fields not used in Composer 3

* make customizeDiff functions beta only

* remove Computed from gke_cluster

* remove Optional instead of Computed

* add envCfg.PrivateEnvironmentConfig is nil check

* modify isComposer3 to take string

* minor correction to avoid merge conflicts

[upstream:a58f0e2a4505a5debeac9813042c60f46567c42e]

Signed-off-by: Modular Magician <magic-modules@google.com>
@modular-magician modular-magician merged commit ec4b35a into hashicorp:main Feb 22, 2024
2 checks passed
SarahFrench pushed a commit that referenced this pull request Mar 1, 2024
* block upgrade to composer 3

* make isComposer3 more generic, correct imageVersionChangeValidationFunc

* added validation for Composer 2/3 specific fields

* add tests for validation

* add checks in flattenComposerEnvironmentConfig

* Update attributes of fields not used in Composer 3

* make customizeDiff functions beta only

* remove Computed from gke_cluster

* remove Optional instead of Computed

* add envCfg.PrivateEnvironmentConfig is nil check

* modify isComposer3 to take string

* minor correction to avoid merge conflicts

[upstream:a58f0e2a4505a5debeac9813042c60f46567c42e]

Signed-off-by: Modular Magician <magic-modules@google.com>
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant