Documentation
¶
Index ¶
- Constants
- func CleanupServiceAndPod(pod *kapi.Pod, service *kapi.Service, ns string)
- func CreateNamespace(clusterAdminKubeConfig, name string) (err error)
- func CreatePodFromImage(stream *imageapi.ImageStream, tag, ns string) *kapi.Pod
- func CreateServiceForPod(pod *kapi.Pod, ns string) *kapi.Service
- func DeleteAndWaitForNamespaceTermination(c *kclient.Client, name string) error
- func GetBaseDir() string
- func GetClientForServiceAccount(adminClient *kclient.Client, clientConfig restclient.Config, ...) (*client.Client, *kclient.Client, *restclient.Config, error)
- func GetClientForUser(clientConfig restclient.Config, username string) (*client.Client, *kclient.Client, *restclient.Config, error)
- func GetClusterAdminClient(adminKubeConfigFile string) (*client.Client, error)
- func GetClusterAdminClientConfig(adminKubeConfigFile string) (*restclient.Config, error)
- func GetClusterAdminKubeClient(adminKubeConfigFile string) (*kclient.Client, error)
- func GetEtcdURL() string
- func GetTemplateFixture(filename string) (*templateapi.Template, error)
- func KubeConfigPath() string
- func MakeNewEtcdClient() (newetcdclient.Client, error)
- func Namespace() string
- func NewDockerClient() (*dockerClient.Client, error)
- func NewEtcdClient() *etcd.Client
- func NewTestLDAPServer() *testLDAPServer
- func RandomNamespace(prefix string) string
- func RequireDocker()
- func RequireEtcd(t *testing.T) *etcdtest.EtcdTestServer
- func VerifyImage(stream *imageapi.ImageStream, tag, ns string, validator ValidateFunc) error
- func WaitForAddress(pod *kapi.Pod, service *kapi.Service, ns string) (string, error)
- func WaitForClusterPolicyUpdate(c *client.Client, verb string, resource unversioned.GroupResource, ...) error
- func WaitForPolicyUpdate(c *client.Client, namespace, verb string, resource unversioned.GroupResource, ...) error
- type ValidateFunc
Constants ¶
View Source
const ( PolicyCachePollInterval = 100 * time.Millisecond PolicyCachePollTimeout = 5 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func CleanupServiceAndPod ¶
CleanupServiceAndPod removes the Service and the Pod
func CreateNamespace ¶
CreateNamespace creates a namespace with the specified name using the provided kubeconfig DO NOT USE, use create project instead
func CreatePodFromImage ¶
func CreatePodFromImage(stream *imageapi.ImageStream, tag, ns string) *kapi.Pod
CreatePodFromImage creates a Pod from the latest image available in the Image Stream
func CreateServiceForPod ¶
CreateServiceForPod creates a service to serve the provided Pod