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

Validation failure for kubernetes.core.helm_repository #4171

Closed
fmunteanu opened this issue May 16, 2024 · 2 comments
Closed

Validation failure for kubernetes.core.helm_repository #4171

fmunteanu opened this issue May 16, 2024 · 2 comments
Labels

Comments

@fmunteanu
Copy link

fmunteanu commented May 16, 2024

Summary

While running the ansible-lint GitHub workflow, configured as per documentation, an error is produced.

Issue Type
  • Bug Report
OS / ENVIRONMENT

Github Action, running on ubuntu-latest, see workflow and requirements file.

STEPS TO REPRODUCE

See failed workflow:

Error: couldn't resolve module/action 'kubernetes.core.helm_repository'. This often indicates a misspelling, missing collection, or incorrect module path.
Desired Behavior

No errors should be produced, since kubernetes.core is listed into requirements file.

Actual Behavior

Errors are produced, related to kubernetes.core.helm_repository module. For example, there no errors displayed for kubernetes.core.helm or kubernetes.core.k8s, see role example. It might be related to the underscore present into helm_repository.

Please note there are no linting issues, while running ansible-lint on Visual Studio Code.

@fmunteanu fmunteanu added bug new Triage required labels May 16, 2024
@fmunteanu fmunteanu changed the title Validation failure Validation failure for kubernetes.core.helm_repository May 16, 2024
@ssbarnea ssbarnea removed the new Triage required label May 22, 2024
@ssbarnea
Copy link
Member

Please try to reproduce with current version of ansible-lint, see https://github.com/ansible/ansible-lint/tags --- likely v24 or even better @main.

@fmunteanu
Copy link
Author

fmunteanu commented May 22, 2024

@ssbarnea I'm currently using @v6, which is the latest version as per documentation:

jobs:
  validation:
    name: Validation
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Repo
        uses: actions/checkout@v4
      - name: Run Ansible Lint
        uses: ansible/ansible-lint@v6

Is it possible to re-open the issue? Running on @v24 produces the same error, @main produces even more errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants