Repository navigation
Install Config Schema Extension for Per-Component Credentials - #1
Merged
Merged
Conversation
This commit implements Story #3: Install Config Schema Extension for vSphere Multi-Account Credentials. It extends the install-config.yaml schema to support per-component credentials while maintaining backward compatibility with legacy single-account mode. Changes: - Add ComponentCredentials struct with fields for installer, machineAPI, csiDriver, cloudController, and diagnostics components - Add AccountCredentials struct supporting multi-vCenter topologies - Add platform field for optional ComponentCredentials - Create test stubs for schema validation (6 test scenarios) - Create test stubs for install-config integration tests Test Plan: - Unit tests in pkg/types/vsphere/validation_test.go - Default/fallback tests in pkg/types/vsphere/defaults_test.go - Integration tests in pkg/asset/installconfig/vsphere/validation_test.go All tests are currently stub implementations marked with t.Skip() and will be fully implemented in subsequent iterations. Related: openshift-splat-team/splat-team#3 Parent: openshift-splat-team/splat-team#2 Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
rvanderp3
added a commit
that referenced
this pull request
Apr 14, 2026
… restart Address code review feedback: 1. Multi-vCenter secret format support (Critical #1): - Add isMultiVCenterMode() detection based on credentials file - Update createSecret() to use FQDN-keyed format when multi-vCenter - Support all vCenters from credentials file (not just first) - Align with Story #8 multi_vcenter.go implementation 2. Real operator restart implementation (Critical #2): - Replace stub restartComponentOperators() with real Kubernetes API calls - Trigger rollout restart via deployment annotation update - Wait for rollout completion with 5-minute timeout - Replace stub verifyComponentReconnection() with deployment ready checks 3. Complete rollback implementation (Major #3): - Restore original passthrough secret from backup - Delete backup secret after successful restoration - Add TODO for CCO CloudCredential CR revert logic 4. Namespace validation (Minor #4): - Add validateNamespacesExist() before creating secrets - Fail early with clear error if namespace missing 5. Multi-vCenter credentials support (Minor #5): - Process all vCenters from credentials file - Validate privileges for each vCenter Test updates: - Add mock operator deployments to integration test - Create all required namespaces in test setup - All 4 unit tests passing - Integration test (happy path) passing - 5 E2E tests appropriately skipped (require live cluster) Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR implements Story #3: Install Config Schema Extension for vSphere Multi-Account Credentials.
Extends the install-config.yaml schema to support per-component vSphere credentials while maintaining backward compatibility with legacy single-account mode.
Changes
Schema Extensions
ComponentCredentials struct: New optional field in Platform struct with component-specific credential accounts
Installer: Credentials for cluster infrastructure deployment (~45 privileges)MachineAPI: Credentials for VM lifecycle operations (~35 privileges)CSIDriver: Credentials for storage provisioning (~10-15 privileges)CloudController: Read-only credentials for node discovery (~10 privileges)Diagnostics: Read-only credentials for troubleshooting (~5 privileges)AccountCredentials struct: Holds username, password, and optional vCenter FQDN override for multi-vCenter support
Backward Compatibility: Legacy
DeprecatedUsernameandDeprecatedPasswordfields remain supported. Components without specific credentials fall back to legacy credentials (passthrough mode).Test Stubs
Unit Tests (
pkg/types/vsphere/)validation_test.go: 5 test scenarios for schema validationdefaults_test.go: Fallback logic testIntegration Tests (
pkg/asset/installconfig/vsphere/)validation_test.go: Install-config parsing testsAll test stubs are marked with
t.Skip("Implementation pending")and will be fully implemented in subsequent iterations.Test Plan
Phase 1: Unit Tests
Phase 2: Integration Tests
go test -v github.com/openshift/installer/pkg/asset/installconfig/vsphere -run TestInstallConfigValidationPhase 3: Edge Case Testing
Design Context
Parent Epic: openshift-splat-team/splat-team#2 - vSphere Multi-Account Credentials
Story: openshift-splat-team/splat-team#3 - Install Config Schema Extension
Design Doc: epic-2.md
Key Architectural Principles:
Acceptance Criteria Met
Next Steps
Related Issues
🤖 Generated with Claude Code