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

src validation for ebs-csi drivers and VPCs #939

Merged
merged 27 commits into from
Feb 24, 2023
Merged

Conversation

jasonhawkharris
Copy link
Contributor

@jasonhawkharris jasonhawkharris commented Feb 16, 2023

This commit adds

  • initial support for validating Sourcegraph on EKS clusters
  • validation for ebs-csi drivers on AWS EKS clusters and
  • validation for configured VPCs for AWS

Test plan

Shipped with test suite

@jasonhawkharris jasonhawkharris changed the title Src Validation for ebs-csi drivers and VPCs src validation for ebs-csi drivers and VPCs Feb 16, 2023
@jasonhawkharris jasonhawkharris marked this pull request as draft February 16, 2023 22:30
@jasonhawkharris jasonhawkharris marked this pull request as ready for review February 17, 2023 17:29
@jasonhawkharris jasonhawkharris marked this pull request as draft February 21, 2023 17:56
Copy link
Contributor

@jdpleiness jdpleiness left a comment

Choose a reason for hiding this comment

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

This looks great overall! I think it's going to be really helpful as well 🚀

internal/validate/kube/utils.go Outdated Show resolved Hide resolved
internal/validate/kube/kube.go Outdated Show resolved Hide resolved
internal/validate/kube/kube.go Outdated Show resolved Hide resolved
internal/validate/kube/kube.go Outdated Show resolved Hide resolved
internal/validate/kube/utils.go Outdated Show resolved Hide resolved
internal/validate/kube/kube.go Outdated Show resolved Hide resolved
internal/validate/kube/utils.go Outdated Show resolved Hide resolved
internal/validate/kube/utils.go Outdated Show resolved Hide resolved
internal/validate/kube/utils.go Outdated Show resolved Hide resolved
internal/validate/kube/kube.go Outdated Show resolved Hide resolved
internal/validate/kube/eks.go Outdated Show resolved Hide resolved
internal/validate/kube/kube.go Outdated Show resolved Hide resolved
jasonhawkharris and others added 3 commits February 24, 2023 12:20
Co-authored-by: James Cotter <35706755+jac@users.noreply.github.com>
Copy link
Member

@jac jac left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@jdpleiness jdpleiness left a comment

Choose a reason for hiding this comment

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

This is looking really nice! Just a few suggestions, otherwise LGTM 🚀

internal/validate/kube/eks.go Outdated Show resolved Hide resolved
internal/validate/kube/kube.go Outdated Show resolved Hide resolved
jasonhawkharris and others added 3 commits February 24, 2023 15:06
Co-authored-by: Jacob Pleiness <jdpleiness@users.noreply.github.com>
@jasonhawkharris jasonhawkharris merged commit cc0ee59 into main Feb 24, 2023
@jasonhawkharris jasonhawkharris deleted the jhh/kube-feature branch February 24, 2023 21:49
scjohns pushed a commit that referenced this pull request Apr 24, 2023
* validate ebs-csi drivers on EKS clusters

* add condition for failed config

* add validation for vpcs

* Adds tests for validate VPC

* formatting, add comment for EksVpc

* fix formatting in kube test

* add test for ebs-csi validation and refactor

* formatting

* remove commented out function signature

* checks current context when using --eks flag
- Before, validation ran regardless of whether current kubectl context
  was set to an EKS cluster or not
- Now, if --eks flag is added to the command, src checks that an EKS
  cluster is already configured

* formatting

* fix ineffectual append that linter flagged

* refactor

* formatting

* retab

* Adds more robust testing for ebs csi drivers

* remove test copies from kube_test

* formatting

* retab

* add tests and refactor

* improve naming conventions to be less confusing and more informative

* Update internal/validate/kube/kube.go

Co-authored-by: James Cotter <35706755+jac@users.noreply.github.com>

* retab

* more retabbing

* Update internal/validate/kube/eks.go

Co-authored-by: Jacob Pleiness <jdpleiness@users.noreply.github.com>

* Moved/renamed Eks() function to eks file

* formatting

---------

Co-authored-by: Jean-Hadrien Chabran <jh@chabran.fr>
Co-authored-by: James Cotter <35706755+jac@users.noreply.github.com>
Co-authored-by: Jacob Pleiness <jdpleiness@users.noreply.github.com>
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.

4 participants