Documentation
¶
Index ¶
- Constants
- func FakeTPP(t testing.TB) (*httptest.Server, *x509.Certificate)
- func FakeVenafiCloud(t *testing.T) (_ *httptest.Server, _ *x509.Certificate, setAssert func(AssertRequest))
- func Parse(yamlmanifest string) []ctrlruntime.Object
- func Undent(s string) string
- func WithEnvtest(t testing.TB) (_ *envtest.Environment, _ *rest.Config, kclient ctrlruntime.WithWatch)
- func WithKubeconfig(t testing.TB, restCfg *rest.Config) string
- type AssertRequest
Constants ¶
View Source
const VenConnRBAC = `` /* 1584-byte string literal not displayed */
Generated using:
helm template ./deploy/charts/venafi-kubernetes-agent -n venafi --set venafiConnection.include=true --show-only templates/venafi-connection-VenConnRBAC.yaml | grep -ivE '(helm|\/version)'
Variables ¶
This section is empty.
Functions ¶
func FakeVenafiCloud ¶
func FakeVenafiCloud(t *testing.T) (_ *httptest.Server, _ *x509.Certificate, setAssert func(AssertRequest))
func Parse ¶
func Parse(yamlmanifest string) []ctrlruntime.Object
Parses the YAML manifest. Useful for inlining YAML manifests in Go test files, to be used in conjunction with `undent`.
func Undent ¶
Undent removes leading indentation/white-space from given string and returns it as a string. Useful for inlining YAML manifests in Go code. Inline YAML manifests in the Go test files makes it easier to read the test case as opposed to reading verbose-y Go structs.
This was copied from https://github.com/jimeh/Undent/blob/main/Undent.go, all credit goes to the author, Jim Myhrberg.
func WithEnvtest ¶
func WithEnvtest(t testing.TB) (_ *envtest.Environment, _ *rest.Config, kclient ctrlruntime.WithWatch)
To see the API server logs, set:
export KUBEBUILDER_ATTACH_CONTROL_PLANE_OUTPUT=true
Types ¶
Click to show internal directories.
Click to hide internal directories.