mirror of
https://github.com/goharbor/harbor
synced 2025-05-21 22:33:42 +00:00
Merge pull request #15738 from YangJiao0817/fix-helm-cli
Update helm cm-push plugin
This commit is contained in:
commit
7b39bab0f3
@ -22,7 +22,7 @@ def helm_save(chart_archive, harbor_server, project, repo_name):
|
|||||||
base.run_command(command)
|
base.run_command(command)
|
||||||
|
|
||||||
def helm_push(harbor_server, project, repo_name, version):
|
def helm_push(harbor_server, project, repo_name, version):
|
||||||
command = ["helm3", "chart","push", harbor_server+"/"+project+"/"+repo_name+":"+version]
|
command = ["helm3", "chart", "push", harbor_server+"/"+project+"/"+repo_name+":"+version]
|
||||||
ret = base.run_command(command)
|
ret = base.run_command(command)
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ def helm2_add_repo(helm_repo_name, harbor_url, project, username, password, expe
|
|||||||
|
|
||||||
def helm2_push(helm_repo_name, chart_file, project, username, password):
|
def helm2_push(helm_repo_name, chart_file, project, username, password):
|
||||||
get_chart_file(chart_file)
|
get_chart_file(chart_file)
|
||||||
command = ["helm2", "push", "--username=" + username, "--password=" + password, chart_file.split('/')[-1], helm_repo_name]
|
command = ["helm2", "cm-push", "--username=" + username, "--password=" + password, chart_file.split('/')[-1], helm_repo_name]
|
||||||
base.run_command(command)
|
base.run_command(command)
|
||||||
|
|
||||||
def helm2_repo_update():
|
def helm2_repo_update():
|
||||||
|
@ -34,7 +34,7 @@ Helm Repo Push
|
|||||||
${current_dir}= Run pwd
|
${current_dir}= Run pwd
|
||||||
Run cd ${current_dir}
|
Run cd ${current_dir}
|
||||||
Run wget ${harbor_chart_file_url}
|
Run wget ${harbor_chart_file_url}
|
||||||
Wait Unitl Command Success ${helm_cmd} push --username=${user} --password=${pwd} ${chart_filename} ${helm_repo_name}
|
Wait Unitl Command Success ${helm_cmd} cm-push --username=${user} --password=${pwd} ${chart_filename} ${helm_repo_name}
|
||||||
|
|
||||||
Helm Chart Push
|
Helm Chart Push
|
||||||
[Arguments] ${ip} ${user} ${pwd} ${chart_file} ${archive} ${project} ${repo_name} ${verion}
|
[Arguments] ${ip} ${user} ${pwd} ${chart_file} ${archive} ${project} ${repo_name} ${verion}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user