Skip to content

src validation for ebs-csi drivers and VPCs - #939

Merged
jasonhawkharris merged 27 commits into
mainfrom
jhh/kube-feature
Feb 24, 2023
Merged

src validation for ebs-csi drivers and VPCs#939
jasonhawkharris merged 27 commits into
mainfrom
jhh/kube-feature

Conversation

@jasonhawkharris

@jasonhawkharris jasonhawkharris commented Feb 16, 2023

Copy link
Copy Markdown
Contributor

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

@jdpleiness jdpleiness left a comment

Copy link
Copy Markdown
Contributor

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 🚀

Comment thread internal/validate/kube/utils.go Outdated
Comment thread internal/validate/kube/kube.go Outdated
Comment thread internal/validate/kube/kube.go Outdated
Comment thread internal/validate/kube/kube.go Outdated
Comment thread internal/validate/kube/utils.go Outdated
Comment thread internal/validate/kube/kube.go Outdated
Comment thread internal/validate/kube/utils.go Outdated
Comment thread internal/validate/kube/utils.go Outdated
Comment thread internal/validate/kube/utils.go Outdated
Comment thread internal/validate/kube/kube.go Outdated
@jasonhawkharris
jasonhawkharris marked this pull request as ready for review February 23, 2023 17:29
@jasonhawkharris
jasonhawkharris requested a review from jac February 23, 2023 17:30
Comment thread internal/validate/kube/eks.go Outdated
Comment thread internal/validate/kube/kube.go Outdated
jasonhawkharris and others added 3 commits February 24, 2023 12:20
Co-authored-by: James Cotter <35706755+jac@users.noreply.github.com>

@jac jac left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@jdpleiness jdpleiness left a comment

Copy link
Copy Markdown
Contributor

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 🚀

Comment thread internal/validate/kube/eks.go Outdated
Comment thread internal/validate/kube/kube.go Outdated
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