Skip to content

enhancement/hypershift: sync storageclass-kms-key EP to implementation - #2

Open
devguyio-agent-smith[bot] wants to merge 6 commits into
masterfrom
docs/storageclass-kms-ep-sync
Open

devguyio-agent-smith[bot] wants to merge 6 commits into
masterfrom
docs/storageclass-kms-ep-sync

Conversation

@devguyio-agent-smith

Copy link
Copy Markdown

Summary

Sync the StorageClass KMS key enhancement proposal to the as-implemented design in the
feature/storage-kms-key work. The EP had drifted from the implementation on several
axes; this brings it back to the source of truth.

Drift corrected

  • API path and type names: csiDriverConfig -> csiDriverOperator;
    CSIDriverOperatorConfig -> CSIDriverOperatorSpec (the EP was even internally
    inconsistent).
  • CLI flag: --storage-volumes-kms-key -> --initial-storage-volumes-kms-key,
    with the help text synced to the registered flag.
  • Validation/immutability design: struct-level immutability CEL removed and
    MinProperties=1 added on both new structs; the two has()-based spec rules replaced
    by the single optional-chaining presence-equality rule; matches(self, ...) ->
    self.matches(...); and the two rules that were missing from the EP documented
    (platform-is-AWS guard, and the region-match rule with its split-size guard).
  • HostedControlPlane parity: corrected the false "added on both HostedCluster and
    HostedControlPlane" claim. The shared OperatorConfiguration field is mirrored to
    HCP automatically, but the spec-level CEL guards live only on HostedClusterSpec
    because HCP is controller-managed.
  • Bootstrap ordering: rewritten from the old "conditional dependency when
    initialKMSKeyARN is set" design to the implemented precondition approach
    (WithGatedPreconditions), which gates all clusters on the initial rollout and stops
    gating once the CSO workload exists.
  • Field godoc: reconciled with the code godoc (region-match sentence, rolesRef path,
    hosted-cluster wording).
  • Test Plan: envtest list expanded to the implemented superset (per-partition accept
    cases, malformed account ID, region mismatch, non-AWS platform, unrelated-field-update
    accept); E2E section rewritten to the e2e-v2 storage-kms test, its public-group
    label, the e2e-v2-aws job, and the HYPERSHIFT_STORAGE_KMS_KEY_ALIAS env-var skip
    gate. Future tense removed.
  • Status: provisional -> implemented; last-updated refreshed.

Prose use of "guest cluster" is retained (it is the prevalent term across the
openshift/enhancements HyperShift directory); only embedded godoc blocks use
"hosted cluster" to match the code.

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.

0 participants