Hi,
I'm trying to install Helm chart from the local file on the local Minikube 
instance but I'm constantly getting the same error:

fatal: [localhost]: FAILED! => { 
   "changed": false, 
   "command": "/usr/local/bin/helm --namespace=kube-system list 
--output=yaml --filter registrylocal", 
   "invocation": { 
       "module_args": { 
           "atomic": false, 
           "binary_path": null, 
           "chart_ref": "registry-1.3.0-1026.tgz", 
           "chart_repo_url": null, 
           "chart_version": null, 
           "create_namespace": false, 
           "disable_hook": false, 
           "force": false, 
           "kube_context": null, 
           "kubeconfig_path": null, 
           "purge": true, 
           "release_name": "registrylocal", 
           "release_namespace": "kube-system", 
           "release_state": "present", 
           "release_values": {}, 
           "replace": false, 
           "update_repo_cache": false, 
           "values_files": [], 
           "wait": false, 
           "wait_timeout": null 
       } 
   }, 
   "msg": "Failure when executing Helm command. Exited 1.\nstdout: 
\nstderr: Error: unknown flag: --filter\n", 
   "stderr": "Error: unknown flag: --filter\n", 
   "stderr_lines": [ 
       "Error: unknown flag: --filter" 
   ], 
   "stdout": "", 
   "stdout_lines": [] 
}

As a test I'm able to create a namespace against the same Minikube instance:
--- 
- hosts: localhost 
 connection: local 
 gather_facts: false 

 tasks: 
   - name: Create namespace. 
     community.kubernetes.k8s: 
       name: test
       api_version: v1 
       kind: Namespace 
       state: present 

   - name: Deploy local Registry chart 
     community.kubernetes.helm: 
       chart_ref: registry-1.3.0-1026.tgz 
       release_namespace: kube-system 
       release_name: registrylocal

For some reason it doesn't like `release_name` value, I've tried changing 
to `name` alias but it is returning the same error. Running Helm version is 
the same on both sides:
Client: &version.Version{SemVer:"v2.14.3", 
GitCommit:"0e7f3b6637f7af8fcfddb3d2941fcc7cbebb0085", GitTreeState:"clean"} 
Server: &version.Version{SemVer:"v2.14.3", 
GitCommit:"0e7f3b6637f7af8fcfddb3d2941fcc7cbebb0085", GitTreeState:"clean"}

Any ideas what this could be?


-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-project+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/e80438f6-fd68-4479-8e8e-119bed5cd75fn%40googlegroups.com.

Reply via email to