Skip to content

Commit

Permalink
test: add minimal init container e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jmdeal committed Feb 1, 2024
1 parent da8b577 commit a529c3e
Show file tree
Hide file tree
Showing 2 changed files with 487 additions and 316 deletions.
8 changes: 8 additions & 0 deletions test/pkg/environment/aws/expectations.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,14 @@ func (env *Environment) GetK8sVersion(offset int) string {
return fmt.Sprintf("%s.%d", serverVersion.Major, minorVersion-offset)
}

func (env *Environment) GetK8sMinorVersion(offset int) (int, error) {
version, err := strconv.Atoi(strings.Split(env.GetK8sVersion(offset), ".")[1])
if err != nil {
return 0, err
}
return version, nil
}

func (env *Environment) GetCustomAMI(amiPath string, versionOffset int) string {
version := env.GetK8sVersion(versionOffset)
parameter, err := env.SSMAPI.GetParameter(&ssm.GetParameterInput{
Expand Down
Loading

0 comments on commit a529c3e

Please sign in to comment.