Documentation ¶
Index ¶
- Constants
- Variables
- func AddFile(path, contents string)
- func CreateSecret(username, password string) string
- func Declarative(filename string, values interface{}) (string, error)
- func Delete(path string)
- func DeploymentNamespace() string
- func EnsureCleanState(t *testing.T)
- func Name() string
- func NormalizeOutput(text string) string
- func Patch(path string, jsonPatch 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 SetConfigManagementPlugins(plugin ...v1alpha1.ConfigManagementPlugin)
- func SetHelmRepos(repos ...settings.HelmRepoCredentials)
- func SetProjectSpec(project string, spec v1alpha1.AppProjectSpec)
- func SetRepoCredentials(repos ...settings.RepoCredentials)
- func SetRepos(repos ...settings.RepoCredentials)
- func SetResourceFilter(filters settings.ResourcesFilter)
- func SetResourceOverrides(overrides map[string]v1alpha1.ResourceOverride)
- func SetSSHKnownHosts()
- func SetTLSCerts()
- func Settings(consumer func(s *settings.ArgoCDSettings))
- func Tmpl(text string, values interface{}) 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" RepoURLTypeSSH = "ssh" RepoURLTypeHelm = "helm" GitUsername = "admin" GitPassword = "password" )
Variables ¶
View Source
var ( KubeClientset kubernetes.Interface AppClientset appclientset.Interface ArgoCDClientset argocdclient.Client )
Functions ¶
func CreateSecret ¶
creates a secret for the current test, this currently can only create a single secret
func Declarative ¶
create the resource by creating using "kubectl apply", with bonus templating
func DeploymentNamespace ¶
func DeploymentNamespace() string
func EnsureCleanState ¶
func NormalizeOutput ¶
utility method to deal with white-space
func RepoURL ¶
func RepoURL(urlType RepoURLType) string
func RunCliWithStdin ¶ added in v1.3.0
func RunWithStdin ¶ added in v1.3.0
func SetConfigManagementPlugins ¶ added in v1.2.0
func SetConfigManagementPlugins(plugin ...v1alpha1.ConfigManagementPlugin)
func SetHelmRepos ¶ added in v1.3.0
func SetHelmRepos(repos ...settings.HelmRepoCredentials)
func SetProjectSpec ¶ added in v1.3.0
func SetProjectSpec(project string, spec v1alpha1.AppProjectSpec)
func SetRepoCredentials ¶ added in v1.2.0
func SetRepoCredentials(repos ...settings.RepoCredentials)
func SetRepos ¶ added in v1.2.0
func SetRepos(repos ...settings.RepoCredentials)
func SetResourceFilter ¶ added in v1.2.0
func SetResourceFilter(filters settings.ResourcesFilter)
func SetResourceOverrides ¶
func SetResourceOverrides(overrides map[string]v1alpha1.ResourceOverride)
func SetSSHKnownHosts ¶ added in v1.2.0
func SetSSHKnownHosts()
func SetTLSCerts ¶ added in v1.2.0
func SetTLSCerts()
func Settings ¶
func Settings(consumer func(s *settings.ArgoCDSettings))
Types ¶
type RepoURLType ¶ added in v1.2.0
type RepoURLType string
Click to show internal directories.
Click to hide internal directories.