Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ KARPENTER_CORE_DIR = $(shell go list -m -f '{{ .Dir }}' sigs.k8s.io/karpenter)
# TEST_SUITE enables you to select a specific test suite directory to run "make e2etests" or "make test" against
TEST_SUITE ?= "..."
TEST_TIMEOUT ?= "3h"
# LABEL_FILTER enables filtering tests by Ginkgo labels (e.g., LABEL_FILTER="runner" or LABEL_FILTER="!runner")
LABEL_FILTER ?=

help: ## Display help
@awk 'BEGIN {FS = ":.*##"; printf "Usage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
Expand Down Expand Up @@ -58,6 +60,7 @@ e2etests: ## Run the e2e suite against your local cluster
-v \
./suites/$(shell echo $(TEST_SUITE) | tr A-Z a-z)/... \
--ginkgo.focus="${FOCUS}" \
$(if $(LABEL_FILTER),--ginkgo.label-filter="${LABEL_FILTER}",) \
--ginkgo.timeout=${TEST_TIMEOUT} \
--ginkgo.grace-period=3m \
--ginkgo.vv
Expand Down
2 changes: 1 addition & 1 deletion test/suites/acr/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ var _ = AfterEach(func() { env.AfterEach() })

var _ = Describe("Acr", func() {
Describe("Image Pull", func() {
It("should allow karpenter user pool nodes to pull images from the clusters attached acr", func() {
It("should allow karpenter user pool nodes to pull images from the clusters attached acr", Label("runner"), func() {
deployment := test.Deployment(test.DeploymentOptions{
Replicas: 1,
PodOptions: test.PodOptions{
Expand Down
4 changes: 2 additions & 2 deletions test/suites/byok/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ var _ = Describe("BYOK", func() {
BeforeEach(func() {

})
It("should provision a VM with customer-managed key disk encryption", func() {
It("should provision a VM with customer-managed key disk encryption", Label("runner"), func() {
ctx := context.Background()
var diskEncryptionSetID string

Expand Down Expand Up @@ -105,7 +105,7 @@ var _ = Describe("BYOK", func() {
}
})

It("should provision a VM with ephemeral OS disk and customer-managed key disk encryption", func() {
It("should provision a VM with ephemeral OS disk and customer-managed key disk encryption", Label("runner"), func() {
ctx := context.Background()
var diskEncryptionSetID string

Expand Down
4 changes: 2 additions & 2 deletions test/suites/integration/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import (

// This test requires the Azure Disk CSI driver to be installed
var _ = Describe("Dynamic PVC", func() {
It("should run a pod with a dynamic persistent volume", func() {
It("should run a pod with a dynamic persistent volume", Label("runner"), func() {
// Ensure that the Azure Disk driver is installed, or we can't run the test.
var ds appsv1.DaemonSet
if err := env.Client.Get(env.Context, client.ObjectKey{
Expand Down Expand Up @@ -79,7 +79,7 @@ var _ = Describe("Dynamic PVC", func() {
})

var _ = Describe("Static PVC", func() {
It("should run a pod with a static persistent volume using Azure File", func() {
It("should run a pod with a static persistent volume using Azure File", Label("runner"), func() {
storageClassName := lo.ToPtr("azurefile-test")
bindMode := storagev1.VolumeBindingImmediate
sc := test.StorageClass(test.StorageClassOptions{
Expand Down
2 changes: 1 addition & 1 deletion test/suites/utilization/fips_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
"github.com/Azure/karpenter-provider-azure/pkg/utils/nodeclaim"
)

var _ = Describe("FIPS", func() {
var _ = Describe("FIPS", Label("runner"), func() {
Context("FIPS Validation", func() {
It("should reject FIPS without SIG access", func() {
if !env.InClusterController {
Expand Down