Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Fix 431 PR merge #456

Merged
merged 1 commit into from
Nov 20, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions pkg/cmd/logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@ func runCommand(targetReader TargetReader, args []string) {
logsAddonManager(targetReader)
case "vpn-seed":
if len(args) == 2 {
logsVpnSeed(args[1])
logsVpnSeed(targetReader, args[1])
} else {
logsVpnSeed(emptyString)
logsVpnSeed(targetReader, emptyString)
}
case "vpn-shoot":
logsVpnShoot()
Expand Down Expand Up @@ -577,10 +577,10 @@ func saveLogsControllerManager(targetReader TargetReader) {
}

// logsVpnSeed prints the logfile of the vpn-seed container
func logsVpnSeed(shootTechnicalID string) {
func logsVpnSeed(targetReader TargetReader, shootTechnicalID string) {
fmt.Println("-----------------------Kube-Apiserver")
if shootTechnicalID == emptyString {
shootTechnicalID = getFromTargetInfo("shootTechnicalID")
shootTechnicalID = GetFromTargetInfo(targetReader, "shootTechnicalID")
logPodSeed("kube-apiserver", shootTechnicalID, "vpn-seed")
} else {
logPodSeed("kube-apiserver", shootTechnicalID, "vpn-seed")
Expand Down