Skip to content

Implement kubernetes deployer#7

Merged
cwiklik merged 3 commits into
mainfrom
implement-kubernetes-deployer
May 19, 2025
Merged

Implement kubernetes deployer#7
cwiklik merged 3 commits into
mainfrom
implement-kubernetes-deployer

Conversation

@cwiklik

@cwiklik cwiklik commented May 19, 2025

Copy link
Copy Markdown
Collaborator

Implemented kubernetes based deployer for a component. It generates manifests to create deployment and service objects for each component

Jarek Cwiklik added 3 commits May 16, 2025 11:17
Signed-off-by: Jarek Cwiklik <cwiklik@mac.lan>
Signed-off-by: Jarek Cwiklik <cwiklik@mac.lan>
Signed-off-by: Jarek Cwiklik <cwiklik@mac.lan>
@cwiklik
cwiklik merged commit abb9da9 into main May 19, 2025
huang195 added a commit to huang195/kagenti-operator that referenced this pull request May 21, 2026
Four review items folded in:

* rossoctl#2 Document the burst-reconcile implication of byte-hashing the
  namespace authbridge-runtime-config CM. Single-edit on N agents
  re-hashes all N pod specs; Kubernetes sequences the actual rolls
  but the controller load fans out. Fine for typical small
  namespaces; worth knowing before formatting edits during peak.

* rossoctl#3 Add CR-side hash-change tests parallel to the existing CM-edit
  test: flipping MTLSMode disabled→strict on the AgentRuntime CR
  re-hashes; flipping AuthBridgeMode proxy-sidecar→lite on the CR
  re-hashes. Locks the rollout-on-CR-edit behavior so a future
  refactor that drops MTLSMode / AuthBridgeMode from resolvedConfig
  silently regresses into a failing test, not a silent shipping bug.

* rossoctl#5 Clarify the MTLSMode field godoc on CR=empty vs CR="disabled".
  These ARE observably different in `kubectl get -o yaml` and now
  produce different effective behavior:
    - empty: falls through to namespace ConfigMap, then to default.
    - "disabled": pinned at the CR layer; namespace cannot override.
  The original resolver had a bug: both fell through to the
  namespace because the fallthrough check used `mtlsMode ==
  MTLSModeDisabled` rather than "did the CR set the field." Fix
  the resolver to use a sentinel ("" = unset) — same shape as the
  AuthBridgeMode resolver above. Without this fix, the godoc would
  have been documenting unimplemented behavior.

* rossoctl#6 Add a comment on the unrecognized-mtlsMode WARN explaining the
  defense-in-depth intent (CRD enum check at the API server is the
  primary line; this is insurance against a future schema-validation
  regression and against non-CRD config sources). Prevents a future
  cleanup PR from dropping it as "redundant."

rossoctl#1 (auto-SPIRE log clarity) is already covered by the existing
mutatorLog.Info("mtlsMode set; auto-enabling SPIRE for this
workload", ...) — the why is in the message itself. No change.

rossoctl#4 (stale-mtls-block scrub end-to-end test) is already covered by
TestEnsurePerAgentConfigMap_MTLSScrubsStaleBlock — that test exactly
exercises "base YAML has stale mtls: strict, render with
MTLSModeDisabled, assert block gone." Reply on the PR pointing the
reviewer at it.

rossoctl#7 was an observation, no change.

Assisted-By: Claude (Anthropic AI) <noreply@anthropic.com>
Signed-off-by: Hai Huang <huang195@gmail.com>
@pdettori
pdettori deleted the implement-kubernetes-deployer branch July 15, 2026 23:23
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.

1 participant