Documentation ¶
Index ¶
- Constants
- Variables
- func Annotate(obj *unstructured.Unstructured, key, val string) *unstructured.Unstructured
- func DemoDeployment() *appsv1.Deployment
- func GetFreePort() (int, error)
- func HelmHook(obj *unstructured.Unstructured, hookType string) *unstructured.Unstructured
- func Hook(obj *unstructured.Unstructured, hookType v1alpha1.HookType) *unstructured.Unstructured
- func NewCRD() *unstructured.Unstructured
- func NewDeployment() *unstructured.Unstructured
- func NewFakeConfigMap() *apiv1.ConfigMap
- func NewFakeProjLister(objects ...runtime.Object) applister.AppProjectNamespaceLister
- func NewFakeSecret(policy ...string) *apiv1.Secret
- func NewHook(hookType v1alpha1.HookType) *unstructured.Unstructured
- func NewPod() *unstructured.Unstructured
- func NewService() *unstructured.Unstructured
- func StartInformer(informer cache.SharedIndexInformer) context.CancelFunc
- func Unstructured(text string) *unstructured.Unstructured
- func UnstructuredFromFile(path string) *unstructured.Unstructured
- func WaitForPortListen(addr string, timeout time.Duration) error
Constants ¶
View Source
const ( FakeArgoCDNamespace = "fake-argocd-ns" FakeDestNamespace = "fake-dest-ns" FakeClusterURL = "https://fake-cluster:443" )
Variables ¶
View Source
var DeploymentManifest = `` /* 627-byte string literal not displayed */
View Source
var PodManifest = `` /* 293-byte string literal not displayed */
View Source
var ServiceManifest = `` /* 296-byte string literal not displayed */
Functions ¶
func Annotate ¶ added in v1.1.2
func Annotate(obj *unstructured.Unstructured, key, val string) *unstructured.Unstructured
func DemoDeployment ¶
func DemoDeployment() *appsv1.Deployment
func GetFreePort ¶
GetFreePort finds an available free port on the OS
func HelmHook ¶ added in v1.1.2
func HelmHook(obj *unstructured.Unstructured, hookType string) *unstructured.Unstructured
func Hook ¶ added in v1.1.2
func Hook(obj *unstructured.Unstructured, hookType v1alpha1.HookType) *unstructured.Unstructured
func NewCRD ¶ added in v1.3.0
func NewCRD() *unstructured.Unstructured
func NewDeployment ¶
func NewDeployment() *unstructured.Unstructured
func NewFakeConfigMap ¶
func NewFakeProjLister ¶
func NewFakeProjLister(objects ...runtime.Object) applister.AppProjectNamespaceLister
func NewFakeSecret ¶
func NewHook ¶ added in v1.1.0
func NewHook(hookType v1alpha1.HookType) *unstructured.Unstructured
DEPRECATED use `Hook(NewPod())` or similar instead
func NewPod ¶
func NewPod() *unstructured.Unstructured
func NewService ¶
func NewService() *unstructured.Unstructured
func StartInformer ¶
func StartInformer(informer cache.SharedIndexInformer) context.CancelFunc
StartInformer is a helper to start an informer, wait for its cache to sync and return a cancel func
func Unstructured ¶ added in v1.3.5
func Unstructured(text string) *unstructured.Unstructured
func UnstructuredFromFile ¶ added in v1.3.5
func UnstructuredFromFile(path string) *unstructured.Unstructured
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.