Skip to content

Commit

Permalink
Merge pull request #878 from tomkukral/print-kubeconfig
Browse files Browse the repository at this point in the history
write output file for generated kubeconfig
  • Loading branch information
dougbtv authored Jul 12, 2022
2 parents ca8c9c5 + 95adff5 commit 70c970c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/config-generation/kubeconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ contexts:
current-context: multus-context
`
kubeconfig := fmt.Sprintf(kubeConfigTemplate, protocol, k8sServiceIP, k8sServicePort, tlsConfig, serviceAccountToken)
logInfo("Generated KubeConfig: \n%s", kubeconfig)
logInfo("Generated KubeConfig saved to %s: \n%s", outputPath, kubeconfig)
return ioutil.WriteFile(outputPath, []byte(kubeconfig), userRWPermission)
}

Expand Down

0 comments on commit 70c970c

Please sign in to comment.