Skip to content

Commit

Permalink
Fix helm stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Oct 17, 2024
1 parent 1714201 commit c91a7e1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/helm/thecombine/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ global:
# Define the image registry to use (may be blank for local images)
imageRegistry: awsEcr
imageTag: "latest"
pullSecretName: "None"
pullSecretName: aws-login-credentials
# Update strategy should be "Recreate" or "Rolling Update"
updateStrategy: Recreate

Expand Down
2 changes: 1 addition & 1 deletion deploy/scripts/helm_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def create_secrets(

def get_installed_charts(helm_cmd: List[str], helm_namespace: str) -> List[str]:
"""Create a list of the helm charts that are already installed on the target."""
lookup_results = run_cmd(helm_cmd + ["list", "-n", helm_namespace, "-o", "yaml"])
lookup_results = run_cmd(helm_cmd + ["list", "-a", "-n", helm_namespace, "-o", "yaml"])
chart_info: List[Dict[str, str]] = yaml.safe_load(lookup_results.stdout)
chart_list: List[str] = []
for chart in chart_info:
Expand Down
2 changes: 2 additions & 0 deletions deploy/scripts/setup_combine.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,10 @@ def main() -> None:
chart_namespace = config["charts"][chart]["namespace"]
logging.debug(f"Namespace: {chart_namespace}")
if add_namespace(chart_namespace, kube_env.get_kubectl_cmd()):
logging.debug(f"Namespace '{chart_namespace}' created")
installed_charts: List[str] = []
else:
logging.debug(f"Namespace '{chart_namespace}' already exists")
# Get list of charts in target namespace
installed_charts = get_installed_charts(helm_cmd, chart_namespace)
logging.debug(f"Installed charts: {installed_charts}")
Expand Down

0 comments on commit c91a7e1

Please sign in to comment.