elastic / elastic-agent

Elastic Agent - single, unified way to add monitoring for logs, metrics, and other types of data to a host.
Other
21 stars 144 forks source link

[8.x](backport #6060) [helm] add lint checks for renderExamples #6092

Closed mergify[bot] closed 2 days ago

mergify[bot] commented 2 days ago

What does this PR do?

This PR extends the Helm lint checks in our CI pipeline to validate all examples in the Helm chart. Previously, the helm template command passed successfully but was insufficient because helm lint could still fail. By ensuring comprehensive linting, we address inconsistencies and prevent errors during deployment.

Key changes include:

Why is it important?

This change is important to ensure consistency across our Helm chart configurations. By extending the lint checks to include all examples, we can catch issues ( such as the ones seen in this Buildkite job) early in the CI pipeline, reducing the risk of deployment failures.

Checklist

Disruptive User Impact

This change does not introduce any disruptive impact on users. The enhancements are internal to the CI validation process and do not affect end-user experience directly.

How to test this PR locally

  1. Run helm template ./deploy/helm/elastic-agent -f ./deploy/helm/elastic-agent/examples/kubernetes-default/agent-kubernetes-values.yaml to ensure it passes.
  2. Run helm lint ./deploy/helm/elastic-agent -f ./deploy/helm/elastic-agent/examples/kubernetes-default/agent-kubernetes-values.yaml and confirm that the lint checks also pass without errors.

mage helm:renderExamples does lint validation for all examples as well

Related issues

elasticmachine commented 2 days ago

Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane)

elastic-sonarqube[bot] commented 2 days ago

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube