mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
fixed circle ci issues
Signed-off-by: raffaelespazzoli <raffaele.spazzoli@gmail.com>
This commit is contained in:
parent
30d245a0e3
commit
02ce01b241
2 changed files with 2 additions and 5 deletions
|
|
@ -53,7 +53,7 @@ func funcMap() template.FuncMap {
|
|||
"fromYaml": fromYAML,
|
||||
"toJson": toJSON,
|
||||
"fromJson": fromJSON,
|
||||
"lookup" : lookup,
|
||||
"lookup": lookup,
|
||||
|
||||
// This is a placeholder for the "include" function, which is
|
||||
// late-bound to a template. By declaring it here, we preserve the
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@ import (
|
|||
)
|
||||
|
||||
var config *rest.Config
|
||||
var addLookupFunction = false
|
||||
|
||||
func init() {
|
||||
// try the out-cluster config, this will default to the in-cluster config is not successful
|
||||
|
|
@ -31,10 +30,8 @@ func init() {
|
|||
// use the current context in kubeconfig
|
||||
config1, err := clientcmd.BuildConfigFromFlags("", *kubeconfig)
|
||||
if err == nil {
|
||||
addLookupFunction = true
|
||||
config = config1
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func homeDir() string {
|
||||
|
|
@ -103,7 +100,7 @@ func getAPIReourceForGVK(gvk schema.GroupVersionKind) (metav1.APIResource, error
|
|||
}
|
||||
resList, err := discoveryClient.ServerResourcesForGroupVersion(gvk.GroupVersion().String())
|
||||
if err != nil {
|
||||
log.Printf("[ERROR] unable to retrieve resouce list for: %s , error: %s", gvk.GroupVersion().String(), err)
|
||||
log.Printf("[ERROR] unable to retrieve resource list for: %s , error: %s", gvk.GroupVersion().String(), err)
|
||||
return res, err
|
||||
}
|
||||
for _, resource := range resList.APIResources {
|
||||
|
|
|
|||
Loading…
Reference in a new issue