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
33c075d9
Commit
33c075d9
authored
Sep 26, 2017
by
shashidharatd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move logs related to etcd pvc creation inside conditional
parent
cf06dc19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
init.go
federation/pkg/kubefed/init/init.go
+3
-3
No files found.
federation/pkg/kubefed/init/init.go
View file @
33c075d9
...
@@ -340,16 +340,16 @@ func (i *initFederation) Run(cmdOut io.Writer, config util.AdminConfig) error {
...
@@ -340,16 +340,16 @@ func (i *initFederation) Run(cmdOut io.Writer, config util.AdminConfig) error {
}
}
glog
.
V
(
4
)
.
Info
(
"Credentials secret successfully created"
)
glog
.
V
(
4
)
.
Info
(
"Credentials secret successfully created"
)
glog
.
V
(
4
)
.
Info
(
"Creating a persistent volume and a claim to store the federation API server's state, including etcd data"
)
var
pvc
*
api
.
PersistentVolumeClaim
var
pvc
*
api
.
PersistentVolumeClaim
if
i
.
options
.
etcdPersistentStorage
{
if
i
.
options
.
etcdPersistentStorage
{
glog
.
V
(
4
)
.
Info
(
"Creating a persistent volume and a claim to store the federation API server's state, including etcd data"
)
pvc
,
err
=
createPVC
(
hostClientset
,
i
.
commonOptions
.
FederationSystemNamespace
,
svc
.
Name
,
i
.
commonOptions
.
Name
,
i
.
options
.
etcdPVCapacity
,
i
.
options
.
etcdPVStorageClass
,
i
.
options
.
dryRun
)
pvc
,
err
=
createPVC
(
hostClientset
,
i
.
commonOptions
.
FederationSystemNamespace
,
svc
.
Name
,
i
.
commonOptions
.
Name
,
i
.
options
.
etcdPVCapacity
,
i
.
options
.
etcdPVStorageClass
,
i
.
options
.
dryRun
)
if
err
!=
nil
{
if
err
!=
nil
{
return
err
return
err
}
}
glog
.
V
(
4
)
.
Info
(
"Persistent volume and claim created"
)
fmt
.
Fprintln
(
cmdOut
,
" done"
)
}
}
glog
.
V
(
4
)
.
Info
(
"Persistent volume and claim created"
)
fmt
.
Fprintln
(
cmdOut
,
" done"
)
// Since only one IP address can be specified as advertise address,
// Since only one IP address can be specified as advertise address,
// we arbitrarily pick the first available IP address
// we arbitrarily pick the first available IP address
...
...
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