repo_name stringlengths 1 52 | repo_creator stringclasses 6
values | programming_language stringclasses 4
values | code stringlengths 0 9.68M | num_lines int64 1 234k |
|---|---|---|---|---|
eks-anywhere | aws | Go | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless req... | 108 |
eks-anywhere | aws | Go | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless req... | 105 |
eks-anywhere | aws | Go | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless req... | 72 |
eks-anywhere | aws | Go | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless req... | 32 |
eks-anywhere | aws | Go | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless req... | 77 |
eks-anywhere | aws | Go | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless req... | 46 |
eks-anywhere | aws | Go | // Copyright Amazon.com Inc. or its affiliates. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless req... | 141 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"github.com/aws/eks-anywhere/pkg/kubeconfig"
"github.com/aws/eks-anywhere/test/framework"
)
const (
adotTargetNamespace = "observability"
adotPackageName = "adot"
adotPackagePrefix = "generated"
)
func runCuratedPackagesAdotInstall(test *framework.Cluster... | 56 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"context"
"fmt"
"io"
"net/http"
"os"
"regexp"
"github.com/aws/eks-anywhere/test/framework"
)
const (
bottlerocketOSFileName = "bottlerocket.img.gz"
airgapUsername = "airgap"
bundleReleasePathFromArtifacts = "./eks-anywhere-downloads... | 196 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"context"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/test/framework"
)
func runAutoImportFlow(test *framework.ClusterE2ETest, provider *framework.VSphere) {
test.GenerateClusterConfig()
test.CreateCluster()
templates := getMach... | 42 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"github.com/aws/eks-anywhere/test/framework"
)
func runAutoscalerWithMetricsServerSimpleFlow(test *framework.ClusterE2ETest) {
test.WithCluster(func(e *framework.ClusterE2ETest) {
autoscalerName := "cluster-autoscaler"
metricServerName := "metrics-server"
tar... | 19 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/test/framework"
)
func runAWSIamAuthFlow(test *framework.ClusterE2ETest) {
test.GenerateClusterConfig()
test.CreateCluster()
test.ValidateAWSIamAuth()
test.StopIfFailed()
test.DeleteCl... | 40 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"fmt"
"path/filepath"
"time"
"github.com/aws/eks-anywhere/pkg/kubeconfig"
"github.com/aws/eks-anywhere/pkg/types"
"github.com/aws/eks-anywhere/test/framework"
)
const (
cmPackageName = "cert-manager"
)
func runCertManagerRemoteClusterInstallSimpleFlow(test *... | 45 |
eks-anywhere | aws | Go | //go:build e2e && (cloudstack || all_providers)
// +build e2e
// +build cloudstack all_providers
package e2e
import (
"testing"
corev1 "k8s.io/api/core/v1"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
anywherev1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"g... | 2,198 |
eks-anywhere | aws | Go | //go:build e2e
package e2e
import (
"fmt"
"testing"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/test/framework"
corev1 "k8s.io/api/core/v1"
)
type cloudStackAPIUpgradeTestStep struct {
name string
configFiller api.Cluster... | 213 |
eks-anywhere | aws | Go | //go:build conformance_e2e
// +build conformance_e2e
package e2e
import (
"testing"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/test/framework"
)
func runConformanceFlow(test *framework.ClusterE2ETest) {
test.GenerateClusterConfig()... | 326 |
eks-anywhere | aws | Go | // nolint
package e2e
import (
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/test/framework"
)
const (
EksaPackageControllerHelmChartName = "eks-anywhere-packages"
EksaPackagesSourceRegistry = "public.ecr.aws/l0g8r8j6"
EksaPackageControllerHelmURI = "oci://" + EksaPack... | 52 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"context"
"fmt"
"path/filepath"
"strconv"
"strings"
"testing"
"time"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/kubeconfig"
"github.com/aws/eks-anywhere/pkg/types"
"github... | 252 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
| 5 |
eks-anywhere | aws | Go | //go:build e2e && (docker || all_providers)
// +build e2e
// +build docker all_providers
package e2e
import (
"context"
"testing"
"time"
corev1 "k8s.io/api/core/v1"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/constants"
"gith... | 1,323 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"github.com/aws/eks-anywhere/test/framework"
)
func runDownloadArtifactsFlow(test *framework.ClusterE2ETest) {
test.GenerateClusterConfig()
test.DownloadArtifacts()
}
| 14 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"time"
"github.com/aws/eks-anywhere/pkg/constants"
"github.com/aws/eks-anywhere/pkg/kubeconfig"
"github.com/aws/eks-anywhere/test/framework"
)
const (
emissaryPackageName = "emissary"
emissaryPackagePrefix = "test"
)
func runCuratedPackageEmissaryInstall(te... | 60 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/test/framework"
)
func runFluxFlow(test *framework.ClusterE2ETest) {
test.GenerateClusterConfig()
test.CreateCluster()
test.ValidateFlux()
test.StopIfFailed()
test.DeleteCluster()
}
f... | 28 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"github.com/aws/eks-anywhere/pkg/kubeconfig"
"github.com/aws/eks-anywhere/test/framework"
)
func runCuratedPackageHarborInstallSimpleFlowLocalStorageProvisioner(test *framework.ClusterE2ETest) {
test.WithCluster(func(test *framework.ClusterE2ETest) {
test.Instal... | 31 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/test/framework"
)
func runNTPFlow(test *framework.ClusterE2ETest, osFamily v1alpha1.OSFamily) {
test.GenerateClusterConfig()
test.CreateCluster()
test.ValidateNTPConfig(osFamily)
test.D... | 24 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/test/framework"
)
func runLabelsUpgradeFlow(test *framework.ClusterE2ETest, updateVersion v1alpha1.KubernetesVersion, clusterOpts ...framework.ClusterE2ETestOpt) {
test.GenerateClusterConf... | 23 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"context"
"encoding/json"
"fmt"
"os"
"strconv"
"strings"
"testing"
"time"
"github.com/stretchr/testify/suite"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/clients/kubernete... | 374 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"time"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
releasev1 "github.com/aws/eks-anywhere/release/api/v1alpha1"
"github.com/aws/eks-anywhere/test/framework"
)
func runWorkloadClusterFlow(test *framework.Multiclu... | 166 |
eks-anywhere | aws | Go | //go:build e2e && (nutanix || all_providers)
// +build e2e
// +build nutanix all_providers
package e2e
import (
"testing"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/test/framework"
)
// Curated packages
func TestNutanixKubernetes127... | 999 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/test/framework"
)
func runOIDCFlow(test *framework.ClusterE2ETest) {
test.GenerateClusterConfig()
test.CreateCluster()
test.ValidateOIDC()
test.StopIfFailed()
test.DeleteCluster()
}
f... | 40 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"github.com/aws/eks-anywhere/pkg/kubeconfig"
"github.com/aws/eks-anywhere/test/framework"
)
const (
prometheusPackageName = "prometheus"
prometheusPackagePrefix = "generated"
prometheusPackageTargetNamespace = "observability"
)
func runCurat... | 70 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"github.com/aws/eks-anywhere/test/framework"
)
func runProxyConfigFlow(test *framework.ClusterE2ETest) {
test.GenerateClusterConfig()
test.CreateCluster()
test.DeleteCluster()
}
| 15 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"github.com/aws/eks-anywhere/test/framework"
)
func runRegistryMirrorConfigFlow(test *framework.ClusterE2ETest) {
test.GenerateClusterConfig()
test.DownloadArtifacts()
test.ExtractDownloadedArtifacts()
test.DownloadImages()
test.ImportImages()
test.CreateClust... | 34 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"fmt"
"os"
"testing"
"time"
"github.com/aws/eks-anywhere/internal/pkg/api"
anywherev1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/clusterapi"
"github.com/aws/eks-anywhere/pkg/types"
"github.com/aws/eks-anywhere/test/framew... | 253 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"github.com/aws/eks-anywhere/test/framework"
)
func runSimpleFlow(test *framework.ClusterE2ETest) {
test.GenerateClusterConfig()
test.CreateCluster()
test.DeleteCluster()
}
func runTinkerbellSimpleFlow(test *framework.ClusterE2ETest) {
test.GenerateClusterConfi... | 24 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"github.com/aws/eks-anywhere/test/framework"
)
func runTinkerbellSingleNodeFlow(test *framework.ClusterE2ETest) {
test.GenerateClusterConfig()
test.GenerateHardwareConfig()
test.PowerOffHardware()
test.CreateCluster(framework.WithControlPlaneWaitTimeout("20m"))
... | 20 |
eks-anywhere | aws | Go | //go:build e2e && (snow || all_providers)
// +build e2e
// +build snow all_providers
package e2e
import (
"testing"
corev1 "k8s.io/api/core/v1"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/test/framework"
)
// AWS IAM Auth
func Test... | 409 |
eks-anywhere | aws | Go | //go:build e2e
package e2e
import (
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/test/framework"
)
// runSnowUpgradeTest creates a Snow cluster using a base configuration (multiple workers, labels, taints, etc.) plus the provided changes,
// upgrades it to the given changes and delet... | 79 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"github.com/aws/eks-anywhere/test/framework"
)
func runStackedEtcdFlow(test *framework.ClusterE2ETest) {
test.GenerateClusterConfig()
test.CreateCluster()
test.DeleteCluster()
}
| 15 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/test/framework"
)
func runTaintsUpgradeFlow(test *framework.ClusterE2ETest, updateVersion v1alpha1.KubernetesVersion, clusterOpts ...framework.ClusterE2ETestOpt) {
test.GenerateClusterConf... | 23 |
eks-anywhere | aws | Go | //go:build e2e && (tinkerbell || all_providers)
// +build e2e
// +build tinkerbell all_providers
package e2e
import (
"testing"
corev1 "k8s.io/api/core/v1"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/constants"
"github.com/aws/... | 1,935 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/test/framework"
)
func runSimpleUpgradeFlow(test *framework.ClusterE2ETest, updateVersion v1alpha1.KubernetesVersion, clusterOpts ...framewor... | 97 |
eks-anywhere | aws | Go | //go:build e2e
// +build e2e
package e2e
import (
"testing"
"github.com/aws/eks-anywhere/internal/pkg/api"
anywherev1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/semver"
releasev1 "github.com/aws/eks-anywhere/release/api/v1alpha1"
"github.com/aws/eks-anywhere/test/framework"... | 168 |
eks-anywhere | aws | Go | //go:build e2e && (vsphere || all_providers)
// +build e2e
// +build vsphere all_providers
package e2e
import (
"os"
"testing"
corev1 "k8s.io/api/core/v1"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/constants"
"github.com/aws/... | 3,052 |
eks-anywhere | aws | Go | package main
import (
"os"
"github.com/aws/eks-anywhere-test-tool/cmd"
)
func main() {
if cmd.Execute() == nil {
os.Exit(0)
}
os.Exit(-1)
}
| 15 |
eks-anywhere | aws | Go | package cmd
import (
"github.com/spf13/cobra"
)
var e2eCmd = &cobra.Command{
Use: "e2e",
Short: "e2e test interaction",
Long: "Interact with and debug end-to-end tests",
}
func init() {
rootCmd.AddCommand(e2eCmd)
}
| 16 |
eks-anywhere | aws | Go | package cmd
import (
"fmt"
"log"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
type e2eFetchOptions struct {
forBuildId string
forProject string
tests []string
logTo string
fetchAll bool
}
var e2eFetchCommand = &cobra.Command{
Use: "fetch",
Short: "e2e fetch command",
Long: "This co... | 36 |
eks-anywhere | aws | Go | package cmd
import (
"fmt"
"log"
"os"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/aws/eks-anywhere-test-tool/pkg/artifacts"
"github.com/aws/eks-anywhere-test-tool/pkg/awsprofiles"
"github.com/aws/eks-anywhere-test-tool/pkg/cloudwatch"
"github.com/aws/eks-anywhere-test-tool/pkg/codebuild"
... | 87 |
eks-anywhere | aws | Go | package cmd
import (
"fmt"
"log"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/aws/eks-anywhere-test-tool/pkg/awsprofiles"
"github.com/aws/eks-anywhere-test-tool/pkg/cloudwatch"
"github.com/aws/eks-anywhere-test-tool/pkg/codebuild"
"github.com/aws/eks-anywhere-test-tool/pkg/logfetcher"
)
con... | 75 |
eks-anywhere | aws | Go | package cmd
import (
"fmt"
"log"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/aws/eks-anywhere-test-tool/pkg/awsprofiles"
"github.com/aws/eks-anywhere-test-tool/pkg/cloudwatch"
"github.com/aws/eks-anywhere-test-tool/pkg/codebuild"
"github.com/aws/eks-anywhere-test-tool/pkg/providerproxy"
)
... | 75 |
eks-anywhere | aws | Go | package cmd
import (
"fmt"
"log"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/aws/eks-anywhere/pkg/logger"
)
var rootCmd = &cobra.Command{
Use: "eks-a-test-tool",
Short: "Amazon EKS Anywhere Test Tooling",
Long: `Use eks-a-test-tool to evaluate EKS-A test... | 46 |
eks-anywhere | aws | Go | package artifacts
import (
"context"
"fmt"
"math/rand"
"os"
"strings"
"time"
cb "github.com/aws/aws-sdk-go/service/codebuild"
"golang.org/x/sync/errgroup"
"github.com/aws/eks-anywhere-test-tool/pkg/cloudwatch"
"github.com/aws/eks-anywhere-test-tool/pkg/codebuild"
"github.com/aws/eks-anywhere-test-tool/pkg... | 205 |
eks-anywhere | aws | Go | package awsprofiles
type EksAccount int64
const (
BuildAccount EksAccount = iota
TestAccount
)
func (s EksAccount) ProfileName() string {
switch s {
case BuildAccount:
return "eks-a-build-account"
case TestAccount:
return "eks-a-test-account"
}
return "unknown"
}
| 19 |
eks-anywhere | aws | Go | package cloudwatch
import (
"fmt"
"os"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/awserr"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/cloudwatchlogs"
"github.com/aws/eks-anywhere-test-tool/pkg/awsprofiles"
"github.com/aws/eks-anywhere-test-tool/pkg/constants... | 100 |
eks-anywhere | aws | Go | package codebuild
import (
"errors"
"fmt"
"os"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/codebuild"
"github.com/aws/eks-anywhere-test-tool/pkg/awsprofiles"
"github.com/aws/eks-anywhere-test-tool/pkg/constants"
"github.com/aws/eks-anywhere/pkg/... | 90 |
eks-anywhere | aws | Go | package constants
const (
AwsAccountRegion = "us-west-2"
BuildDescriptionFile = "codebuild-description.json"
EksATestCodebuildProject = "aws-eks-anywhere-test"
E2eIndividualTestLogGroup = "/eks-anywhere/test/e2e"
E2eArtifactsBucketEnvVar = "E2E_ARTIFACTS_BUCKET"
FailedMessage = "An e2... | 16 |
eks-anywhere | aws | Go | package fileutils
import (
"strings"
"time"
)
func GenOutputDirName(suffix string) string {
now := time.Now().Format(time.RFC3339)
// Replace : characters with _ for easier double-click selection in a
// terminal.
prefix := strings.ReplaceAll(now, ":", "_")
return prefix + "-" + suffix
}
| 15 |
eks-anywhere | aws | Go | package filewriter
import "os"
type FileWriter interface {
Write(fileName string, content []byte, f ...FileOptionsFunc) (path string, err error)
WithDir(dir string) (FileWriter, error)
WriteTestArtifactsS3ToFile(key string, data []byte) error
CleanUp()
CleanUpTemp()
Dir() string
}
type FileOptions struct {
Is... | 20 |
eks-anywhere | aws | Go | package filewriter
import (
"os"
)
const DefaultTmpFolder = "generated"
func defaultFileOptions() *FileOptions {
return &FileOptions{true, os.ModePerm}
}
func Permission0600(op *FileOptions) {
op.Permissions = 0o600
}
func PersistentFile(op *FileOptions) {
op.IsTemp = false
}
| 20 |
eks-anywhere | aws | Go | package filewriter
import (
"errors"
"fmt"
"os"
"path"
"path/filepath"
"strings"
"github.com/aws/eks-anywhere/pkg/logger"
)
type writer struct {
dir string
}
func NewWriter(dir string) FileWriter {
return &writer{dir: dir}
}
func (t *writer) Write(fileName string, content []byte, f ...FileOptionsFunc) (st... | 98 |
eks-anywhere | aws | Go | package logfetcher
import (
"bytes"
"fmt"
"github.com/aws/aws-sdk-go/service/cloudwatchlogs"
awscodebuild "github.com/aws/aws-sdk-go/service/codebuild"
"github.com/aws/eks-anywhere-test-tool/pkg/cloudwatch"
"github.com/aws/eks-anywhere-test-tool/pkg/codebuild"
"github.com/aws/eks-anywhere-test-tool/pkg/consta... | 214 |
eks-anywhere | aws | Go | package logfetcher
import (
"fmt"
"regexp"
"strings"
"github.com/aws/aws-sdk-go/service/cloudwatchlogs"
"github.com/aws/eks-anywhere/pkg/logger"
)
const (
Reset = "\033[0m"
Black = "\033[30m"
Red = "\033[31m"
Green = "\033[32m"
Yellow = "\033[33m"
Blue = "\033[34m"
Purple = "\033[35m"
Cyan = ... | 111 |
eks-anywhere | aws | Go | package logfetcher
import (
"bytes"
"fmt"
"github.com/aws/aws-sdk-go/service/cloudwatchlogs"
awscodebuild "github.com/aws/aws-sdk-go/service/codebuild"
"github.com/aws/eks-anywhere-test-tool/pkg/constants"
"github.com/aws/eks-anywhere-test-tool/pkg/filewriter"
)
type testsWriter struct {
filewriter.FileWrite... | 55 |
eks-anywhere | aws | Go | package providerproxy
import (
"fmt"
"github.com/aws/aws-sdk-go/service/cloudwatchlogs"
"github.com/aws/eks-anywhere-test-tool/pkg/cloudwatch"
"github.com/aws/eks-anywhere-test-tool/pkg/codebuild"
"github.com/aws/eks-anywhere-test-tool/pkg/constants"
"github.com/aws/eks-anywhere-test-tool/pkg/fileutils"
"gith... | 154 |
eks-anywhere | aws | Go | package providerproxy
import (
"bytes"
"github.com/aws/aws-sdk-go/service/cloudwatchlogs"
"github.com/aws/eks-anywhere-test-tool/pkg/filewriter"
)
type requestWriter struct {
filewriter.FileWriter
}
func newRequestWriter(folderPath string) (*requestWriter, error) {
writer := filewriter.NewWriter(folderPath)
... | 32 |
eks-anywhere | aws | Go | package providerproxy
import (
"strings"
"github.com/aws/aws-sdk-go/service/cloudwatchlogs"
)
func VsphereSessionsFilter(logs []*cloudwatchlogs.OutputLogEvent) (outputLogs []*cloudwatchlogs.OutputLogEvent, err error) {
vsphereSoapSessionType := "SessionManager"
var sessionLogs []*cloudwatchlogs.OutputLogEvent
f... | 19 |
eks-anywhere | aws | Go | package s3
import (
"bytes"
"fmt"
"math/rand"
"os"
"strings"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/s3"
"github.com/aws/eks-anywhere-test-tool/pkg/awsprofiles"
"github.com/aws/eks-anywhere-test-tool/pkg/constants"
"github.com/aws/... | 119 |
eks-anywhere | aws | Go | package testresults
import (
"bytes"
"encoding/json"
"strings"
"github.com/aws/aws-sdk-go/service/cloudwatchlogs"
"github.com/aws/eks-anywhere-test-tool/pkg/constants"
"github.com/aws/eks-anywhere/pkg/logger"
"github.com/aws/eks-anywhere/pkg/types"
)
type TestFilter func(logs []*cloudwatchlogs.OutputLogEvent... | 91 |
eks-anywhere | aws | Go | package framework
import (
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/pkg/cluster"
)
var incompatiblePathsForVersion = map[string][]string{
"v0.6.1": {
"spec.clusterNetwork.dns",
"spec.workerNodeGroupConfigurations[].name",
},
}
func cleanUpClusterForVersion(config *cluster.C... | 18 |
eks-anywhere | aws | Go | package framework
import (
"context"
"fmt"
"os"
"path/filepath"
"strings"
eksdv1alpha1 "github.com/aws/eks-distro-build-tooling/release/api/v1alpha1"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/internal/pkg/awsiam"
anywherev1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"g... | 154 |
eks-anywhere | aws | Go | package framework
import (
"context"
"errors"
"os"
"os/exec"
"time"
"sigs.k8s.io/controller-runtime/pkg/client"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/networking/cilium"
"github.com/aws/eks-anywhere/pkg/retrier"
"github.com/aws/eks-anywhere/pkg/utils/ptr"
)
// With... | 128 |
eks-anywhere | aws | Go | package framework
import (
"context"
"fmt"
"os"
"path/filepath"
"strings"
"testing"
"time"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/internal/test/cleanup"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
anywherev1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com... | 415 |
eks-anywhere | aws | Go | package framework
import (
"bufio"
"bytes"
"context"
"crypto/sha1"
_ "embed"
"encoding/json"
"fmt"
"io"
"net"
"os"
"os/exec"
"path/filepath"
"strconv"
"strings"
"sync"
"testing"
"time"
rapi "github.com/tinkerbell/rufio/api/v1alpha1"
rctrl "github.com/tinkerbell/rufio/controllers"
corev1 "k8s.io/ap... | 2,225 |
eks-anywhere | aws | Go | package framework
import (
"context"
"fmt"
"time"
machinerytypes "k8s.io/apimachinery/pkg/types"
"sigs.k8s.io/controller-runtime/pkg/client"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/clients/kubernetes"
"github.com/aws/eks-anywhere/pkg/cluster"
"github.com/aws/eks-anywh... | 101 |
eks-anywhere | aws | Go | package framework
import (
"os"
"path/filepath"
"strings"
releasev1alpha1 "github.com/aws/eks-anywhere/release/api/v1alpha1"
)
type CommandOpt func(*string, *[]string) (err error)
func appendOpt(new ...string) CommandOpt {
return func(binaryPath *string, args *[]string) (err error) {
*args = append(*args, ne... | 134 |
eks-anywhere | aws | Go | package framework
import (
"context"
"fmt"
"strings"
"github.com/aws/eks-anywhere/internal/pkg/conformance"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/manifests"
"github.com/aws/eks-anywhere/pkg/manifests/bundles"
"github.com/aws/eks-anywhere/pkg/version"
)
const kubeConf... | 85 |
eks-anywhere | aws | Go | package framework
import (
"context"
corev1 "k8s.io/api/core/v1"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
)
// ControlPlaneNodeValidation should return an error if either an error is encountered during execution or the validation logically fails.
// This validation function will be executed by ValidateCont... | 37 |
eks-anywhere | aws | Go | package framework
import (
"os"
"testing"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
)
type PackageConfig struct {
*HelmInstallConfig
bundleURI string
packageConfiguration *v1alpha1.PackageConfiguration
}
func WithPackageConfig(t *testing.T, bundleURI, chartName, chartURI,
chartVersion string,... | 92 |
eks-anywhere | aws | Go | package framework
import (
"os"
"testing"
"time"
"github.com/aws/eks-anywhere/internal/pkg/api"
anywherev1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/executables"
"github.com/aws/eks-anywhere/pkg/providers/docker"
clusterf "github.com/aws/eks-anywhere/test/framework/cluste... | 92 |
eks-anywhere | aws | Go | package framework
import (
"log"
"github.com/aws/eks-anywhere/pkg/semver"
)
func newVersion(version string) *semver.Version {
v, err := semver.New(version)
if err != nil {
log.Fatalf("error creating semver for EKS-A version %s: %v", version, err)
}
return v
}
| 16 |
eks-anywhere | aws | Go | package framework
import (
"os"
)
func checkRequiredEnvVars(t T, requiredEnvVars []string) {
for _, eVar := range requiredEnvVars {
if _, ok := os.LookupEnv(eVar); !ok {
t.Fatalf("Required env var [%s] not present", eVar)
}
}
}
func setKubeconfigEnvVar(t T, clusterName string) {
err := os.Setenv("KUBECONF... | 29 |
eks-anywhere | aws | Go | package framework
import (
"context"
"github.com/aws/eks-anywhere/pkg/executables"
"github.com/aws/eks-anywhere/pkg/filewriter"
"github.com/aws/eks-anywhere/pkg/providers/cloudstack/decoder"
)
func buildKubectl(t T) *executables.Kubectl {
ctx := context.Background()
kubectl := executableBuilder(ctx, t).BuildKu... | 87 |
eks-anywhere | aws | Go | package framework
import "os"
func fileExists(filePath string) bool {
_, err := os.Stat(filePath)
return err == nil
}
| 9 |
eks-anywhere | aws | Go | package framework
import (
"bytes"
"context"
"fmt"
"os"
"path"
"path/filepath"
"reflect"
"strings"
"time"
"github.com/pkg/errors"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/internal/test"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/cl... | 1,103 |
eks-anywhere | aws | Go | package framework
import (
"context"
_ "embed"
"fmt"
"path/filepath"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/filewriter"
gitFactory "github.com/aws/eks-anywhere/pkg/git/factory"
)
func (e *ClusterE2ETest) NewGitTools(ctx context.Context, cluster *v1alpha1.Cluster, fluxC... | 48 |
eks-anywhere | aws | Go | package framework
import (
"testing"
"github.com/aws/eks-anywhere/pkg/executables"
)
type HelmInstallConfig struct {
chartName string
chartURI string
chartVersion string
chartValues []string
HelmClient *executables.Helm
}
func WithHelmInstallConfig(t *testing.T, chartName, chartURI, chartVersion st... | 28 |
eks-anywhere | aws | Go | package framework
import (
"context"
"os"
"path/filepath"
"strconv"
"strings"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
)
const (
// NTP configuration environment variables.
ntpServersVar = "T_NTP_SERVERS"
// Bottlerocket configuration environment variables.
maxPodsVar = "T_BR_K8S_SETTIN... | 168 |
eks-anywhere | aws | Go | package framework
import (
"encoding/json"
"fmt"
"strings"
corev1 "k8s.io/api/core/v1"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/constants"
"github.com/aws/eks-anywhere/pkg/logger"
)
const LabelPrefix = "eksa.e2e"
func ValidateControlPlaneLabels(controlPlane v1alpha1.Co... | 85 |
eks-anywhere | aws | Go | package framework
import (
"fmt"
"sync"
"testing"
"time"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/pkg/retrier"
)
type MulticlusterE2ETest struct {
T *testing.T
ManagementCluster *ClusterE2ETest
WorkloadClusters WorkloadClusters
// MaxConcurrentWorkers def... | 161 |
eks-anywhere | aws | Go | package framework
import (
"fmt"
"os"
"github.com/aws/eks-anywhere/pkg/logger"
"github.com/aws/eks-anywhere/pkg/networkutils"
)
func PopIPFromEnv(ipPoolEnvVar string) (string, error) {
ipPool, err := networkutils.NewIPPoolFromEnv(ipPoolEnvVar)
if err != nil {
return "", fmt.Errorf("popping IP from environmen... | 62 |
eks-anywhere | aws | Go | package framework
import (
"fmt"
corev1 "k8s.io/api/core/v1"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/logger"
)
// ValidateControlPlaneNodeNameMatchCAPIMachineName validate if node name is same as CAPI machine name.
func ValidateControlPlaneNodeNameMatchCAPIMachineName(con... | 41 |
eks-anywhere | aws | Go | package framework
import (
"context"
"os"
"testing"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/internal/pkg/nutanix"
"github.com/aws/eks-anywhere/internal/test/cleanup"
anywherev1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/constants"
clust... | 352 |
eks-anywhere | aws | Go | package framework
import (
"context"
"fmt"
"net/url"
"os"
"path"
"path/filepath"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/internal/pkg/oidc"
"github.com/aws/eks-anywhere/pkg/executables"
)
const (
OIDCIssuerUrlVar = "T_OIDC_ISSUER_URL"
OIDCClientIdVar = "T_OIDC_CLIENT_I... | 133 |
eks-anywhere | aws | Go | package framework
import (
"os"
"strings"
"github.com/aws/eks-anywhere/internal/pkg/api"
)
const (
vsphereHttpProxyVar = "T_HTTP_PROXY_VSPHERE"
vsphereHttpsProxyVar = "T_HTTPS_PROXY_VSPHERE"
vsphereNoProxyVar = "T_NO_PROXY_VSPHERE"
cloudstackHttpProxyVar = "T_HTTP_PROXY_CLOUDSTACK"
cloudstackHt... | 63 |
eks-anywhere | aws | Go | package framework
import "github.com/aws/eks-anywhere/pkg/files"
func newFileReader() *files.Reader {
return files.NewReader(files.WithEKSAUserAgent("e2e-test", testBranch()))
}
| 8 |
eks-anywhere | aws | Go | package framework
import (
"context"
"encoding/base64"
"net"
"os"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/pkg/constants"
)
const (
RegistryEndpointVar = "T_REGISTRY_MIRROR_ENDPOINT"
RegistryPortVar = "T_REGISTRY_MIRROR_PORT"
RegistryU... | 167 |
eks-anywhere | aws | Go | package framework
import (
"fmt"
"os"
"path/filepath"
"runtime"
"strings"
"github.com/pkg/errors"
"github.com/aws/eks-anywhere/internal/pkg/files"
"github.com/aws/eks-anywhere/pkg/logger"
"github.com/aws/eks-anywhere/pkg/manifests/releases"
"github.com/aws/eks-anywhere/pkg/semver"
"github.com/aws/eks-anyw... | 359 |
eks-anywhere | aws | Go | package framework
import (
"fmt"
"os"
"strings"
"testing"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/credentials"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/ec2"
kerrors "k8s.io/apimachinery/pkg/util/errors"
"github.com/aws/eks-anywhere/internal/pkg/api"
... | 510 |
eks-anywhere | aws | Go | package framework
import (
corev1 "k8s.io/api/core/v1"
"github.com/aws/eks-anywhere/internal/pkg/api"
"github.com/aws/eks-anywhere/pkg/api/v1alpha1"
"github.com/aws/eks-anywhere/pkg/logger"
)
const ownerAnnotation = "cluster.x-k8s.io/owner-name"
// ValidateControlPlaneTaints will validate that a controlPlane no... | 71 |
eks-anywhere | aws | Go | package framework
import (
"context"
"os"
"testing"
anywherev1 "github.com/aws/eks-anywhere/pkg/api/v1alpha1"
releasev1 "github.com/aws/eks-anywhere/release/api/v1alpha1"
)
// providerTemplateNameGenerator is an interface for getting template name for each provider.
type providerTemplateNameGenerator interface ... | 91 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.