Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
d46490c2
Commit
d46490c2
authored
Oct 15, 2016
by
Lucas Käldström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Register the kubeadm api group in cmd/kubeadm
parent
e9ecbd9c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
4 deletions
+22
-4
doc.go
cmd/kubeadm/app/apis/kubeadm/install/doc.go
+17
-0
types.go
cmd/kubeadm/app/apis/kubeadm/v1alpha1/types.go
+3
-3
join.go
cmd/kubeadm/app/cmd/join.go
+1
-1
kubeadm.go
cmd/kubeadm/app/kubeadm.go
+1
-0
No files found.
cmd/kubeadm/app/apis/kubeadm/install/doc.go
0 → 100644
View file @
d46490c2
/*
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"
cmd/kubeadm/app/apis/kubeadm/v1alpha1/types.go
View file @
d46490c2
...
@@ -19,7 +19,7 @@ package v1alpha1
...
@@ -19,7 +19,7 @@ package v1alpha1
import
"k8s.io/kubernetes/pkg/api/unversioned"
import
"k8s.io/kubernetes/pkg/api/unversioned"
type
MasterConfiguration
struct
{
type
MasterConfiguration
struct
{
unversioned
.
TypeMeta
unversioned
.
TypeMeta
`json:",inline"`
Secrets
Secrets
`json:"secrets"`
Secrets
Secrets
`json:"secrets"`
API
API
`json:"api"`
API
API
`json:"api"`
...
@@ -55,7 +55,7 @@ type Secrets struct {
...
@@ -55,7 +55,7 @@ type Secrets struct {
}
}
type
NodeConfiguration
struct
{
type
NodeConfiguration
struct
{
unversioned
.
TypeMeta
unversioned
.
TypeMeta
`json:",inline"`
MasterAddresses
[]
string
`json:"masterAddresses"`
MasterAddresses
[]
string
`json:"masterAddresses"`
Secrets
Secrets
`json:"secrets"`
Secrets
Secrets
`json:"secrets"`
...
@@ -63,7 +63,7 @@ type NodeConfiguration struct {
...
@@ -63,7 +63,7 @@ type NodeConfiguration struct {
// ClusterInfo TODO add description
// ClusterInfo TODO add description
type
ClusterInfo
struct
{
type
ClusterInfo
struct
{
unversioned
.
TypeMeta
unversioned
.
TypeMeta
`json:",inline"`
// TODO(phase1+) this may become simply `api.Config`
// TODO(phase1+) this may become simply `api.Config`
CertificateAuthorities
[]
string
`json:"certificateAuthorities"`
CertificateAuthorities
[]
string
`json:"certificateAuthorities"`
Endpoints
[]
string
`json:"endpoints"`
Endpoints
[]
string
`json:"endpoints"`
...
...
cmd/kubeadm/app/cmd/join.go
View file @
d46490c2
...
@@ -99,7 +99,7 @@ func NewJoin(cfgPath string, args []string, cfg *kubeadmapi.NodeConfiguration, s
...
@@ -99,7 +99,7 @@ func NewJoin(cfgPath string, args []string, cfg *kubeadmapi.NodeConfiguration, s
}
}
// TODO(phase1+) this we are missing args from the help text, there should be a way to tell cobra about it
// TODO(phase1+) this we are missing args from the help text, there should be a way to tell cobra about it
if
len
(
args
)
==
0
{
if
len
(
args
)
==
0
&&
len
(
cfg
.
MasterAddresses
)
==
0
{
return
nil
,
fmt
.
Errorf
(
"must specify master IP address (see --help)"
)
return
nil
,
fmt
.
Errorf
(
"must specify master IP address (see --help)"
)
}
}
cfg
.
MasterAddresses
=
append
(
cfg
.
MasterAddresses
,
args
...
)
cfg
.
MasterAddresses
=
append
(
cfg
.
MasterAddresses
,
args
...
)
...
...
cmd/kubeadm/app/kubeadm.go
View file @
d46490c2
...
@@ -21,6 +21,7 @@ import (
...
@@ -21,6 +21,7 @@ import (
"github.com/spf13/pflag"
"github.com/spf13/pflag"
_
"k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/install"
"k8s.io/kubernetes/cmd/kubeadm/app/cmd"
"k8s.io/kubernetes/cmd/kubeadm/app/cmd"
cmdutil
"k8s.io/kubernetes/pkg/kubectl/cmd/util"
cmdutil
"k8s.io/kubernetes/pkg/kubectl/cmd/util"
"k8s.io/kubernetes/pkg/util/logs"
"k8s.io/kubernetes/pkg/util/logs"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment