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

Remove consolelink object when CheCluster is removed #708

Merged
merged 15 commits into from
Mar 22, 2021
Merged

Conversation

@openshift-ci-robot
Copy link

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@tolusha tolusha mentioned this pull request Mar 9, 2021
70 tasks
@codecov
Copy link

codecov bot commented Mar 9, 2021

Codecov Report

Merging #708 (edf9888) into master (ddcabcb) will increase coverage by 1.10%.
The diff coverage is 61.60%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #708      +/-   ##
==========================================
+ Coverage   33.11%   34.22%   +1.10%     
==========================================
  Files          50       52       +2     
  Lines        5499     5537      +38     
==========================================
+ Hits         1821     1895      +74     
+ Misses       3407     3366      -41     
- Partials      271      276       +5     
Impacted Files Coverage Δ
pkg/deploy/identity-provider/identity_provider.go 14.78% <0.00%> (+0.40%) ⬆️
pkg/deploy/kubernetes_image_puller.go 0.00% <0.00%> (ø)
pkg/controller/che/che_controller.go 20.14% <25.00%> (+0.84%) ⬆️
pkg/util/util.go 11.76% <33.33%> (+1.45%) ⬆️
...g/controller/che/workspace_namespace_permission.go 68.00% <50.00%> (ø)
pkg/deploy/finalizer.go 61.11% <61.11%> (ø)
pkg/deploy/consolelink.go 72.72% <72.72%> (ø)
pkg/deploy/sync.go 60.86% <76.92%> (+14.61%) ⬆️
...kg/controller/che/cluster_permissions_finalizer.go 42.10% <85.71%> (+0.43%) ⬆️
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ddcabcb...edf9888. Read the comment docs.

@tolusha
Copy link
Contributor Author

tolusha commented Mar 12, 2021

/retest

@openshift-merge-robot
Copy link

@tolusha: The following tests failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/v7-che-operator-single-host-nightly-deployment 11c149c link /test v7-che-operator-single-host-nightly-deployment
ci/prow/v7-che-operator-olm-nightly-deployment 11c149c link /test v7-che-operator-olm-nightly-deployment
ci/prow/v7-che-operator-proxy-deployment 11c149c link /test v7-che-operator-proxy-deployment
ci/prow/v6-che-operator-olm-nightly-deployment 11c149c link /test v6-che-operator-olm-nightly-deployment
ci/prow/v6-che-operator-single-host-nightly-deployment 11c149c link /test v6-che-operator-single-host-nightly-deployment

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.

@codecov-io
Copy link

Codecov Report

Merging #708 (578d0d6) into master (ddcabcb) will increase coverage by 2.42%.
The diff coverage is 62.40%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #708      +/-   ##
==========================================
+ Coverage   33.11%   35.54%   +2.42%     
==========================================
  Files          50       52       +2     
  Lines        5499     5517      +18     
==========================================
+ Hits         1821     1961     +140     
+ Misses       3407     3276     -131     
- Partials      271      280       +9     
Impacted Files Coverage Δ
pkg/deploy/identity-provider/identity_provider.go 14.78% <0.00%> (+0.40%) ⬆️
pkg/deploy/kubernetes_image_puller.go 0.00% <0.00%> (ø)
pkg/controller/che/che_controller.go 20.14% <25.00%> (+0.84%) ⬆️
pkg/util/util.go 11.76% <33.33%> (+1.45%) ⬆️
...g/controller/che/workspace_namespace_permission.go 64.00% <40.00%> (-4.00%) ⬇️
pkg/deploy/finalizer.go 60.86% <60.86%> (ø)
...kg/controller/che/cluster_permissions_finalizer.go 52.17% <66.66%> (+10.50%) ⬆️
pkg/deploy/sync.go 62.90% <67.36%> (+16.65%) ⬆️
pkg/deploy/consolelink.go 72.34% <72.34%> (ø)
pkg/deploy/clusterrole.go 100.00% <100.00%> (+100.00%) ⬆️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ddcabcb...6e3aaf4. Read the comment docs.

func Update(deployContext *DeployContext, actual runtime.Object, blueprint metav1.Object, diffOpts cmp.Option) (bool, error) {
client := getClientForObject(blueprint, deployContext)
actualMeta := actual.(metav1.Object)
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we check object casting here?

@@ -137,7 +136,7 @@ func add(mgr manager.Manager, r reconcile.Reconciler) error {
if err := corev1.AddToScheme(mgr.GetScheme()); err != nil {
logrus.Errorf("Failed to add OpenShift Core to scheme: %s", err)
}
if hasConsolelinkObject() {
if util.HasAPIResourceName("consolelinks") {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe console links should be const?

@tolusha
Copy link
Contributor Author

tolusha commented Mar 18, 2021

/retest

@tolusha
Copy link
Contributor Author

tolusha commented Mar 18, 2021

/test v7-single-host-nightly-deployment

@flacatus
Copy link
Contributor

/retest

@eclipse-che eclipse-che deleted a comment from openshift-ci bot Mar 18, 2021
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: AndrienkoAleksandr, flacatus, tolusha

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@openshift-ci-robot
Copy link

New changes are detected. LGTM label has been removed.

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@tolusha tolusha merged commit adfdb45 into master Mar 22, 2021
@tolusha tolusha deleted the consolelinks branch March 22, 2021 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants