-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport: E2E test improvements (#1269)
* Update kubectl ValidateWorkerNodes arg to pass in kubeconfig (#1149) * Refactor GitOps e2e tests (#1176) * Refactor GitOps e2e test to pass in testOpts, add tests for workload cluster * Remove unused arg * Rename upgradeGitops methods * Remove unnecessary method * Generate GitOpsConfig name every time when running e2e flux test * Only generate lowercase alphanumeric string for K8s object names * Update newly added GitOps e2e test name to include "Flux" (#1193) * (#743) support passing multiple ips to cluster tests (#931) * Improvements for 'upgrades from latest release' e2e tests (#966) * Improvements for 'upgrades from latest release' e2e tests * Increas the timeout for kubeadm control plane ready in e2e tests * Increased timeout for cilium retrier * E2E tests for multiple worker node groups (#1194) Expands current e2e testing framework to support multiple worker node groups. It allows to add/remove/update worker node groups to the initial spec and during upgrades. Adds one simple vSphere tests that starts with two worker node groups. During the upgrade, it scales down one of them to 1 replica, it deletes the other one and creates a new one. * Update e2e test flow so cluster ip pool is not required (#1213) Co-authored-by: Joey Wang <jiayiwang7@yahoo.com> Co-authored-by: Greg Westerfield, Jr <gwesterf@amazon.com> Co-authored-by: Guillermo Gaston <gaslor@amazon.com> Co-authored-by: Greg Westerfield, Jr <gwesterfieldjr@gmail.com>
- Loading branch information
1 parent
db1a3fc
commit 45dec22
Showing
36 changed files
with
907 additions
and
332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,5 @@ cluster.yaml | |
eksa-test | ||
generated/ | ||
eks-anywhere-downloads* | ||
hardware-manifests/ | ||
*.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package api | ||
|
||
import ( | ||
corev1 "k8s.io/api/core/v1" | ||
|
||
anywherev1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1" | ||
) | ||
|
||
type WorkerNodeGroupFiller func(w *anywherev1.WorkerNodeGroupConfiguration) | ||
|
||
func FillWorkerNodeGroup(w *anywherev1.WorkerNodeGroupConfiguration, fillers ...WorkerNodeGroupFiller) { | ||
for _, f := range fillers { | ||
f(w) | ||
} | ||
} | ||
|
||
func WithTaint(taint corev1.Taint) WorkerNodeGroupFiller { | ||
return func(w *anywherev1.WorkerNodeGroupConfiguration) { | ||
w.Taints = append(w.Taints, taint) | ||
} | ||
} | ||
|
||
func WithLabel(key, value string) WorkerNodeGroupFiller { | ||
return func(w *anywherev1.WorkerNodeGroupConfiguration) { | ||
w.Labels[key] = value | ||
} | ||
} | ||
|
||
func WithCount(count int) WorkerNodeGroupFiller { | ||
return func(w *anywherev1.WorkerNodeGroupConfiguration) { | ||
w.Count = count | ||
} | ||
} | ||
|
||
func WithMachineGroupRef(name, kind string) WorkerNodeGroupFiller { | ||
return func(w *anywherev1.WorkerNodeGroupConfiguration) { | ||
w.MachineGroupRef = &anywherev1.Ref{ | ||
Name: name, | ||
Kind: kind, | ||
} | ||
} | ||
} |
Oops, something went wrong.