Documentation ¶
Index ¶
- Constants
- func ClusterClientSet(config *rest.Config) (*kubernetes.Clientset, error)
- func CreateObjectsFromResourceMap(ctx context.Context, clients *Clients, resourceMap resmap.ResMap, ...) error
- func GetResultValueFromPipelineRun(resultName string, pipelineRun *pipelinev1.PipelineRun) (pipelinev1.ResultValue, error)
- func KustomizeBuild(path string) (resmap.ResMap, error)
- func LinkSecretToServiceAccount(ctx context.Context, config *Config, serviceAccountName string, ...) error
- func MountConfigMapAsWorkspaceToPipelineRun(configMapName string, workspaceName string, ...)
- func MountSecretAsWorkspaceToPipelineRun(secretName string, workspaceName string, pipelineRun *pipelinev1.PipelineRun)
- func NewArrayParamValue(value []string) pipelinev1.ParamValue
- func NewObjectParamValue(value map[string]string) pipelinev1.ParamValue
- func NewStringParamValue(value string) pipelinev1.ParamValue
- func ReadFileAsPipelineRun(path string) (pipelinev1.PipelineRun, error)
- func ResourceToType[T any](resource *resource.Resource, t *T) error
- func RunSetup(ctx context.Context, config *Config) error
- func SetPipelineRunParam(name string, value pipelinev1.ParamValue, pipelineRun *pipelinev1.PipelineRun)
- func WaitFor(duration time.Duration, tickRate time.Duration, f func() (bool, error)) error
- type Clients
- type Config
- type GitFetchConfig
- type GitOpsConfig
- type GitRepoURL
- type S3FetchConfig
Constants ¶
View Source
const ( GitCredentialsTemplatePath = "../../../examples/tekton/aiedge-e2e/templates/credentials-git.secret.yaml.template" S3CredentialsTemplatePath = "../../../examples/tekton/aiedge-e2e/templates/credentials-s3.secret.yaml.template" ImageRegistryCredentialsTemplatePath = "../../../examples/tekton/aiedge-e2e/templates/credentials-image-registry.secret.yaml.template" GitOpsCredentialsTemplatePath = "../../../examples/tekton/gitops-update-pipeline/templates/example-git-credentials-secret.yaml.template" SelfSignedCertTemplatePath = "../../../examples/tekton/aiedge-e2e/templates/self-signed-cert.configmap.yaml.template" ManifestsDirectory = "../../../manifests" AIEdgeE2EDirectoryRelativePath = "../../../examples/tekton/aiedge-e2e" GitOpsUpdateDirectoryRelativePath = "../../../examples/tekton/gitops-update-pipeline" TestDataDirectoryRelativePath = "../../../examples/tekton/aiedge-e2e/test-data/" )
View Source
const (
ConfigPath = "../config.json"
)
Variables ¶
This section is empty.
Functions ¶
func ClusterClientSet ¶
func ClusterClientSet(config *rest.Config) (*kubernetes.Clientset, error)
func GetResultValueFromPipelineRun ¶
func GetResultValueFromPipelineRun(resultName string, pipelineRun *pipelinev1.PipelineRun) (pipelinev1.ResultValue, error)
func MountConfigMapAsWorkspaceToPipelineRun ¶
func MountConfigMapAsWorkspaceToPipelineRun(configMapName string, workspaceName string, pipelineRun *pipelinev1.PipelineRun)
func MountSecretAsWorkspaceToPipelineRun ¶
func MountSecretAsWorkspaceToPipelineRun(secretName string, workspaceName string, pipelineRun *pipelinev1.PipelineRun)
func NewArrayParamValue ¶
func NewArrayParamValue(value []string) pipelinev1.ParamValue
func NewObjectParamValue ¶
func NewObjectParamValue(value map[string]string) pipelinev1.ParamValue
func NewStringParamValue ¶
func NewStringParamValue(value string) pipelinev1.ParamValue
func ReadFileAsPipelineRun ¶
func ReadFileAsPipelineRun(path string) (pipelinev1.PipelineRun, error)
func SetPipelineRunParam ¶
func SetPipelineRunParam(name string, value pipelinev1.ParamValue, pipelineRun *pipelinev1.PipelineRun)
Types ¶
type Clients ¶
type Clients struct { Kubernetes *kubernetes.Clientset Task pipelinev1.TaskInterface Pipeline pipelinev1.PipelineInterface PipelineRun pipelinev1.PipelineRunInterface }
func CreateClients ¶
type Config ¶
type Config struct { Namespace string `json:"namespace"` ImageRegistryUsername string `json:"image_registry_username"` ImageRegistryPassword string `json:"image_registry_password"` TargetImageTags []string `json:"target_image_tags"` GitContainerFileRepo string `json:"git_container_file_repo"` GitContainerFileRevision string `json:"git_container_file_revision"` ContainerRelativePath string `json:"container_relative_path"` GitUsername string `json:"git_username"` GitToken string `json:"git_token"` GitFetchConfig GitFetchConfig `json:"git_fetch"` S3FetchConfig S3FetchConfig `json:"s3_fetch"` GitOpsConfig GitOpsConfig `json:"gitops"` Clients *Clients }
type GitFetchConfig ¶
type GitOpsConfig ¶
type GitRepoURL ¶
func ParseGitURL ¶
func ParseGitURL(rawURL string) (GitRepoURL, error)
type S3FetchConfig ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.