-
Notifications
You must be signed in to change notification settings - Fork 9
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
Move VM CRD to VM Runtime Object #167
Conversation
serviceConfigs := accCfg.GetServiceConfigs() | ||
for _, serviceConfig := range serviceConfigs { | ||
if serviceConfig.getType() == CloudServiceTypeCompute { | ||
resourceCRDs := serviceConfig.getResourceCRDs(namespace, accCfg.GetNamespacedName().String()) | ||
computeCRDs = append(computeCRDs, resourceCRDs.virtualMachines...) | ||
for _, vm := range resourceCRDs.virtualMachines { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can create map inside getResourceCRDs itself.. Line 169 can be avoided.. @archanapholla can you make the change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes done.
df93005
to
1570022
Compare
17030af
to
6ac2bfa
Compare
namespace, _ := request.NamespaceFrom(ctx) | ||
if namespace == "" { | ||
objs = r.cloudInventory.GetAllVms() | ||
} else if accountName != "" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with new change, it should be cpa-name + cpa-namespace.. both label should be specified..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
r.pendingSyncCount-- | ||
if r.pendingSyncCount == 0 { | ||
GetControllerSyncStatusInstance().SetControllerSyncStatus(ControllerTypeVM) | ||
// processEvent waits for any VM events and feeds the event to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets put 80 max character line for any comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will make this as a standard going forward.
@@ -184,8 +184,11 @@ var _ = Describe(fmt.Sprintf("%s,%s: ExternalEntity", focusAws, focusAzure), fun | |||
} | |||
table.DescribeTable("Test ExternalEntity Life cycle", | |||
func(kind string, hasNic, hasPort bool) { | |||
// TODO: VM CRD is no longer present |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@shenmo3 can you update the test similar to stale member test. Upon Ces and check if VM/EE is removed
bf330f8
to
9131411
Compare
Depcreate VM CRD and move it to internal VM Runtime Object. Signed-off-by: Rahul Jain <[email protected]>
- Also sort imports - Update logging for the controller_sync_status.go - Fix lint errors Signed-off-by: Anand Kumar <[email protected]>
Signed-off-by: Alexander Liu <[email protected]>
- Also remove unwanted labels from VM object. - Add and update existing VMIndexers to use labels and new fields added in the vm status object. - Also update vpc label to use account namespaced name instead of using only the account name. Signed-off-by: Anand Kumar <[email protected]>
Signed-off-by: Alexander Liu <[email protected]>
- Elimimate CloudServiceResourceCRDs while fetching VirtualMachine objects from snapshot. - Add counters for add/update/delete in vm inventory. - Renamed functions/variables using the word vm CRD. - Eliminate member by member comparison for comparing vm objects from inventory with new objects created using cloud vm instances. Signed-off-by: Archana Holla <[email protected]>
vpc labels: cpa.name cpa.namespace vpc.name vm labels: cpa.name cpa.namespace region Also update rest implmentation to list objects based on label selector for vm and vpc. - Also remove vpc name from vm status field. - rename some vm status feilds - Also update vm inventory to use namespaced account name indexer Signed-off-by: Anand Kumar <[email protected]>
- Remove virtual machine crd form helm charts - Remove virtual machine crd from config Signed-off-by: Anand Kumar <[email protected]>
/nephe-test-e2e-kind |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/LGTM
/nephe-test-e2e-aks, /nephe-test-e2e-eks |
/nephe-test-e2e-azure |
Depcreate VM CRD and move it to internal VM Runtime Object.