Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Introduce WCP_TKG_Multiple_CL FSS in vm-operator #406

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

ridaz
Copy link

@ridaz ridaz commented Feb 28, 2024

What does this PR do, and why is it needed?

This PR will bring in the following changes:

  1. Adding support for WCP_TKG_Multiple_CL in the following :
    a. YAML Changes
    - config/local/vmoperator/local_env_var_patch.yaml
    - config/wcp/vmoperator/manager_env_var_patch.yaml
    b. Adding a new variable for TKGMultipleCL
    - pkg/config/config.go
    - pkg/config/default.go
    - pkg/config/env.go
    - pkg/config/env/env.go
    c. Updating the variable TKGMultipleCL as env variable in UTs in pkg/config/env_test.go

  2. Updating the reconcile logic in setUpCVMIFromCCLItem to update the labels on if the labels exists in CCLItems.

Which issue(s) is/are addressed by this PR? (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):

Fixes #427

Are there any special notes for your reviewer:

Please add a release note if necessary:


@github-actions github-actions bot added the size/S Denotes a PR that changes 10-29 lines. label Feb 28, 2024
@ridaz ridaz force-pushed the topic/ridaz/multi-cl branch from 956fcb6 to 95e2651 Compare February 29, 2024 06:22
@ridaz ridaz marked this pull request as draft February 29, 2024 06:48
@ridaz ridaz force-pushed the topic/ridaz/multi-cl branch from 95e2651 to ca29665 Compare February 29, 2024 06:58
@akutz
Copy link
Collaborator

akutz commented Mar 5, 2024

@ridaz Can you please squash all of your commits before removing the WiP label? Thanks!

@ridaz ridaz force-pushed the topic/ridaz/multi-cl branch from 0a1f6ce to 5dc5c20 Compare March 8, 2024 10:37
@github-actions github-actions bot added size/M Denotes a PR that changes 30-99 lines. and removed size/S Denotes a PR that changes 10-29 lines. labels Mar 8, 2024
@ridaz ridaz changed the title WIP: Introduce WCP_TKG_Multiple_CL FSS in vm-operator ✨ ✨ WIP: Introduce WCP_TKG_Multiple_CL FSS in vm-operator Mar 8, 2024
Copy link
Collaborator

@akutz akutz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, with a comment about constants and a question about label removal.

@ridaz ridaz changed the title ✨ WIP: Introduce WCP_TKG_Multiple_CL FSS in vm-operator ✨ Introduce WCP_TKG_Multiple_CL FSS in vm-operator Mar 11, 2024
@ridaz ridaz marked this pull request as ready for review March 11, 2024 12:53
@ridaz ridaz force-pushed the topic/ridaz/multi-cl branch 3 times, most recently from 0476dcf to cedd33b Compare March 12, 2024 08:16
@ridaz ridaz force-pushed the topic/ridaz/multi-cl branch from cedd33b to 3f36fdf Compare March 12, 2024 17:01
@ridaz ridaz force-pushed the topic/ridaz/multi-cl branch from 3f36fdf to 6cc21e0 Compare March 12, 2024 17:03
Copy link
Collaborator

@akutz akutz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, thank you @ridaz !

Copy link

Code Coverage

Package Line Rate Health
github.com/vmware-tanzu/vm-operator/api/v1alpha1 42%
github.com/vmware-tanzu/vm-operator/controllers/contentlibrary/v1alpha2/clustercontentlibraryitem 81%
github.com/vmware-tanzu/vm-operator/controllers/contentlibrary/v1alpha2/contentlibraryitem 85%
github.com/vmware-tanzu/vm-operator/controllers/contentlibrary/v1alpha2/utils 32%
github.com/vmware-tanzu/vm-operator/controllers/infra/configmap 71%
github.com/vmware-tanzu/vm-operator/controllers/infra/node 77%
github.com/vmware-tanzu/vm-operator/controllers/infra/secret 77%
github.com/vmware-tanzu/vm-operator/controllers/util/encoding 73%
github.com/vmware-tanzu/vm-operator/controllers/virtualmachine/v1alpha2 70%
github.com/vmware-tanzu/vm-operator/controllers/virtualmachineclass/v1alpha2 21%
github.com/vmware-tanzu/vm-operator/controllers/virtualmachinepublishrequest/v1alpha2 81%
github.com/vmware-tanzu/vm-operator/controllers/virtualmachineservice/v1alpha2 84%
github.com/vmware-tanzu/vm-operator/controllers/virtualmachineservice/v1alpha2/providers 89%
github.com/vmware-tanzu/vm-operator/controllers/virtualmachineservice/v1alpha2/providers/simplelb 66%
github.com/vmware-tanzu/vm-operator/controllers/virtualmachinesetresourcepolicy/v1alpha2 81%
github.com/vmware-tanzu/vm-operator/controllers/virtualmachinewebconsolerequest/v1alpha1 72%
github.com/vmware-tanzu/vm-operator/controllers/virtualmachinewebconsolerequest/v1alpha1/conditions 88%
github.com/vmware-tanzu/vm-operator/controllers/virtualmachinewebconsolerequest/v1alpha1/patch 78%
github.com/vmware-tanzu/vm-operator/controllers/virtualmachinewebconsolerequest/v1alpha2 73%
github.com/vmware-tanzu/vm-operator/controllers/volume/v1alpha2 86%
github.com/vmware-tanzu/vm-operator/pkg/conditions 88%
github.com/vmware-tanzu/vm-operator/pkg/config 100%
github.com/vmware-tanzu/vm-operator/pkg/config/env 100%
github.com/vmware-tanzu/vm-operator/pkg/patch 16%
github.com/vmware-tanzu/vm-operator/pkg/prober 54%
github.com/vmware-tanzu/vm-operator/pkg/prober/probe 90%
github.com/vmware-tanzu/vm-operator/pkg/prober/worker 77%
github.com/vmware-tanzu/vm-operator/pkg/record 78%
github.com/vmware-tanzu/vm-operator/pkg/topology 55%
github.com/vmware-tanzu/vm-operator/pkg/util 78%
github.com/vmware-tanzu/vm-operator/pkg/util/cloudinit 89%
github.com/vmware-tanzu/vm-operator/pkg/util/cloudinit/validate 91%
github.com/vmware-tanzu/vm-operator/pkg/util/kube 90%
github.com/vmware-tanzu/vm-operator/pkg/util/vsphere/client 68%
github.com/vmware-tanzu/vm-operator/pkg/util/vsphere/vm 78%
github.com/vmware-tanzu/vm-operator/pkg/vmprovider/providers/vsphere2 71%
github.com/vmware-tanzu/vm-operator/pkg/vmprovider/providers/vsphere2/client 57%
github.com/vmware-tanzu/vm-operator/pkg/vmprovider/providers/vsphere2/clustermodules 71%
github.com/vmware-tanzu/vm-operator/pkg/vmprovider/providers/vsphere2/config 72%
github.com/vmware-tanzu/vm-operator/pkg/vmprovider/providers/vsphere2/contentlibrary 72%
github.com/vmware-tanzu/vm-operator/pkg/vmprovider/providers/vsphere2/credentials 100%
github.com/vmware-tanzu/vm-operator/pkg/vmprovider/providers/vsphere2/network 78%
github.com/vmware-tanzu/vm-operator/pkg/vmprovider/providers/vsphere2/placement 77%
github.com/vmware-tanzu/vm-operator/pkg/vmprovider/providers/vsphere2/session 35%
github.com/vmware-tanzu/vm-operator/pkg/vmprovider/providers/vsphere2/sysprep 100%
github.com/vmware-tanzu/vm-operator/pkg/vmprovider/providers/vsphere2/vcenter 79%
github.com/vmware-tanzu/vm-operator/pkg/vmprovider/providers/vsphere2/virtualmachine 77%
github.com/vmware-tanzu/vm-operator/pkg/vmprovider/providers/vsphere2/vmlifecycle 61%
github.com/vmware-tanzu/vm-operator/pkg/webconsolevalidation 51%
github.com/vmware-tanzu/vm-operator/webhooks/common 100%
github.com/vmware-tanzu/vm-operator/webhooks/persistentvolumeclaim/validation 95%
github.com/vmware-tanzu/vm-operator/webhooks/virtualmachine/v1alpha2/mutation 83%
github.com/vmware-tanzu/vm-operator/webhooks/virtualmachine/v1alpha2/validation 95%
github.com/vmware-tanzu/vm-operator/webhooks/virtualmachineclass/v1alpha2/mutation 62%
github.com/vmware-tanzu/vm-operator/webhooks/virtualmachineclass/v1alpha2/validation 89%
github.com/vmware-tanzu/vm-operator/webhooks/virtualmachinepublishrequest/v1alpha2/validation 92%
github.com/vmware-tanzu/vm-operator/webhooks/virtualmachineservice/v1alpha2/mutation 67%
github.com/vmware-tanzu/vm-operator/webhooks/virtualmachineservice/v1alpha2/validation 91%
github.com/vmware-tanzu/vm-operator/webhooks/virtualmachinesetresourcepolicy/v1alpha2/validation 89%
github.com/vmware-tanzu/vm-operator/webhooks/virtualmachinewebconsolerequest/v1alpha1/validation 92%
github.com/vmware-tanzu/vm-operator/webhooks/virtualmachinewebconsolerequest/v1alpha2/validation 92%
Summary 67% (7633 / 11322)

Minimum allowed line rate is 60%

@akutz akutz merged commit a68607e into vmware-tanzu:main Mar 12, 2024
13 checks passed
@ridaz ridaz deleted the topic/ridaz/multi-cl branch June 18, 2024 08:37
akutz added a commit to akutz/vm-operator that referenced this pull request Jan 28, 2025
This patch fixes an issue where the labels on the CVMI resources
from the CCLI resources were missing. The labels were added via
vmware-tanzu#406 but were
accidentally removed via
vmware-tanzu#851.

When adding them back, there are now also tests to validate the
logic works as there were no tests in the original PR.
akutz added a commit to akutz/vm-operator that referenced this pull request Jan 28, 2025
This patch fixes an issue where the labels on the CVMI resources
from the CCLI resources were missing. The labels were added via
vmware-tanzu#406 but were
accidentally removed via
vmware-tanzu#851.

When adding them back, there are now also tests to validate the
logic works as there were no tests in the original PR.
akutz added a commit to akutz/vm-operator that referenced this pull request Jan 28, 2025
This patch fixes an issue where the labels on the CVMI resources
from the CCLI resources were missing. The labels were added via
vmware-tanzu#406 but were
accidentally removed via
vmware-tanzu#851.

When adding them back, there are now also tests to validate the
logic works as there were no tests in the original PR.
akutz added a commit to akutz/vm-operator that referenced this pull request Jan 28, 2025
This patch fixes an issue where the labels on the CVMI resources
from the CCLI resources were missing. The labels were added via
vmware-tanzu#406 but were
accidentally removed via
vmware-tanzu#851.

When adding them back, there are now also tests to validate the
logic works as there were no tests in the original PR.
akutz added a commit to akutz/vm-operator that referenced this pull request Jan 28, 2025
This patch fixes an issue where the labels on the CVMI resources
from the CCLI resources were missing. The labels were added via
vmware-tanzu#406 but were
accidentally removed via
vmware-tanzu#851.

When adding them back, there are now also tests to validate the
logic works as there were no tests in the original PR.
bryanv pushed a commit to bryanv/vm-operator that referenced this pull request Jan 29, 2025
This patch fixes an issue where the labels on the CVMI resources
from the CCLI resources were missing. The labels were added via
vmware-tanzu#406 but were
accidentally removed via
vmware-tanzu#851.

When adding them back, there are now also tests to validate the
logic works as there were no tests in the original PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-not-required size/M Denotes a PR that changes 30-99 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Introduce WCP_TKG_Multiple_CL FSS in the VM Operator
3 participants