-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Only manage internal DNS zone if configuration has been specified #5375
Conversation
ff29346
to
64974fd
Compare
/ok-to-test |
/assign @justinsb |
@@ -2662,14 +2662,10 @@ func autoConvert_kops_LoadBalancerAccessSpec_To_v1alpha1_LoadBalancerAccessSpec( | |||
out.Type = LoadBalancerType(in.Type) | |||
out.IdleTimeoutSeconds = in.IdleTimeoutSeconds | |||
out.AdditionalSecurityGroups = in.AdditionalSecurityGroups | |||
// WARNING: in.UseApiInternal requires manual conversion: does not exist in peer-type |
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.
Ah - this means you need to add the new field to v1alpha1 also...
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.
ah ok, I wasn't sure if v1alpha1 was an API that should not change and what I was supposed to do was add the field only to v1alpha2 and have a conversion function. Will add it here as well.
pkg/apis/kops/cluster.go
Outdated
@@ -286,6 +286,7 @@ type LoadBalancerAccessSpec struct { | |||
Type LoadBalancerType `json:"type,omitempty"` | |||
IdleTimeoutSeconds *int64 `json:"idleTimeoutSeconds,omitempty"` | |||
AdditionalSecurityGroups []string `json:"additionalSecurityGroups,omitempty"` | |||
UseApiInternal bool `json:"useApiInternal,omitempty"` |
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.
Naming nit: it isn't very obvious (to me) what this does from the name. How about useForInternalApi
or inClusterApi
or useInsideCluster
?
(And we have to take another pass to add this to v1alpha1 anyway ... :-) )
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.
yep fair enough, I wasn't too keen on the name myself, I think useForInternalApi
is clearer
One nit on the naming, but then I think we can get this in. Sorry it took so long for me to get to this one... If we're quick we can get this into 1.10... |
Thanks for the tweak @mellowplace /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: justinsb, mellowplace The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This change is