-
Notifications
You must be signed in to change notification settings - Fork 38.6k
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
Register the kubeadm api group in cmd/kubeadm #34891
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/* | ||
Copyright 2016 The Kubernetes Authors. | ||
|
||
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 install // import "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/install" | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ package v1alpha1 | |
import "k8s.io/kubernetes/pkg/api/unversioned" | ||
|
||
type MasterConfiguration struct { | ||
unversioned.TypeMeta | ||
unversioned.TypeMeta `json:",inline"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. hmm, why is this necessary? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I saw the other api groups have this... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No reason. Just seems redundant. This is fine though since other api groups are doing this. |
||
|
||
Secrets Secrets `json:"secrets"` | ||
API API `json:"api"` | ||
|
@@ -55,15 +55,15 @@ type Secrets struct { | |
} | ||
|
||
type NodeConfiguration struct { | ||
unversioned.TypeMeta | ||
unversioned.TypeMeta `json:",inline"` | ||
|
||
MasterAddresses []string `json:"masterAddresses"` | ||
Secrets Secrets `json:"secrets"` | ||
} | ||
|
||
// ClusterInfo TODO add description | ||
type ClusterInfo struct { | ||
unversioned.TypeMeta | ||
unversioned.TypeMeta `json:",inline"` | ||
// TODO(phase1+) this may become simply `api.Config` | ||
CertificateAuthorities []string `json:"certificateAuthorities"` | ||
Endpoints []string `json:"endpoints"` | ||
|
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.
why do we need this file?
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.
IIRC, every package should have the
// import "k8s.io/..."
statementMaybe not super-critical, but I think that's best practice
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.
other install packages do not do this. Is this something that we are going to start doing? Is there an issue for this?
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.
#29014 and #29042
Seems like it's half-finished though, since no new doc.go files were added
Ok with leaving as-is?