-
Notifications
You must be signed in to change notification settings - Fork 86
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
[GEP-27] Use cloud profile bastion machine and image #826
Conversation
/hold until updated gardener/gardener |
e26e929
to
f04daaa
Compare
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.
Code is okay sans small nits but why isn't the determineVMDetails
part of the g/g repo ? Just make it a library function that we can call from all providers.
Is there any particular implementation details that change between the providers ?
@@ -16,7 +16,7 @@ import ( | |||
"github.com/gardener/gardener/pkg/apis/core/v1beta1/constants" | |||
"github.com/gardener/gardener/pkg/apis/extensions/v1alpha1" | |||
"github.com/go-logr/logr" | |||
compute "google.golang.org/api/compute/v1" |
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 would rather rename it to computev1
. There are some apis only available in the beta package which is very inconveniently named also compute
.
f04daaa
to
2af012b
Compare
9b57832
to
cf19de4
Compare
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.
Just a nit about the CPConfig decoding
pkg/controller/bastion/options.go
Outdated
@@ -196,3 +193,45 @@ func FirewallEgressAllowOnlyResourceName(baseName string) string { | |||
func FirewallEgressDenyAllResourceName(baseName string) string { | |||
return fmt.Sprintf("%s-deny-all", baseName) | |||
} | |||
|
|||
func getCloudProfileConfig(cluster *extensions.Cluster) (*gcpv1alpha1.CloudProfileConfig, error) { |
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.
Maybe this can be replaced with
func CloudProfileConfigFromCluster(cluster *controller.Cluster) (*api.CloudProfileConfig, error) { |
/unhold |
How to categorize this PR?
/area quality
/kind enhancement
/platform gcp
What this PR does / why we need it:
Instead of using a hardcoded bastion image we will use the image provided in the bastion section of the cloud profile.
See also GEP proposal
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
We need to wait until the bastion section is released with gardener/gardener/types_cloudprofile.go.
Release note: