Skip to content

Commit

Permalink
read extra values from config
Browse files Browse the repository at this point in the history
  • Loading branch information
tomellis91 committed Aug 11, 2023
1 parent 18b880a commit 6259c44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/common-operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ type TLSConfig struct {
type K8sConfig struct {
Enabled bool
Binary string
Extra []string
KubeConfig string
KubeContext string
Namespace string
Expand Down Expand Up @@ -125,6 +126,7 @@ func CreateClientContext() (ClientContext, error) {
context.Kubernetes.KubeConfig = viper.GetString("contexts." + context.Name + ".kubernetes.kubeConfig")
context.Kubernetes.KubeContext = viper.GetString("contexts." + context.Name + ".kubernetes.kubeContext")
context.Kubernetes.Namespace = viper.GetString("contexts." + context.Name + ".kubernetes.namespace")
context.Kubernetes.Extra = viper.GetStringSlice("contexts." + context.Name + ".kubernetes.extra")
context.Kubernetes.Image = viper.GetString("contexts." + context.Name + ".kubernetes.image")
context.Kubernetes.ImagePullSecret = viper.GetString("contexts." + context.Name + ".kubernetes.imagePullSecret")

Expand Down

0 comments on commit 6259c44

Please sign in to comment.