Versions in this module Expand all Collapse all v15 v15.11.0 Apr 13, 2023 Changes in this version + type Client interface + Apply func(ctx context.Context, namespace, config string) error + CreateNamespace func(ctx context.Context, name string) error + DeleteNamespace func(ctx context.Context, name string) error + NamespaceExists func(ctx context.Context, name string) bool + type K8sClient struct + func New(log *zap.Logger, factory util.Factory) (*K8sClient, error) + func (k *K8sClient) Apply(ctx context.Context, namespace string, config string) error + func (k *K8sClient) CreateNamespace(ctx context.Context, name string) error + func (k *K8sClient) DeleteNamespace(ctx context.Context, name string) error + func (k *K8sClient) NamespaceExists(ctx context.Context, name string) bool + type MockClient struct + ApplyRecorder string + NamespaceStore map[string]struct{} + func NewMockClient() *MockClient + func (m *MockClient) Apply(ctx context.Context, namespace, config string) error + func (m *MockClient) CreateNamespace(ctx context.Context, name string) error + func (m *MockClient) DeleteNamespace(ctx context.Context, name string) error + func (m *MockClient) NamespaceExists(ctx context.Context, name string) bool Other modules containing this package gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16 gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17 gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v18