Skip to content

Fix/complex template improvements#22

Open
stepankonecny96 wants to merge 3 commits intomainfrom
fix/complex-template-improvements
Open

Fix/complex template improvements#22
stepankonecny96 wants to merge 3 commits intomainfrom
fix/complex-template-improvements

Conversation

@stepankonecny96
Copy link
Copy Markdown
Collaborator

No description provided.

stepanclb and others added 3 commits April 28, 2026 16:26
…late fixes

- keda-scaledobject.yaml: wrap global.keda in parentheses so awsRegion
  lookup is nil-safe when global.keda is unset (otherwise template
  fails with nil pointer dereference instead of the intended fail
  message).
- keda-triggerauthentication.yaml: replace `default true X` with
  `ne X false`. Go template's `default` treats literal false as empty
  and falls back to true, so triggerAuthEnabled: false had no effect.
- serviceaccount.yaml: drop trailing `-}}` that was stripping the
  `---` document separator; remove redundant `and` with single
  argument in the global SA guard.
- values.schema.json: register triggerAuthEnabled (boolean, default
  true) on kedaTriggerAwsSqsQueue (previously rejected as
  'Additional property not allowed'); consolidate strategyType into
  definitions/strategyType referenced via \$ref from both global and
  per-component schemas, matching the existing rollingUpdate pattern.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- Chart.yaml: bump 1.8.3 -> 1.8.4
- README.md: regenerate via helm-docs (version badge 1.6.0 -> 1.8.4,
  trailing blank line fix)
- README.md.gotmpl: move Persistent Volume Claims documentation into
  the helm-docs template so it survives future README regenerations.
  The previous prose section lived only in README.md and would be
  wiped on the next docs run.
- testing-values/values-recreate.yaml: exercise strategyType:
  Recreate alongside default RollingUpdate across http, consumer.
- testing-values/values-host-network.yaml: exercise hostNetwork +
  dnsPolicy across http, consumer, cronjob.
- testing-values/values-node-name.yaml: exercise nodeName across
  http, consumer, cronjob, pre-job.
- ci.yaml: wire all three new values files into both the lint and
  template-test jobs.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…unts

Same class of bug as the recently-fixed triggerAuthEnabled. The
`default true .readOnly` guard treats a literal `false` as empty and
falls back to `true`, so users who explicitly set `readOnly: false`
on a configMap or secret volume mount silently got `readOnly: true`.

Replace with `ne .readOnly false` which:
- returns true when .readOnly is true (correct)
- returns false when .readOnly is false (now correct, was wrong)
- returns true when .readOnly is unset (preserves prior default)

emptyDirs/others on lines 73/80 use `default false .readOnly` which
is symmetric and correct by accident across all three input cases,
so left as-is.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@stepanclb
Copy link
Copy Markdown
Contributor

Superseded by #21 — all template fixes, schema changes, version bump, README updates, testing-values, and CI changes from this PR are already included in #21 alongside the new helm-unittest suites. Closing to avoid double review and merge conflicts.

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