diff --git a/charts/kad/Chart.yaml b/charts/kad/Chart.yaml index 2d464f9d..c5ec3d12 100644 --- a/charts/kad/Chart.yaml +++ b/charts/kad/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.9 +version: 0.1.10 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/kad/templates/cluster-role-binding.yaml b/charts/kad/templates/cluster-role-binding.yaml index af1ed0ae..33549b3b 100644 --- a/charts/kad/templates/cluster-role-binding.yaml +++ b/charts/kad/templates/cluster-role-binding.yaml @@ -6,7 +6,7 @@ metadata: subjects: - kind: ServiceAccount name: {{ include "kad.serviceAccountName" . }} - namespace: {{ ".Release.Namespace" }} + namespace: {{ .Release.Namespace }} roleRef: kind: ClusterRole name: {{ include "kad.fullname" . }} diff --git a/integrator/common-pkg/k8s/client.go b/integrator/common-pkg/k8s/client.go index a0b19dca..d6efab69 100644 --- a/integrator/common-pkg/k8s/client.go +++ b/integrator/common-pkg/k8s/client.go @@ -48,7 +48,7 @@ func GetK8SConfig(log logging.Logger) (*rest.Config, error) { return nil, err } var k8sConfig *rest.Config - if conf.KubeconfigPath != "" { + if conf.KubeconfigPath == "" { // creates the in-cluster config k8sConfig, err = rest.InClusterConfig() if err != nil { diff --git a/integrator/common-pkg/plugins/fetcher/fetcher.go b/integrator/common-pkg/plugins/fetcher/fetcher.go index 33b17dbe..937b111e 100644 --- a/integrator/common-pkg/plugins/fetcher/fetcher.go +++ b/integrator/common-pkg/plugins/fetcher/fetcher.go @@ -51,7 +51,7 @@ func (c *CredentialFetcher) FetchPluginDetails(req *PluginRequest) (*PluginRespo case "argocd": return c.FetchArgoCDDetails( pluginDetails.Namespace, - pluginDetails.ReleaseName, + pluginDetails.ReleaseName+"-server", ) }