Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Hepto
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ACIDES
Hepto
Commits
ba349392
Commit
ba349392
authored
1 year ago
by
kaiyou
Browse files
Options
Downloads
Patches
Plain Diff
Output the cluster DNS IP in -info
parent
fe6651bf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#28869
passed
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmd/hepto/hepto.go
+10
-9
10 additions, 9 deletions
cmd/hepto/hepto.go
with
10 additions
and
9 deletions
cmd/hepto/hepto.go
+
10
−
9
View file @
ba349392
...
@@ -39,15 +39,16 @@ func Hepto() error {
...
@@ -39,15 +39,16 @@ func Hepto() error {
// If displaying info was required, go for it
// If displaying info was required, go for it
if
config
.
Info
{
if
config
.
Info
{
w
:=
tabwriter
.
NewWriter
(
os
.
Stdout
,
2
,
3
,
1
,
' '
,
0
)
w
:=
tabwriter
.
NewWriter
(
os
.
Stdout
,
2
,
3
,
1
,
' '
,
0
)
fmt
.
Fprintf
(
w
,
"cluster name
\t
%s
\n
"
,
config
.
Cluster
.
Name
)
fmt
.
Fprintf
(
w
,
"cluster
\t
name
\t
%s
\n
"
,
config
.
Cluster
.
Name
)
fmt
.
Fprintf
(
w
,
"cluster vpn CIDR
\t
%s
\n
"
,
manager
.
State
.
Networking
()
.
NodeNet
)
fmt
.
Fprintf
(
w
,
"cluster
\t
vpn CIDR
\t
%s
\n
"
,
manager
.
State
.
Networking
()
.
NodeNet
)
fmt
.
Fprintf
(
w
,
"cluster pod CIDR
\t
%s
\n
"
,
manager
.
State
.
Networking
()
.
PodNet
)
fmt
.
Fprintf
(
w
,
"cluster
\t
pod CIDR
\t
%s
\n
"
,
manager
.
State
.
Networking
()
.
PodNet
)
fmt
.
Fprintf
(
w
,
"cluster service CIDR
\t
%s
\n
"
,
manager
.
State
.
Networking
()
.
ServiceNet
)
fmt
.
Fprintf
(
w
,
"cluster
\t
service CIDR
\t
%s
\n
"
,
manager
.
State
.
Networking
()
.
ServiceNet
)
fmt
.
Fprintf
(
w
,
"node name
\t
%s
\n
"
,
config
.
Node
.
Name
)
fmt
.
Fprintf
(
w
,
"node
\t
name
\t
%s
\n
"
,
config
.
Node
.
Name
)
fmt
.
Fprintf
(
w
,
"node role
\t
%s
\n
"
,
config
.
Node
.
Role
)
fmt
.
Fprintf
(
w
,
"node
\t
role
\t
%s
\n
"
,
config
.
Node
.
Role
)
fmt
.
Fprintf
(
w
,
"node vpn IP
\t
%s
\n
"
,
manager
.
State
.
Networking
()
.
NodeAddress
)
fmt
.
Fprintf
(
w
,
"node
\t
vpn IP
\t
%s
\n
"
,
manager
.
State
.
Networking
()
.
NodeAddress
)
fmt
.
Fprintf
(
w
,
"node data
\t
%s
\n
"
,
dataPath
)
fmt
.
Fprintf
(
w
,
"node
\t
data
\t
%s
\n
"
,
dataPath
)
fmt
.
Fprintf
(
w
,
"apiserver IP
\t
%s
\n
"
,
manager
.
State
.
Networking
()
.
APIAddress
)
fmt
.
Fprintf
(
w
,
"service
\t
API IP
\t
%s
\n
"
,
manager
.
State
.
Networking
()
.
APIAddress
)
fmt
.
Fprintf
(
w
,
"service
\t
DNS IP
\t
%s
\n
"
,
manager
.
State
.
Networking
()
.
DNSAddress
)
return
w
.
Flush
()
return
w
.
Flush
()
}
}
// Otherwise create a container and start the manager
// Otherwise create a container and start the manager
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment