Documentation ¶
Index ¶
- Constants
- Variables
- func AddFile(path, contents string)
- func AddSignedFile(path, contents string)
- func CreateSecret(username, password string) string
- func CreateSubmoduleRepos(repoType string)
- func Declarative(filename string, values interface{}) (string, error)
- func Delete(path string)
- func DeploymentNamespace() string
- func DnsFriendly(str string, postfix string) string
- func EnsureCleanState(t *testing.T)
- func GetApiVersions() string
- func Name() string
- func NormalizeOutput(text string) string
- func Patch(path string, jsonPatch string)
- func RepoBaseURL(urlType RepoURLType) string
- func RepoURL(urlType RepoURLType) string
- func Run(workDir, name string, args ...string) (string, error)
- func RunCli(args ...string) (string, error)
- func RunCliWithStdin(stdin string, args ...string) (string, error)
- func RunWithStdin(stdin, workDir, name string, args ...string) (string, error)
- func SetAccounts(accounts map[string][]string)
- func SetConfigManagementPlugins(plugin ...v1alpha1.ConfigManagementPlugin)
- func SetHelmRepos(repos ...settings.HelmRepoCredentials)
- func SetProjectSpec(project string, spec v1alpha1.AppProjectSpec)
- func SetRepos(repos ...settings.RepositoryCredentials)
- func SetResourceFilter(filters settings.ResourcesFilter)
- func SetResourceOverrides(overrides map[string]v1alpha1.ResourceOverride)
- func Tmpl(text string, values interface{}) string
- func WriteFile(path, contents string)
- type RepoURLType
- type Version
- type Versions
Constants ¶
View Source
const ( ArgoCDNamespace = "argocd-e2e" // ensure all repos are in one directory tree, so we can easily clean them up TmpDir = "/tmp/argo-e2e" GuestbookPath = "guestbook" )
View Source
const ( RepoURLTypeFile = "file" RepoURLTypeHTTPS = "https" RepoURLTypeHTTPSClientCert = "https-cc" RepoURLTypeHTTPSSubmodule = "https-sub" RepoURLTypeHTTPSSubmoduleParent = "https-par" RepoURLTypeSSH = "ssh" RepoURLTypeSSHSubmodule = "ssh-sub" RepoURLTypeSSHSubmoduleParent = "ssh-par" RepoURLTypeHelm = "helm" GitUsername = "admin" GitPassword = "password" GpgGoodKeyID = "D56C4FCA57A46444" )
Variables ¶
View Source
var ( KubeClientset kubernetes.Interface DynamicClientset dynamic.Interface AppClientset appclientset.Interface ArgoCDClientset argocdclient.Client )
Functions ¶
func AddSignedFile ¶
func AddSignedFile(path, contents string)
func CreateSecret ¶
creates a secret for the current test, this currently can only create a single secret
func CreateSubmoduleRepos ¶
func CreateSubmoduleRepos(repoType string)
func Declarative ¶
create the resource by creating using "kubectl apply", with bonus templating
func DeploymentNamespace ¶
func DeploymentNamespace() string
func DnsFriendly ¶
returns dns friends string which is no longer than 63 characters and has specified postfix at the end
func EnsureCleanState ¶
func GetApiVersions ¶
func GetApiVersions() string
func NormalizeOutput ¶
utility method to deal with white-space
func RepoBaseURL ¶
func RepoBaseURL(urlType RepoURLType) string
func RepoURL ¶
func RepoURL(urlType RepoURLType) string
func SetAccounts ¶
func SetConfigManagementPlugins ¶
func SetConfigManagementPlugins(plugin ...v1alpha1.ConfigManagementPlugin)
func SetHelmRepos ¶
func SetHelmRepos(repos ...settings.HelmRepoCredentials)
func SetProjectSpec ¶
func SetProjectSpec(project string, spec v1alpha1.AppProjectSpec)
func SetRepos ¶
func SetRepos(repos ...settings.RepositoryCredentials)
func SetResourceFilter ¶
func SetResourceFilter(filters settings.ResourcesFilter)
func SetResourceOverrides ¶
func SetResourceOverrides(overrides map[string]v1alpha1.ResourceOverride)
Types ¶
type RepoURLType ¶
type RepoURLType string
Click to show internal directories.
Click to hide internal directories.