Skip to content

Commit

Permalink
Merge pull request #28 from flanksource/add-get-set-conditions
Browse files Browse the repository at this point in the history
fix: set default value for GetKustomizePatches
  • Loading branch information
moshloop authored Mar 17, 2021
2 parents cc95737 + 4b4dbaf commit f969ae4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ func NewClientFromBytes(kubeconfig []byte) (*Client, error) {
GetKubeConfigBytes: func() ([]byte, error) {
return kubeconfig, nil
},
GetKustomizePatches: func() ([]string, error) {
return []string{}, nil
},
}
client.GetRESTConfig = client.GetRESTConfigFromKubeconfig
return client, nil
Expand All @@ -111,6 +114,9 @@ func NewClient(config *rest.Config, logger logger.Logger) *Client {
GetRESTConfig: func() (*rest.Config, error) {
return config, nil
},
GetKustomizePatches: func() ([]string, error) {
return []string{}, nil
},
}
}

Expand Down

0 comments on commit f969ae4

Please sign in to comment.