Documentation ¶
Index ¶
- func AddUserToKubeConfig(userName, userToken string)
- func Cf(args ...string) *Session
- func CreateSelfSignedCertificatePEM() []byte
- func CreateTrustedCertificatePEM(userName string, validFor time.Duration) []byte
- func EnsureCreate(k8sClient client.Client, obj client.Object)
- func EnsureDelete(k8sClient client.Client, obj client.Object)
- func EnsurePatch[T any, PT k8s.ObjectWithDeepCopy[T]](k8sClient client.Client, obj PT, modifyFunc func(PT))
- func EventuallyPollingInterval() time.Duration
- func EventuallyShouldHold(condition func(g Gomega))
- func EventuallyTimeout() time.Duration
- func GetApiServerRoot() string
- func GetDefaultedEnvVar(envVarName, defaultValue string) string
- func GetInClusterURL(appGUID string) string
- func GetRequiredEnvVar(envVarName string) string
- func NewActualRestyResponse(response *resty.Response) actualRestyResponse
- func NewCachedClient(cfg *rest.Config) (client.Client, context.CancelFunc)
- func NewK8sManager(testEnv *envtest.Environment, managerRolePath string) manager.Manager
- func NewUncachedClient(cfg *rest.Config) client.Client
- func RemoveUserFromKubeConfig(userName string)
- func SetupTestEnvUser(testEnv *envtest.Environment, roleDefinitionPath string) *rest.Config
- func StartK8sManager(k8sManager manager.Manager) context.CancelFunc
- func ZipDirectory(srcDir string) string
- type CorrelatedRestyClient
- func (c *CorrelatedRestyClient) R() *resty.Request
- func (c *CorrelatedRestyClient) SetAuthScheme(scheme string) *CorrelatedRestyClient
- func (c *CorrelatedRestyClient) SetAuthToken(token string) *CorrelatedRestyClient
- func (c *CorrelatedRestyClient) SetTLSClientConfig(config *tls.Config) *CorrelatedRestyClient
- type ServiceAccountFactory
- func (f *ServiceAccountFactory) CreateAdminServiceAccount(adminServiceAccount string) string
- func (f *ServiceAccountFactory) CreateServiceAccount(name string) string
- func (f *ServiceAccountFactory) DeleteServiceAccount(name string)
- func (f *ServiceAccountFactory) FullyQualifiedName(svcAcctName string) string
- type SyncClient
- func (c *SyncClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
- func (c *SyncClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
- func (c *SyncClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, ...) error
- func (c *SyncClient) Status() client.SubResourceWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddUserToKubeConfig ¶ added in v0.9.0
func AddUserToKubeConfig(userName, userToken string)
func CreateSelfSignedCertificatePEM ¶ added in v0.9.0
func CreateSelfSignedCertificatePEM() []byte
func CreateTrustedCertificatePEM ¶ added in v0.9.0
func EnsurePatch ¶ added in v0.13.0
func EnsurePatch[T any, PT k8s.ObjectWithDeepCopy[T]](k8sClient client.Client, obj PT, modifyFunc func(PT))
func EventuallyPollingInterval ¶ added in v0.10.0
func EventuallyShouldHold ¶ added in v0.8.0
func EventuallyShouldHold(condition func(g Gomega))
func EventuallyTimeout ¶ added in v0.9.0
func GetApiServerRoot ¶ added in v0.12.0
func GetApiServerRoot() string
func GetDefaultedEnvVar ¶ added in v0.9.0
func GetInClusterURL ¶ added in v0.13.0
func GetRequiredEnvVar ¶ added in v0.9.0
func NewActualRestyResponse ¶ added in v0.9.0
func NewActualRestyResponse(response *resty.Response) actualRestyResponse
func NewCachedClient ¶ added in v0.8.0
func NewK8sManager ¶ added in v0.8.0
func NewK8sManager(testEnv *envtest.Environment, managerRolePath string) manager.Manager
func RemoveUserFromKubeConfig ¶ added in v0.9.0
func RemoveUserFromKubeConfig(userName string)
func SetupTestEnvUser ¶ added in v0.8.0
func SetupTestEnvUser(testEnv *envtest.Environment, roleDefinitionPath string) *rest.Config
func StartK8sManager ¶ added in v0.8.0
func StartK8sManager(k8sManager manager.Manager) context.CancelFunc
func ZipDirectory ¶ added in v0.12.0
Types ¶
type CorrelatedRestyClient ¶ added in v0.9.0
type CorrelatedRestyClient struct { // contains filtered or unexported fields }
func NewCorrelatedRestyClient ¶ added in v0.9.0
func NewCorrelatedRestyClient(apiServerRoot string, getCorrelationId func() string) *CorrelatedRestyClient
func (*CorrelatedRestyClient) R ¶ added in v0.9.0
func (c *CorrelatedRestyClient) R() *resty.Request
func (*CorrelatedRestyClient) SetAuthScheme ¶ added in v0.9.0
func (c *CorrelatedRestyClient) SetAuthScheme(scheme string) *CorrelatedRestyClient
func (*CorrelatedRestyClient) SetAuthToken ¶ added in v0.9.0
func (c *CorrelatedRestyClient) SetAuthToken(token string) *CorrelatedRestyClient
func (*CorrelatedRestyClient) SetTLSClientConfig ¶ added in v0.9.0
func (c *CorrelatedRestyClient) SetTLSClientConfig(config *tls.Config) *CorrelatedRestyClient
type ServiceAccountFactory ¶ added in v0.9.0
type ServiceAccountFactory struct {
// contains filtered or unexported fields
}
func NewServiceAccountFactory ¶ added in v0.9.0
func NewServiceAccountFactory(rootNamespace string) *ServiceAccountFactory
func (*ServiceAccountFactory) CreateAdminServiceAccount ¶ added in v0.9.0
func (f *ServiceAccountFactory) CreateAdminServiceAccount(adminServiceAccount string) string
func (*ServiceAccountFactory) CreateServiceAccount ¶ added in v0.9.0
func (f *ServiceAccountFactory) CreateServiceAccount(name string) string
func (*ServiceAccountFactory) DeleteServiceAccount ¶ added in v0.9.0
func (f *ServiceAccountFactory) DeleteServiceAccount(name string)
func (*ServiceAccountFactory) FullyQualifiedName ¶ added in v0.9.0
func (f *ServiceAccountFactory) FullyQualifiedName(svcAcctName string) string
type SyncClient ¶ added in v0.8.0
func NewSyncClient ¶ added in v0.8.0
func NewSyncClient(k8sClient client.Client) *SyncClient
func (*SyncClient) Create ¶ added in v0.8.0
func (c *SyncClient) Create(ctx context.Context, obj client.Object, opts ...client.CreateOption) error
func (*SyncClient) Delete ¶ added in v0.9.0
func (c *SyncClient) Delete(ctx context.Context, obj client.Object, opts ...client.DeleteOption) error
func (*SyncClient) Patch ¶ added in v0.8.0
func (c *SyncClient) Patch(ctx context.Context, obj client.Object, patch client.Patch, _ ...client.PatchOption) error
func (*SyncClient) Status ¶ added in v0.8.0
func (c *SyncClient) Status() client.SubResourceWriter
Source Files ¶
Click to show internal directories.
Click to hide internal directories.