Skip to content

Commit

Permalink
Improve K8s config with nested types
Browse files Browse the repository at this point in the history
  • Loading branch information
Mtze committed Aug 13, 2024
1 parent ccc81fa commit ec8077b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions HadesScheduler/k8s/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ type K8sConfig struct {

// K8sConfigKubeconfig is used as configuration if used with a kubeconfig file
type K8sConfigKubeconfig struct {
K8sConfig
kubeconfig string `env:"KUBECONFIG"`
}

// K8sConfigServiceaccount is used as configuration if used with a service account
type K8sConfigServiceaccount struct {
K8sConfig
}

func NewK8sScheduler() Scheduler {
Expand Down

0 comments on commit ec8077b

Please sign in to comment.