Documentation ¶
Overview ¶
Package fakekubeapi supports integration testing of kms-plugin by faking K8S kube-apiserver.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server fakes kube-apiserver.
func New ¶
func New(namespaces corev1.NamespaceList, secrets map[string][]corev1.Secret, port int, kmsClient *kmspluginclient.Client, timeout time.Duration) (*Server, error)
New constructs kube-apiserver fake. It is the responsibility of the caller to call Close.
func (*Server) ListSecretsRequestsEquals ¶
ListSecretsRequestsEquals validates that the supplied Secrets are equal to all secrets processed by the server via http.Get.
func (*Server) PutSecretsEquals ¶
PutSecretsEquals validates that the supplied Secrets are equal to all secrets processed by the server via http.Put.
Click to show internal directories.
Click to hide internal directories.