Documentation ¶
Index ¶
- func WithDecryptionKeyCreated() decryptionKeyCreated
- func WithHelm(enabled bool, oci bool) helmOption
- func WithProject(repo *gittest.LocalGitRepository, testProject string, testRoot string) projectOption
- func WithVCSSSHKeyCreated() vcsSSHKeyCreated
- type Environment
- type FakeDynamicClient
- func (client *FakeDynamicClient) Apply(ctx context.Context, obj *unstructured.Unstructured, fieldManager string, ...) error
- func (client *FakeDynamicClient) Delete(ctx context.Context, obj *unstructured.Unstructured) error
- func (client *FakeDynamicClient) Get(ctx context.Context, obj *unstructured.Unstructured) (*unstructured.Unstructured, error)
- func (client *FakeDynamicClient) RESTMapper() meta.RESTMapper
- func (client *FakeDynamicClient) Update(ctx context.Context, obj *unstructured.Unstructured, fieldManager string, ...) error
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithDecryptionKeyCreated ¶
func WithDecryptionKeyCreated() decryptionKeyCreated
func WithProject ¶
func WithProject( repo *gittest.LocalGitRepository, testProject string, testRoot string, ) projectOption
func WithVCSSSHKeyCreated ¶
func WithVCSSSHKeyCreated() vcsSSHKeyCreated
Types ¶
type Environment ¶
type Environment struct { ControlPlane *envtest.Environment ControllerManager manager.Manager HelmEnv helmtest.Environment TestKubeClient client.Client DynamicTestKubeClient *kube.DynamicClient GarbageCollector garbage.Collector InventoryManager *inventory.Manager RepositoryManager vcs.RepositoryManager SecretManager secret.Manager Ctx context.Context // contains filtered or unexported fields }
func StartKubetestEnv ¶
func (Environment) Stop ¶
func (env Environment) Stop()
type FakeDynamicClient ¶
type FakeDynamicClient struct {
Err error
}
func (*FakeDynamicClient) Apply ¶
func (client *FakeDynamicClient) Apply( ctx context.Context, obj *unstructured.Unstructured, fieldManager string, opts ...kube.ApplyOption, ) error
func (*FakeDynamicClient) Delete ¶
func (client *FakeDynamicClient) Delete(ctx context.Context, obj *unstructured.Unstructured) error
func (*FakeDynamicClient) Get ¶
func (client *FakeDynamicClient) Get( ctx context.Context, obj *unstructured.Unstructured, ) (*unstructured.Unstructured, error)
func (*FakeDynamicClient) RESTMapper ¶
func (client *FakeDynamicClient) RESTMapper() meta.RESTMapper
func (*FakeDynamicClient) Update ¶
func (client *FakeDynamicClient) Update( ctx context.Context, obj *unstructured.Unstructured, fieldManager string, opts ...kube.ApplyOption, ) error
Click to show internal directories.
Click to hide internal directories.