-
Notifications
You must be signed in to change notification settings - Fork 207
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
Remove unused fields from type "AgentPoolProfile". #914
Remove unused fields from type "AgentPoolProfile". #914
Conversation
CustomKubeletConfig *CustomKubeletConfig `json:"customKubeletConfig,omitempty"` | ||
CustomLinuxOSConfig *CustomLinuxOSConfig `json:"customLinuxOSConfig,omitempty"` | ||
Name string `json:"name"` | ||
Count int `json:"count"` |
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.
question: for this PR, we are only removing parameters that are not populated in paramsMap
- correct?
I could be wrong but I think Count
is one of those that get written to the map but aren't actually used anywhere.
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.
Thanks for the info. Yeah, you are right, this PR only removes the easy, obvious ones. Once this goes in, I'll look into "Count". If as you mentioned it is not used, I'll remove it.
CustomNodeLabels map[string]string `json:"customNodeLabels,omitempty"` | ||
PreprovisionExtension *Extension `json:"preProvisionExtension"` | ||
KubernetesConfig *KubernetesConfig `json:"kubernetesConfig,omitempty"` | ||
AvailabilityZones []string `json:"availabilityZones,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.
I don't think we're using this anywhere are we?
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.
Thanks for the info. I will go through them and remove unused ones in future PRs.
"name": "nodepool1", | ||
"orchestratorVersion": "1.19.3", |
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 to clarify, are we removing agentPoolProfile.orchestratorVersion because we have the same field as properties. orchestratorProfile.orchestratorVersion already present?
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.
The orchestratorVersion version in AgentPoolProfile is never used in AgentBaker, thus I removed 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.
LGTM, let's just make sure the e2es on RP change passes with these changes in Agentbaker
No description provided.