Complete helm toolkit with generation and validation capabilities
94
94%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Advisory
Suggest reviewing before use
You are given the following Helm chart directory layout for a chart called webapp:
webapp/
├── Chart.yaml
├── values.yaml
└── templates/
├── deployment.yaml
└── service.yamlChart.yaml contents:
apiVersion: v1
name: webapp
description: A simple web application chart
version: 0.1.0
appVersion: "1.0"values.yaml contents:
replicaCount: 1
image:
repository: nginx
tag: latest
pullPolicy: IfNotPresent
service:
type: ClusterIP
port: 80templates/deployment.yaml contents:
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "webapp.fullname" . }}
labels:
{{- include "webapp.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "webapp.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
{{- include "webapp.selectorLabels" . | nindent 8 }}
spec:
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
ports:
- containerPort: 80Perform Stage 2 (Chart Structure Validation) and Stage 3 (Helm Lint) of the helm-validator workflow on this chart.
helm lint --strict would flag, including the apiVersion value and any missing recommended fields.Do NOT modify any files. List proposed fixes only.