Skip to content

Commit be1d711

Browse files
mayurkrclaude
andauthored
fix: correct CRD field accuracy across samples and Helm charts (#67)
- ScanReport sample: remove non-existent fields (startedAt, completedAt, passedControls, failedControls) that are not in the ScanReportSpec CRD definition - ClusterScan compliance: exclude nist-800-53 and iso-27001 from ClusterScan presets since its enum only allows cis, nsa-cisa, pci-dss, soc2, hipaa (those frameworks are cloud-only) - Operator values.yaml: fix temperature from quoted string "0.1" to float 0.1 matching the CRD's *float64 type Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2976966 commit be1d711

4 files changed

Lines changed: 6 additions & 15 deletions

File tree

config/samples/zelyo-operator_v1alpha1_scanreport.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ metadata:
88
namespace: zelyo-system
99
spec:
1010
scanRef: clusterscan-sample
11-
startedAt: "2026-03-03T02:00:00Z"
12-
completedAt: "2026-03-03T02:05:30Z"
1311
summary:
1412
totalFindings: 0
1513
critical: 0
@@ -18,6 +16,4 @@ spec:
1816
low: 0
1917
info: 0
2018
resourcesScanned: 0
21-
passedControls: 0
22-
failedControls: 0
2319
findings: []

deploy/helm/zelyo-operator/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ config:
161161
# -- Custom API endpoint (required for ollama/custom providers)
162162
endpoint: ""
163163
# -- LLM temperature (0.0 = deterministic, 1.0 = creative)
164-
temperature: "0.1"
164+
temperature: 0.1
165165
# -- Max tokens per LLM request
166166
maxTokensPerRequest: 4096
167167

deploy/helm/zelyo-policies/templates/_helpers.tpl

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,9 @@ strict — all 8 rules, all enforced
175175
{{- end }}
176176

177177
{{/*
178-
Collect enabled compliance frameworks from compliance.presets into a YAML list.
179-
Used by ClusterScan and CloudAccountConfig templates.
178+
Collect enabled compliance frameworks valid for ClusterScan.
179+
ClusterScan enum: cis, nsa-cisa, pci-dss, soc2, hipaa.
180+
Note: nist-800-53 and iso-27001 are cloud-only and NOT valid here.
180181
*/}}
181182
{{- define "zelyo-policies.complianceFrameworks" -}}
182183
{{- $frameworks := list }}
@@ -192,12 +193,6 @@ Used by ClusterScan and CloudAccountConfig templates.
192193
{{- if .Values.compliance.presets.hipaa }}
193194
{{- $frameworks = append $frameworks "hipaa" }}
194195
{{- end }}
195-
{{- if .Values.compliance.presets.nist }}
196-
{{- $frameworks = append $frameworks "nist-800-53" }}
197-
{{- end }}
198-
{{- if .Values.compliance.presets.iso27001 }}
199-
{{- $frameworks = append $frameworks "iso-27001" }}
200-
{{- end }}
201196
{{- toJson $frameworks }}
202197
{{- end }}
203198

deploy/helm/zelyo-policies/templates/cluster-scans.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
{{- /*
33
Build the preset compliance frameworks list once for reuse.
44
*/ -}}
5+
{{- /* ClusterScan only supports: cis, nsa-cisa, pci-dss, soc2, hipaa.
6+
nist-800-53 and iso-27001 are cloud-only (CloudAccountConfig). */ -}}
57
{{- $presetFrameworks := list }}
68
{{- if .Values.compliance.presets.cis }}{{ $presetFrameworks = append $presetFrameworks "cis" }}{{ end }}
79
{{- if .Values.compliance.presets.soc2 }}{{ $presetFrameworks = append $presetFrameworks "soc2" }}{{ end }}
810
{{- if .Values.compliance.presets.pciDss }}{{ $presetFrameworks = append $presetFrameworks "pci-dss" }}{{ end }}
911
{{- if .Values.compliance.presets.hipaa }}{{ $presetFrameworks = append $presetFrameworks "hipaa" }}{{ end }}
10-
{{- if .Values.compliance.presets.nist }}{{ $presetFrameworks = append $presetFrameworks "nist-800-53" }}{{ end }}
11-
{{- if .Values.compliance.presets.iso27001 }}{{ $presetFrameworks = append $presetFrameworks "iso-27001" }}{{ end }}
1212
{{- /*
1313
Nightly ClusterScan — full scan every night.
1414
*/ -}}

0 commit comments

Comments
 (0)