Skip to content

Commit

Permalink
Ability to run with kubeconfig (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
linclaus authored Oct 3, 2020
1 parent 736bd36 commit cbf2fef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ var (
)

func createCommand(cmd *cobra.Command, args []string) {
k := k8s.New("")
k := k8s.New(cfg.kubeconfig)
ca := k.GetCaFromSecret(cfg.secretName, cfg.namespace)
if ca == nil {
log.Info("creating new secret")
Expand Down
2 changes: 1 addition & 1 deletion cmd/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func prePatchCommand(cmd *cobra.Command, args []string) {
}

func patchCommand(_ *cobra.Command, _ []string) {
k := k8s.New("")
k := k8s.New(cfg.kubeconfig)
ca := k.GetCaFromSecret(cfg.secretName, cfg.namespace)

if ca == nil {
Expand Down

0 comments on commit cbf2fef

Please sign in to comment.