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

Deployment bugfixes #29

Merged
merged 11 commits into from
Feb 10, 2023
Merged

Conversation

michael-valdron
Copy link
Member

@michael-valdron michael-valdron commented Jan 25, 2023

Please specify the area for this PR

operator bugfix

What does does this PR do / why we need it:

Bugfix changes include:

Which issue(s) this PR fixes:

Fixes #?

fixes devfile/api#966, devfile/api#1014, devfile/api#1016, devfile/api#1019, devfile/api#1025

PR acceptance criteria:

  • Test Coverage
    • Are your changes sufficiently tested, and are any applicable test cases added or updated to cover your changes?
  • Gosec scans

Documentation

How to test changes / Special notes to the reviewer:

Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
@codecov
Copy link

codecov bot commented Jan 25, 2023

Codecov Report

Base: 24.28% // Head: 22.01% // Decreases project coverage by -2.28% ⚠️

Coverage data is based on head (73f7260) compared to base (07d69b2).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #29      +/-   ##
==========================================
- Coverage   24.28%   22.01%   -2.28%     
==========================================
  Files          22       22              
  Lines        1054     1163     +109     
==========================================
  Hits          256      256              
- Misses        789      898     +109     
  Partials        9        9              
Impacted Files Coverage Δ
api/v1alpha1/devfileregistry_types.go 100.00% <ø> (ø)
api/v1alpha1/zz_generated.deepcopy.go 26.22% <0.00%> (-0.60%) ⬇️
controllers/update.go 0.00% <0.00%> (ø)
pkg/registry/configmap.go 0.00% <0.00%> (ø)
pkg/registry/defaults.go 59.18% <0.00%> (-15.18%) ⬇️
pkg/registry/deployment.go 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -52,7 +52,7 @@ http:

viewerEnvfile := fmt.Sprintf(`
ANALYTICS_WRITE_KEY=%s
DEVFILE_REGISTRIES=[{\"name\":\"Community\",\"url\":\"http://localhost:8080\",\"fqdn\":\"http://%s.%s\"}]`,
DEVFILE_REGISTRIES=[{"name":"Community","url":"http://localhost:8080","fqdn":"http://%s.%s"}]`,
Copy link
Contributor

Choose a reason for hiding this comment

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

The fqdn format will not work on openshift deployments since the IngressDomain is only required for Kubernetes deployment and it can be empty. If a registry is successfully deployed it should update the URL in cr.Status.URL field so we can rely on that setting as long as it's not empty.

…ity.

Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
…yment.

Signed-off-by: Michael Valdron <mvaldron@redhat.com>
@michael-valdron michael-valdron changed the title Remove unnecessary escape characters causing registry viewer deployment failure Deployment bugfixes Jan 31, 2023
@michael-valdron
Copy link
Member Author

Blocked, needs rebasing to changes in #30 and #31.

@michael-valdron michael-valdron changed the title Deployment bugfixes [WIP]Deployment bugfixes Feb 6, 2023
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
…er using the registry operator.

Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
Signed-off-by: Michael Valdron <mvaldron@redhat.com>
@michael-valdron michael-valdron changed the title [WIP]Deployment bugfixes Deployment bugfixes Feb 9, 2023
@michael-valdron michael-valdron marked this pull request as ready for review February 9, 2023 21:07
@openshift-ci openshift-ci bot added the lgtm label Feb 9, 2023
@openshift-ci
Copy link

openshift-ci bot commented Feb 9, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: kim-tsao, michael-valdron

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

@michael-valdron michael-valdron merged commit 9de0213 into devfile:main Feb 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants