Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run helm repo update before searching repos #1026

Merged
merged 1 commit into from
May 14, 2024
Merged

Run helm repo update before searching repos #1026

merged 1 commit into from
May 14, 2024

Conversation

SimKev2
Copy link
Contributor

@SimKev2 SimKev2 commented May 14, 2024

If you are using a registry within your chartfile.yaml that you do not have a cached version of it seems that helm search repo will not function as expected. To fix this we can run a helm repo update on the repository file that will be used while searching in order to ensure we get up-to-date information.

Copy link

github-actions bot commented May 14, 2024

PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2024-05-14 20:18 UTC

@SimKev2
Copy link
Contributor Author

SimKev2 commented May 14, 2024

Tested locally, before change:

$ ~/go/src/github.com/grafana/tanka/tk tool charts version-check --pretty-print
{
  "stakater/reloader@0.0.104": {
    "name": "stakater/reloader",
    "directory": "0.0.104",
    "current_version": "0.0.104",
    "using_latest_version": true,
    "latest_version": {
      "name": "stakater/reloader",
      "version": "0.0.104",
      "description": "search did not return 1 version"
    },
    "latest_matching_major_version": {
      "name": "stakater/reloader",
      "version": "0.0.104",
      "description": "search did not return 1 version"
    },
    "latest_matching_minor_version": {
      "name": "stakater/reloader",
      "version": "0.0.104",
      "description": "search did not return 1 version"
    }
  }
}

After change:

$ ~/go/src/github.com/grafana/tanka/tk tool charts version-check --pretty-print
2024-05-14 15:12:08
{
  "stakater/reloader@0.0.104": {
    "name": "stakater/reloader",
    "directory": "0.0.104",
    "current_version": "0.0.104",
    "using_latest_version": false,
    "latest_version": {
      "name": "stakater/reloader",
      "version": "1.0.95",
      "app_version": "v1.0.95",
      "description": "Reloader chart that runs on kubernetes"
    },
    "latest_matching_major_version": {
      "name": "stakater/reloader",
      "version": "v0.0.104",
      "app_version": "v0.0.104",
      "description": "Reloader chart that runs on kubernetes"
    },
    "latest_matching_minor_version": {
      "name": "stakater/reloader",
      "version": "v0.0.129",
      "app_version": "v0.0.129",
      "description": "Reloader chart that runs on kubernetes"
    }
  }
}

@SimKev2 SimKev2 merged commit 723c9bb into main May 14, 2024
8 checks passed
@SimKev2 SimKev2 deleted the helm_repo_update branch May 14, 2024 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants