Repository navigation
Conversation
…nfig-managed. (cherry picked from commit 4aec7f7)
(cherry picked from commit 80146d3)
(cherry picked from commit 18ab4ad)
Injecting features to allow transformers for each cloud provider implementation so enabled feature gates can be eavaluated. (cherry picked from commit 73b368b)
Enabling feature gate acessor to the cloud-config sync controller. (cherry picked from commit c63ea02)
Vendored the SPLAT-2868 fork branches of openshift/api (VSphereMultiVCenterDay2 feature gate and Day 2 CRD changes) and openshift/library-go (new pkg/cloudprovider/vsphere package) via replace directives, plus the MVS-driven indirect dependency updates. Co-Authored-By: Claude Code <noreply@anthropic.com>
|
Pipeline controller notification This PR uses the pipeline controller for second-stage tests. Selection and triggering follow the repository configuration. Use |
|
@vr4manta: This pull request references SPLAT-2868 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.19.z" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Important Pre-merge checks failedPlease resolve all errors before merging. Addressing warnings is optional.
|
| Check name | Status | Explanation |
|---|---|---|
| Stable And Deterministic Test Names | The PR (openshift/cluster-cloud-controller-manager-operator #530, author vr4manta, base release-4.19) adds Ginkgo test titles in pkg/controllers/cloud_config_sync_controller_test.go and pkg/cloud/vsph… |
|
| Single Node Openshift (Sno) Test Compatibility | The check applies to new Ginkgo e2e tests. The PR head (openshift/cluster-cloud-controller-manager-operator PR #530, author vr4manta, base release-4.19) was fetched locally as commit 9da6629 and diff… |
|
| Topology-Aware Scheduling Compatibility | The check applies only when a change adds or modifies deployment manifests, operator code, or controllers with scheduling constraints. I fetched the PR head (pr530, 9da6629) and diffed it against ad2… | |
| Ote Binary Stdout Contract | The "OTE Binary Stdout Contract" check is inapplicable to this pull request, so it passes. Evidence: - The repository is the cluster-cloud-controller-manager-operator (PR #530, base release-4.19, head… |
|
| Ipv6 And Disconnected Network Test Compatibility | The check applies to new Ginkgo e2e tests. The PR (openshift/cluster-cloud-controller-manager-operator #530, author vr4manta, base release-4.19, head SPLAT-2868) adds no e2e tests. Evidence: - I fetch… |
|
| No-Weak-Crypto | The no-weak-crypto check passes. I fetched the PR head (refs/pull/530/head, origin/pr/530) and diffed it against the merge-base with origin/release-4.19 (ad2f84d), excluding vendor. The non-vendor di… | |
| Container-Privileges | Summary: The PR adds no privileged container settings. The check does not apply to any new or changed pod spec. Evidence gathered: - I fetched the PR head (pull/530/head) and the base `origi… |
Full details: Stable And Deterministic Test Names
-
Explanation
The PR (openshift/cluster-cloud-controller-manager-operator
#530, author vr4manta, base release-4.19) adds Ginkgo test titles in pkg/controllers/cloud_config_sync_controller_test.go and pkg/cloud/vsphere/vsphere_config_transformer_test.go. I fetched the PR head (refs/pull/530/head) and diffed it against release-4.19 with vendor/ excluded. The added It()/Describe()/Context() titles are static string literals. Examples: "vSphere managed config sync", "syncManagedCloudConfig method", "should create managed cloud config if it doesn't exist", "should return false for AWS (not yet migrated)". None of them contain pod or node names, namespaces with random suffixes, IPs, timestamps, UUIDs, fmt.Sprintf interpolation, or legacy openshift-tests-private metadata tokens (Author:, NonHyperShiftHOST, ROSA/OSD_CCS/ARO, Polarion IDs). The titles are also generic enough not to be overly specific. No new titles in the diff are dynamic. Caveat: the computed merge-base looks older than the release-4.19 tip, so the diff includes unrelated vendor and package changes. The added test titles are still the relevant lines, and none of them violate the check.
Full details: Single Node Openshift (Sno) Test Compatibility
-
Explanation
The check applies to new Ginkgo e2e tests. The PR head (openshift/cluster-cloud-controller-manager-operator PR
#530, author vr4manta, base release-4.19) was fetched locally as commit 9da6629 and diffed against the release-4.19 base (ad2f84d). - Added It()/Describe()/Context() constructs are all in unit-test files: pkg/controllers/cloud_config_sync_controller_test.go (for example "vSphere managed config sync", "syncManagedCloudConfig method", "shouldManageManagedConfigMap function") and related pkg/cloud tests. They use in-process fake clients and check ConfigMap sync logic. - The rest of the added Ginkgo-matching lines are vendored Ginkgo library code, not new tests. - The repository has no e2e suite (no test/e2e or test/extended directory, and no e2e files in the tree). No changed file is an e2e test. None of the added tests are e2e tests, so the SNO compatibility criteria do not apply. The added unit tests do not assume multi-node topology. They check single-object reconcile behavior and do not count nodes, schedule pods across nodes, or depend on node drain or scaling.
Full details: Topology-Aware Scheduling Compatibility
-
Explanation
The check applies only when a change adds or modifies deployment manifests, operator code, or controllers with scheduling constraints. I fetched the PR head (pr530, 9da6629) and diffed it against ad2f84d, the parent of the first PR commit (686960b). The PR changes 22 non-vendor files, and none introduces scheduling constraints. - Manifests: the only YAML change is
manifests/0000_26_cloud-controller-manager-operator_02_rbac_operator.yaml, which addscreate,update, andpatchverbs to an existing RBAC rule. It has no pod spec, affinity, tolerations, nodeSelector, replica count, PDB, or topology spread. - Keyword scan: a case-insensitive search of the non-vendor diff for affinity, topology, toleration, nodeSelector, maxUnavailable, replicas, PodDisruption, TopologySpread, control-plane, node-role, SingleReplica, DualReplica, arbiter, and schedul returned no hits. - Code:cmd/config-sync-controllers/main.goadds a feature gate accessor and config clients.pkg/controllers/cloud_config_sync_controller.gochanges ConfigMap sync logic. The vSphere transformer and cloud config packages change as well. None of these sets pod scheduling, replica counts, or node selection. The checkout's HEAD is a later main commit, so I used the PR head fetched frompull/530/head. The diff is therefore complete for this check. No topology-sensitive scheduling change was introduced, so no topology-aware notice is required.
Full details: Ote Binary Stdout Contract
-
Explanation
The "OTE Binary Stdout Contract" check is inapplicable to this pull request, so it passes. Evidence: - The repository is the cluster-cloud-controller-manager-operator (PR
#530, base release-4.19, head SPLAT-2868). The provider-reported author is vr4manta. - The repository has no OpenShift Tests Extension framework. Searches foropenshift-tests, tests-extension, and OTE references in non-vendor code found nothing relevant. The onlyginkgohits are ordinary unit-test suites and vendored libraries. The Makefile and hack scripts contain no OTE wiring. - The PR description describes vSphere kube-cloud-config management: INI-to-YAML conversion, Infrastructure-derived transformations, and a feature gate. This is operator controller logic, not an OTE test binary. - Process-level stdout checks in the current non-vendor, non-test tree found noos.Stdout,fmt.Print*,print, orprintlncalls. Theinit()andmain()functions incmd/contain no stdout writes. Noklog.SetOutput,LogToStderr, orlog.SetOutputcalls appear, so klog keeps its default stderr behavior. Limitation: the release-4.19 base and the PR head were not present as local refs, so I could not isolate the exact PR diff. The current tree shows no process-level stdout writes, and the PR scope described in the metadata does not add any OTE binary. No failure condition is established.Resolution
None required for this check. If this repository is later wired to an OTE test binary, re-run this check against that binary's main and suite setup.
Full details: Ipv6 And Disconnected Network Test Compatibility
-
Explanation
The check applies to new Ginkgo e2e tests. The PR (openshift/cluster-cloud-controller-manager-operator
#530, author vr4manta, base release-4.19, head SPLAT-2868) adds no e2e tests. Evidence: - I fetched the PR head (pull/530/head) and diffed it against the release-4.19 ancestor commit ad2f84d. The diff touches 22 non-vendor files. Test files changed are pkg/controllers/cloud_config_sync_controller_test.go, pkg/cloud/vsphere/vsphere_config_transformer_test.go, pkg/cloud/vsphere/vsphere_cloud_config/config_test.go, and a few provider transformer tests. - The only Ginkgo blocks added are in cloud_config_sync_controller_test.go (for exampleDescribe("vSphere managed config sync")). These are package-level controller unit tests. They are not e2e tests. - The repository has no e2e test directory. No test imports k8s.io/kubernetes/test/e2e or openshift/origin. - For completeness, I scanned the added test lines for IPv4 literals, IPv6 "::", IP parsing, localhost, http(s) URLs, and public hostnames. None matched. Because no new e2e tests were added, the IPv6 and disconnected-network criteria do not apply to this PR. Verdict: PASS.
Full details: No-Weak-Crypto
-
Explanation
The no-weak-crypto check passes. I fetched the PR head (refs/pull/530/head, origin/pr/530) and diffed it against the merge-base with origin/release-4.19 (ad2f84d), excluding vendor. The non-vendor diff covers 22 files, mainly vSphere cloud-config sync, config transformer, and feature-gate wiring. Evidence: - Added lines in the non-vendor diff contain no MD5, SHA-1, DES, 3DES, RC4, Blowfish, or ECB usage, and no crypto/cipher/hmac imports. - No custom cryptographic code was added. The only pattern hits were generic
err != niland nil checks. - No secret or token value is compared with==,!=,bytes.Equal, orreflect.DeepEqualin the added code. - Newly vendored packages (library-go cloudprovider/vsphere, openshift/api config/v1alpha2 and features, automaxprocs, go.yaml.in/yaml) contain no weak cipher or digest calls. - The existingsha256use in pkg/controllers/resourceapply is unchanged by this PR and is not weak crypto. Non-crypto observation, outside this check: go.mod adds areplacedirective pointing openshift/api to a personal fork (vr4manta/api). The PR description does not mention it. This is a supply-chain concern, not a weak-crypto finding. Scope note: the PR head is a descendant of release-4.19 that includes an earlier commit series. The PR base was taken from the merge-base. The check covers the full non-vendor diff and newly added vendored packages.
Full details: Container-Privileges
-
Explanation
Summary: The PR adds no privileged container settings. The check does not apply to any new or changed pod spec. Evidence gathered: - I fetched the PR head (
pull/530/head) and the baseorigin/release-4.19. I compared them, excludingvendor/. - The non-vendor changes cover Go controller, transformer, and config code. They includepkg/controllers/cloud_config_sync_controller.go,pkg/cloud/vsphere/*,cmd/config-sync-controllers/main.go, andgo.mod/go.sum. - The only YAML change ismanifests/0000_26_cloud-controller-manager-operator_02_rbac_operator.yaml. It adds the verbscreate,update, andpatchto an existing RBAC rule. It adds nosecurityContext,privileged,hostNetwork,hostPID,hostIPC,SYS_ADMIN,allowPrivilegeEscalation, orrunAs*field. - A search of all added and removed non-vendor diff lines for these patterns returned no matches. - ExistinghostNetwork: trueentries in the repository (for example in the operator deployment manifest and the cloud provider asset deployments) are unchanged by this PR. The check does not flag pre-existing settings the PR does not introduce or modify. Conclusion: The PR introduces noprivileged: true, host namespace sharing,SYS_ADMIN,allowPrivilegeEscalation: true, or root-without-justification setting in any manifest.
Full details: Test Structure And Quality
-
Explanation
PR
#530adds Ginkgo tests in pkg/controllers/cloud_config_sync_controller_test.go. The new Describe "vSphere managed config sync" has BeforeEach setup and an AfterEach that deletes ConfigMaps in OpenshiftManagedConfigNamespace. Each It block mostly tests one behavior. Two quality criteria are not met: 1. Assertion messages (criterion 4): The new assertions have no failure messages. Examples:Expect(err).NotTo(HaveOccurred()),Expect(cl.Get(ctx, managedKey, managedCM)).To(Succeed()),Expect(shouldManageManagedConfigMap(...)).To(BeTrue()), andExpect(updatedCM.ResourceVersion).To(Equal(originalResourceVersion)). The check names this exact pattern as a flaw. The new Describe alone has about 25 such assertions. 2. Timeouts (criterion 3): The new AfterEach callsEventually(func() error {...}).Should(MatchError(apierrors.IsNotFound, "IsNotFound"))with no explicit timeout. It uses Gomega's default timeout. The check flags missing timeouts on Eventually calls. Mitigating context: The base repo has the same patterns. The base file has 77Expect(calls and none include a message. Existing Eventually calls also omit timeouts. Criterion 5 asks for consistency with the codebase, so this is a repo-wide gap, not one introduced by this PR alone. The PR still adds the new unflagged assertions and the new Eventually call. Other criteria: The new feature-gate test ("should continue with reconcile when feature gates are available") asserts several outcomes. It is still one reconcile behavior, so it is acceptable. Criterion 6 (ote.Informing) does not apply in a strict sense. The repo does not use ote.Informing, and these are unit tests under pkg/controllers. The new tests in vsphere_config_transformer_test.go are plain Go table tests (TestCloudConfigTransformer), not Ginkgo, so the Ginkgo criteria do not apply to them. Diff base: I compared the PR head (branch pr530, commit 9da6629) against ad2f84d, the release-4.19 merge tip that precedes the PR commits.Resolution
Update the new Ginkgo tests in pkg/controllers/cloud_config_sync_controller_test.go: - Add a meaningful failure message to each new Expect/Eventually assertion in the "vSphere managed config sync" Describe and the new feature-gate It. Example:
Expect(err).NotTo(HaveOccurred(), "failed to sync managed cloud config"). - Add an explicit timeout to the new AfterEach Eventually call. Use the existingtimeoutvariable if the file defines one, or define a named constant. Example:Eventually(..., timeout).Should(...). - Optional: mark the new It blocks with ote.Informing() only if this suite runs as an OTE/openshift-tests-private suite. The current unit-test suite does not use ote, so this step does not apply.
Full details: Microshift Test Compatibility
-
Explanation
The MicroShift Test Compatibility check applies only when this PR adds new Ginkgo e2e tests. I could not confirm whether it does. - The checkout is detached at 9da6629, a single commit that touches only pkg/cloud/vsphere/vsphere_config_transformer.go and its _test.go. The PR's release-4.19 base is not present, so the full PR patch could not be retrieved. - The repository has no e2e directory. Outside vendor/, no g.It(), g.Describe(), or ginkgo.It() calls exist, and no MicroShift references exist. - The PR description lists operator changes for the kube-cloud-config ConfigMap: INI-to-YAML conversion, Infrastructure-derived values, and feature gating. It mentions backports of
#442,#469, and#531and library-go/feature-gate harvesting. It does not mention e2e tests. Its wording suggests no e2e tests, but it does not establish their absence. - The primary PR author is vr4manta (provider-reported). The check does not depend on the author. Because the PR diff is unavailable, the absence of new Ginkgo e2e tests cannot be established. Missing evidence cannot establish PASS, and no changed e2e test exists to evaluate for FAIL.Resolution
Provide the PR's complete patch against release-4.19, for example by fetching origin/release-4.19 and the PR head into this checkout. Then rerun this check. If the patch adds no Ginkgo e2e tests (It/Describe/Context/When), the check is not applicable and passes. If it adds e2e tests, review each one against the MicroShift exclusion rules and the unavailable-API list in the check.
Full details: No-Sensitive-Data-In-Logs
-
Explanation
The check asks whether logging added or changed by this PR exposes passwords, tokens, API keys, PII, session IDs, internal hostnames, or customer data. Evidence gap: The local checkout is detached at 9da6629 on
main. NoSPLAT-2868branch or commit is present, and therelease-4.19base is not available. I could not obtain the PR head patch, so I could not identify the lines this PR adds or changes. Linked-repository inspection is also unavailable. Proxy evidence (currentmain, not the PR diff): -pkg/controllers/cloud_config_sync_controller.gologs status messages, ConfigMap namespace/name, and platform type. It logs errors with%v. It does not log cloud-config contents, credentials, or thevsphere-cloud-credentialssecret. -pkg/cloud/vsphere/vsphere_config_transformer.goreturns wrapped errors (failed to read the cloud.conf: %w) and does not log config text itself. - The PR description says it backports the vSphere multi-vCenter day-2 changes. Those changes handle vCenter and credential-related data. Any new log statement or error formatting in them that prints the INI/YAML source, vCenter usernames, or passwords would violate the check. I could not confirm this either way. No failure condition is established. No PASS is possible without reviewing the PR diff.Resolution
Check out the PR head branch
SPLAT-2868(github.com/openshift/cluster-cloud-controller-manager-operator PR#530) and its baserelease-4.19. Then review every added or changed log, print, and error-formatting statement in the PR diff. Confirm that none prints the cloud-config contents, vCenter credentials, passwords, tokens, or other sensitive values. Re-run this check on that diff.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
…me a pointer The upstream library-go vSphere cloud-config Nodes field changed from a value struct to a pointer (*Nodes) so that an empty nodes section can be omitted from the marshaled config on Go versions without omitzero support. setNodes() still assumed Nodes was always non-nil and panicked on inputs without an existing nodes: section. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
@vr4manta: This PR was included in a payload test run from openshift/api#3110 |
|
@vr4manta: This PR was included in a payload test run from openshift/api#3110
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/b13231b0-d305-11f1-88f1-8dfe8ddcf970-0 |
|
@vr4manta: This PR was included in a payload test run from openshift/api#3110
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/cea25220-d31e-11f1-9689-d4eb2855df8b-0 |
|
@vr4manta: This PR was included in a payload test run from openshift/api#3110
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/c8af78c0-d3aa-11f1-927b-960550b2b9d3-0 |
|
@vr4manta: This PR was included in a payload test run from openshift/api#3110
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/fa610ca0-d6cd-11f1-945f-513cc3d08010-0 |
|
@vr4manta: This PR was included in a payload test run from openshift/api#3110
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/c9d2a970-d783-11f1-91d9-926a603dc3ce-0 |
…ailureDomains setVirtualCenters unconditionally cleared cpiCfg.Vcenter whenever infra.Spec.PlatformSpec.VSphere was non-nil, even when it carried no VCenters or FailureDomains. This silently dropped the [VirtualCenter]/ [Workspace] sections parsed from the legacy source cloud-config on non-zonal vSphere clusters whose Infrastructure object only has nodeNetworking/VIPs populated, producing a cloud-conf with only [Global] and crashing vsphere-cloud-controller-manager with "No Virtual Center hosts defined". Skip the clear-and-rebuild when both VCenters and FailureDomains are empty, so legacy clusters keep the vcenters parsed from their source config while day2/zonal clusters still get stale vcenters cleaned up. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
@vr4manta: This PR was included in a payload test run from openshift/installer#11024
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/64dbbc9c-ecef-11f1-92cf-2c60f9ec4646-0 |
|
@vr4manta: This PR was included in a payload test run from openshift/installer#11024
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/68dafde4-ecef-11f1-8d07-3f8b929cade8-0 |
|
@vr4manta: This PR was included in a payload test run from openshift/installer#11024
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/ebe07088-ecf0-11f1-8701-136129493909-0 |
|
@vr4manta: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
SPLAT-2868
Changes
Enhanced the cluster-cloud-controller-manager-operator (CCCMO) to manage the openshift-config-managed/kube-cloud-config ConfigMap for vSphere platforms, migrating ownership from the Cluster Config Operator (CCO) to CCCMO. This enables CCCMO to:
Notes
This PR is backporting the following PRs in relation to the vSphere multi vCenter day 2 support feature:
Since the original PRs require changes to API and library-go, we need to make sure to update the references here to point to the release-4.29 variants to make sure we do not pull in new functionality.
Also in 4.19, this operator did not support setting up feature gate accessor and did not use feature gates with transformers on providers. The commit changes for these were harvested from newer releases.