-
Notifications
You must be signed in to change notification settings - Fork 61
Automatically migrate old configmap-based configuration to new CRD #626
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
Automatically migrate old configmap-based configuration to new CRD #626
Conversation
/test v8-devworkspace-operator-e2e, v8-che-happy-path |
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.
I haven't tested but you add good unit tests, we should be safe.
Well done!
return client.Delete(context.Background(), obsoleteConfigmap) | ||
} | ||
|
||
// convertConfigMapToConfigCRD converts a earlier devworkspace configuration configmap (if 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.
// convertConfigMapToConfigCRD converts a earlier devworkspace configuration configmap (if present) | |
// convertConfigMapToConfigCRD converts an earlier devworkspace configuration configmap (if present) |
ha!
🦅
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.
😂
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: amisevsk, sleshchenko The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/test v8-devworkspace-operator-e2e |
Update pkg/config/configmap, removing unused/unneeded functions and modifying existing functions to allow reading values without defaults. Signed-off-by: Angel Misevski <[email protected]>
Signed-off-by: Angel Misevski <[email protected]>
Signed-off-by: Angel Misevski <[email protected]>
37177d9
to
49c21cc
Compare
New changes are detected. LGTM label has been removed. |
/test v8-devworkspace-operator-e2e, v8-che-happy-path |
@amisevsk: The following test failed, say
Full PR test history. Your PR dashboard. 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 kubernetes/test-infra repository. I understand the commands that are listed here. |
What does this PR do?
Automatically converts configmaps from older versions of DWO to the new CRD. After migration is complete, the configmap is deleted from the cluster.
What issues does this PR fix or reference?
Unfinished followup to #598
Is it tested? How?
Tests are included with PR (with decent coverage, at least). To test directly:
PR Checklist
/test v8-devworkspace-operator-e2e, v8-che-happy-path
to trigger)v8-devworkspace-operator-e2e
: DevWorkspace e2e testv8-che-happy-path
: Happy path for verification integration with Che