Fix function helm index
Related-prod: PROD-32431
Change-Id: I291f388db9664a99c926927e6768295a2443b6fe
diff --git a/src/com/mirantis/mk/Helm.groovy b/src/com/mirantis/mk/Helm.groovy
index c3b23fb..899bc36 100644
--- a/src/com/mirantis/mk/Helm.groovy
+++ b/src/com/mirantis/mk/Helm.groovy
@@ -8,8 +8,10 @@
/**
* Build index file for helm chart
+ * @param extra_params additional params, e.g. --url repository_URL
+ * @param charts_dir path to a directory
*/
-def helmIndex(){
- sh("helm index")
-}
\ No newline at end of file
+def helmRepoIndex(extra_params='', charts_dir='.'){
+ sh("helm repo index ${extra_params} ${charts_dir}")
+}