-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove vendor dir Signed-off-by: Josh Dolitsky <[email protected]> * update modules, install both helm 2 & 3 Signed-off-by: Josh Dolitsky <[email protected]> * run install test on both helm 2 & 3 Signed-off-by: Josh Dolitsky <[email protected]> * test break appropriately on helm 3 Signed-off-by: Josh Dolitsky <[email protected]> * fix broken unit tests Signed-off-by: Josh Dolitsky <[email protected]> * key on helm version Signed-off-by: Josh Dolitsky <[email protected]> * acceptance tests passing for v2 and v3 Signed-off-by: Josh Dolitsky <[email protected]> * cleanup of imports, validate xdg/helm2 homes Signed-off-by: Josh Dolitsky <[email protected]> * fix for unit tests Signed-off-by: Josh Dolitsky <[email protected]> * update to golang 1.13 Signed-off-by: Josh Dolitsky <[email protected]>
- Loading branch information
Showing
297 changed files
with
1,200 additions
and
57,196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,34 @@ | ||
import common | ||
import os | ||
|
||
import common | ||
|
||
class Helm(common.CommandRunner): | ||
def set_helm_version(self, version): | ||
version = str(version) | ||
if version == '2': | ||
common.HELM_EXE = 'HELM_HOME=%s helm2' % os.getenv('TEST_V2_HELM_HOME', '') | ||
elif version == '3': | ||
common.HELM_EXE = 'XDG_CACHE_HOME=%s XDG_CONFIG_HOME=%s XDG_DATA_HOME=%s helm3' % \ | ||
(os.getenv('TEST_V3_XDG_CACHE_HOME', ''), os.getenv('TEST_V3_XDG_CONFIG_HOME', ''), | ||
os.getenv('TEST_V3_XDG_DATA_HOME', '')) | ||
else: | ||
raise Exception('invalid Helm version provided: %s' % version) | ||
|
||
def add_chart_repo(self): | ||
self.remove_chart_repo() | ||
self.run_command('helm repo add %s %s' % (common.HELM_REPO_NAME, common.HELM_REPO_URL)) | ||
self.run_command('%s repo add %s %s' % (common.HELM_EXE, common.HELM_REPO_NAME, common.HELM_REPO_URL)) | ||
|
||
def remove_chart_repo(self): | ||
self.run_command('helm repo remove %s' % common.HELM_REPO_NAME) | ||
self.run_command('%s repo remove %s' % (common.HELM_EXE, common.HELM_REPO_NAME)) | ||
|
||
def install_helm_plugin(self): | ||
self.run_command('helm plugin install %s' % self.rootdir) | ||
self.run_command('%s plugin install %s' % (common.HELM_EXE, self.rootdir)) | ||
|
||
def check_helm_plugin(self): | ||
self.run_command('helm plugin list | grep ^push') | ||
self.run_command('%s plugin list | grep ^push' % common.HELM_EXE) | ||
|
||
def run_helm_plugin(self): | ||
self.run_command('helm push --help') | ||
self.run_command('%s push --help' % common.HELM_EXE) | ||
|
||
def remove_helm_plugin(self): | ||
self.run_command('helm plugin remove push') | ||
self.run_command('%s plugin remove push' % common.HELM_EXE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.