-
Notifications
You must be signed in to change notification settings - Fork 983
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Ability to Specify Kubelet Configuration, specifically clusterDNS (…
…#1013) * Add ability to specify ClusterDNSIP Signed-off-by: Michael Irwin <[email protected]> Resolves #928 * Add unit test to validate clusterDNSIP setting Signed-off-by: Michael Irwin <[email protected]> * Update pkg/apis/provisioning/v1alpha5/constraints.go Co-authored-by: Ellis Tarn <[email protected]> * Rename kubelet args to align with kubelet types Signed-off-by: Michael Irwin <[email protected]> * CRD docs update Signed-off-by: Michael Irwin <[email protected]> * Refactored userData creation to reduce code complexity Signed-off-by: Michael Irwin <[email protected]> * Rename kubeletArgs to kubeletConfiguration Signed-off-by: Michael Irwin <[email protected]> * Fix mismatch between struct name and JSON key Signed-off-by: Michael Irwin <[email protected]> Co-authored-by: Ellis Tarn <[email protected]>
- Loading branch information
Showing
7 changed files
with
110 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*/ | ||
|
||
package v1alpha5 | ||
|
||
// KubeletConfiguration defines args to be used when configuring kubelet on provisioned nodes. | ||
// They are a subset of the upstream types, recognizing not all options may be supported. | ||
// Wherever possible, the types and names should reflect the upstream kubelet types. | ||
type KubeletConfiguration struct { | ||
// clusterDNS is a list of IP addresses for the cluster DNS server. | ||
// Note that not all providers may use all addresses. | ||
//+optional | ||
ClusterDNS []string `json:"clusterDNS,omitempty"` | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters