-
Notifications
You must be signed in to change notification settings - Fork 153
[CRDB-49216] tests/e2e/operator: Add GCP end-to-end tests with Helm v2. #529
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
base: master
Are you sure you want to change the base?
Conversation
tests/e2e/operator/singleRegion/cockroachdb_single_region_e2e_test.go
Outdated
Show resolved
Hide resolved
// CanTeardown checks if the provider supports teardown. | ||
func CanTeardown(provider CloudProvider) (CloudProvider, bool) { | ||
// Check if the TeardownInfra method is a no-op implementation | ||
switch provider.(type) { | ||
default: | ||
return provider, true | ||
} | ||
} | ||
|
||
// CanScale checks if the provider supports scaling. | ||
func CanScale(provider CloudProvider) (CloudProvider, bool) { | ||
// Check if the ScaleNodePool method is a no-op implementation | ||
switch provider.(type) { | ||
case *K3dRegion, *GcpRegion: | ||
return nil, false | ||
default: | ||
return provider, true | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could these also be methods in the interface so that the respective cloud provider could implement it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've reviewed the workflows and perused the rest of the code. Here are a few thoughts.
14bd15b
to
6d75c22
Compare
6044038
to
7dc1bd8
Compare
7dc1bd8
to
1153af6
Compare
No description provided.