You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bootstrap/kubeadm/api/v1beta1/kubeadm_types.go
+45Lines changed: 45 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ limitations under the License.
17
17
package v1beta1
18
18
19
19
import (
20
+
"encoding/json"
20
21
"fmt"
21
22
"strings"
22
23
@@ -214,6 +215,7 @@ type APIEndpoint struct {
214
215
}
215
216
216
217
// NodeRegistrationOptions holds fields that relate to registering a new control-plane or node to the cluster, either via "kubeadm init" or "kubeadm join".
218
+
// Note: The NodeRegistrationOptions struct has to be kept in sync with the structs in MarshalJSON.
217
219
typeNodeRegistrationOptionsstruct {
218
220
219
221
// Name is the `.Metadata.Name` field of the Node API object that will be created in this `kubeadm init` or `kubeadm join` operation.
@@ -243,6 +245,49 @@ type NodeRegistrationOptions struct {
0 commit comments