Skip to content

Fix field names in external-auth examples - #6330

Merged
ChrisJBurns merged 2 commits into
stacklok:mainfrom
3nesdeniz:fix/external-auth-example-casing
Oct 20, 2026
Merged

ChrisJBurns merged 2 commits into
stacklok:mainfrom
3nesdeniz:fix/external-auth-example-casing

Conversation

@3nesdeniz

Copy link
Copy Markdown
Contributor

Summary

The example manifests under examples/operator/external-auth/ use snake_case keys (token_url, client_id, client_secret_ref, external_token_header_name) where the CRD schema expects camelCase (tokenUrl, clientId, clientSecretRef, externalTokenHeaderName), and a scope string where the schema defines a scopes list — so applying them verbatim fails validation. This updates the manifests to match the schema.

Split out of #6242 per review, so it can land on its own merits.

Validation

  • kubectl apply --dry-run=server requires a cluster with the CRDs installed; verified instead that every changed key matches the generated schema in deploy/charts/operator-crds/files/crds/toolhive.stacklok.dev_mcpexternalauthconfigs.yaml.

The example manifests under examples/operator/external-auth/ used
snake_case keys (token_url, client_id, client_secret_ref,
external_token_header_name) where the CRD schema expects camelCase
(tokenUrl, clientId, clientSecretRef, externalTokenHeaderName), and a
"scope" string where the schema defines a "scopes" list — so applying
them verbatim fails validation. Update the manifests to match the
schema.

Signed-off-by: Enes Deniz <142517728+3nesdeniz@users.noreply.github.com>
@codecov

codecov Bot commented Oct 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.75%. Comparing base (56fd4df) to head (f7b4c6a).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6330      +/-   ##
==========================================
- Coverage   79.76%   79.75%   -0.02%     
==========================================
  Files         825      825              
  Lines       84263    84268       +5     
==========================================
- Hits        67212    67207       -5     
- Misses      17046    17056      +10     
  Partials        5        5              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@ChrisJBurns
ChrisJBurns merged commit bf79521 into stacklok:main Oct 20, 2026
39 checks passed
@github-actions github-actions Bot mentioned this pull request Oct 22, 2026
2 tasks
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