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

[installer]: add namespace to validate cluster command #7801

Merged
merged 1 commit into from
Jan 26, 2022

Conversation

mrsimonemms
Copy link
Contributor

Description

Adds a namespace flag to the validate cluster command. This updates the validation checks to receive the namespace from the flag.

A new check to ensure the existence of the namespace is added. The Installer does not create the namespace for reasons discussed here

Finally, have renamed the command file validate-cluster.go to validate_cluster.go to maintain consistency in naming convention and fixed a couple of nits in checks.go

Related Issue(s)

Fixes #7497

How to test

Release Notes

[installer]: add namespace to validate cluster command

Documentation

@roboquat roboquat added release-note team: delivery Issue belongs to the self-hosted team size/M labels Jan 24, 2022
Message: "no cluster issuers configured",
Type: ValidationStatusWarning,
}}, nil
return []ValidationError{
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed nit

Message: err.Error(),
Type: ValidationStatusError,
}}, nil
return []ValidationError{
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed nit

@codecov
Copy link

codecov bot commented Jan 24, 2022

Codecov Report

Merging #7801 (9e051bf) into main (c7ef974) will decrease coverage by 20.10%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #7801       +/-   ##
===========================================
- Coverage   30.31%   10.20%   -20.11%     
===========================================
  Files         119       18      -101     
  Lines       18748     1009    -17739     
===========================================
- Hits         5683      103     -5580     
+ Misses      12556      905    -11651     
+ Partials      509        1      -508     
Flag Coverage Δ
components-blobserve-app ?
components-blobserve-lib ?
components-content-service-app ?
components-content-service-lib ?
components-gitpod-cli-app 10.20% <ø> (ø)
components-image-builder-mk3-app ?
components-local-app-app-darwin-amd64 ?
components-local-app-app-darwin-arm64 ?
components-local-app-app-linux-amd64 ?
components-local-app-app-linux-arm64 ?
components-local-app-app-windows-386 ?
components-local-app-app-windows-amd64 ?
components-local-app-app-windows-arm64 ?
components-openvsx-proxy-app ?
components-openvsx-proxy-lib ?
components-supervisor-app ?
components-ws-daemon-app ?
components-ws-daemon-lib ?
components-ws-manager-app ?
components-ws-proxy-app ?
installer-raw-app ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
components/ws-daemon/pkg/content/initializer.go
components/content-service/pkg/git/porcelain.go
components/content-service/pkg/storage/minio.go
components/ws-proxy/pkg/proxy/routes.go
installer/pkg/common/storage.go
components/openvsx-proxy/pkg/cache.go
installer/pkg/components/ws-manager/deployment.go
components/ws-manager/pkg/manager/monitor.go
...nts/content-service/pkg/initializer/initializer.go
...onents/content-service/pkg/initializer/snapshot.go
... and 91 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 c7ef974...9e051bf. Read the comment docs.

@mrsimonemms mrsimonemms force-pushed the sje/installer-validate-cluster-nsp branch from cb14b55 to 9e051bf Compare January 24, 2022 17:38
@mrsimonemms mrsimonemms requested a review from a team January 24, 2022 17:48
@mrsimonemms
Copy link
Contributor Author

/assign @corneliusludmann

Copy link
Contributor

@corneliusludmann corneliusludmann left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

Code looks code.

@roboquat roboquat added the lgtm label Jan 26, 2022
@roboquat
Copy link
Contributor

LGTM label has been added.

Git tree hash: 23c5eae892545910340f6881ff45123331d06280

@roboquat
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: corneliusludmann

Associated issue: #7497

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@roboquat roboquat merged commit 27fb8a2 into main Jan 26, 2022
@roboquat roboquat deleted the sje/installer-validate-cluster-nsp branch January 26, 2022 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved release-note size/M team: delivery Issue belongs to the self-hosted team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Installer]: validate cluster should accept a namespace
3 participants