Module: Gitlab::Kubernetes::Helm::ClientCommand

Included in:
DeleteCommand, InstallCommand, PatchCommand, ResetCommand
Defined in:
lib/gitlab/kubernetes/helm/client_command.rb

Instance Method Summary collapse

Instance Method Details

#init_commandObject


7
8
9
10
11
12
13
# File 'lib/gitlab/kubernetes/helm/client_command.rb', line 7

def init_command
  <<~SHELL.chomp
    export HELM_HOST="localhost:44134"
    tiller -listen ${HELM_HOST} -alsologtostderr &
    helm init --client-only
  SHELL
end

#repository_commandObject


15
16
17
# File 'lib/gitlab/kubernetes/helm/client_command.rb', line 15

def repository_command
  ['helm', 'repo', 'add', name, repository].shelljoin if repository
end