-
Notifications
You must be signed in to change notification settings - Fork 64
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
Validate: add support for kubernetes deployment validation with src validate kube
subcommand
#926
Conversation
* Add pod validation * Add skeleton for service and connection validation
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.
👍
internal/validate/kube/kube.go
Outdated
|
||
var results []validate.Result | ||
|
||
//TODO make concurrent |
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.
Remove TODO in master branch
//TODO make concurrent |
internal/validate/kube/kube.go
Outdated
|
||
var results []validate.Result | ||
|
||
//TODO make concurrent |
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.
//TODO make concurrent |
internal/validate/kube/kube.go
Outdated
|
||
var results []validate.Result | ||
|
||
//TODO make concurrent |
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.
//TODO make concurrent |
…validate kube` subcommand (#926) * Refactor out shared vars * Add basic kube validation * Add pod validation * Add skeleton for service and connection validation * Add connection validations * Add go modules files * Fix --kubeconfig flag * Fix line output * Add usage output to cli * Fix path in example * Add quiet flag to suppress output and return exit status only * Fix exit status to be consistent if there are failures * Remove TODOs * Update CHANGELOG.md
This PR adds the
src validate kube
subcommand for validating Sourcegraph deployments on Kubernetes.Features include:
Validations can also include warnings for non-failure states that should be addressed.
Kubernetes cluster configuration is handled via standard kubeconfig file in users home directory or can be specified with
--kubeconfig
flag. Users can also specify a specific namespace via--namespace
flag.TODO:
--quiet
flag to silence command line output in CI/CD pipelinesTest plan
internal/validate/kube/kube_test.go
.