Documentation ¶
Index ¶
- func NewDeployment(name string, spec appsv1.DeploymentSpec) *appsv1.Deployment
- func NewNginxDeploymentSpec() appsv1.DeploymentSpec
- func NewRole(name, pspResourceName string) *rbac.Role
- func NewRoleBinding(roleName, roleBindingName, serviceAccountName string) *rbac.RoleBinding
- func NewServiceAccount(name string) *corev1.ServiceAccount
- type Client
- func (c *Client) CreateDeployment(namespace string, deployment *appsv1.Deployment) (*appsv1.Deployment, error)
- func (c *Client) CreateNamespace(prefix string) (*corev1.Namespace, error)
- func (c *Client) CreatePodSecurityPolicy(podSecurityPolicy *policyv1.PodSecurityPolicy) (*policyv1.PodSecurityPolicy, error)
- func (c *Client) CreateRole(namespace string, role *rbac.Role) (*rbac.Role, error)
- func (c *Client) CreateRoleBinding(namespace string, roleBinding *rbac.RoleBinding) (*rbac.RoleBinding, error)
- func (c *Client) CreateServiceAccount(namespace string, serviceAccount *corev1.ServiceAccount) (*corev1.ServiceAccount, error)
- func (c *Client) DeleteDeployment(namespace, deploymentName string) error
- func (c *Client) DeleteNamespace(namespace string) error
- func (c *Client) DeletePodSecurityPolicy(podSecurityPolicyName string) error
- func (c *Client) DeleteRole(namespace, roleName string) error
- func (c *Client) DeleteRoleBinding(namespace, roleBindingName string) error
- func (c *Client) DeleteServiceAccount(namespace string, serviceAccountName string) error
- func (c *Client) GetDeployment(namespace, deploymentName string) (*appsv1.Deployment, error)
- func (c *Client) GetDeployments(namespace, selector string) (*appsv1.DeploymentList, error)
- func (c *Client) IsHealthy() bool
- func (c *Client) WaitForDeployment(namespace, deploymentName string, timeout time.Duration, writer io.Writer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDeployment ¶
func NewDeployment(name string, spec appsv1.DeploymentSpec) *appsv1.Deployment
func NewNginxDeploymentSpec ¶
func NewNginxDeploymentSpec() appsv1.DeploymentSpec
func NewRoleBinding ¶
func NewRoleBinding(roleName, roleBindingName, serviceAccountName string) *rbac.RoleBinding
func NewServiceAccount ¶
func NewServiceAccount(name string) *corev1.ServiceAccount
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewKubeClient ¶
func (*Client) CreateDeployment ¶
func (c *Client) CreateDeployment(namespace string, deployment *appsv1.Deployment) (*appsv1.Deployment, error)
func (*Client) CreateNamespace ¶
func (*Client) CreatePodSecurityPolicy ¶
func (c *Client) CreatePodSecurityPolicy(podSecurityPolicy *policyv1.PodSecurityPolicy) (*policyv1.PodSecurityPolicy, error)
func (*Client) CreateRole ¶
func (*Client) CreateRoleBinding ¶
func (c *Client) CreateRoleBinding(namespace string, roleBinding *rbac.RoleBinding) (*rbac.RoleBinding, error)
func (*Client) CreateServiceAccount ¶
func (c *Client) CreateServiceAccount(namespace string, serviceAccount *corev1.ServiceAccount) (*corev1.ServiceAccount, error)
func (*Client) DeleteDeployment ¶
func (*Client) DeleteNamespace ¶
func (*Client) DeletePodSecurityPolicy ¶
func (*Client) DeleteRole ¶
func (*Client) DeleteRoleBinding ¶
func (*Client) DeleteServiceAccount ¶
func (*Client) GetDeployment ¶
func (c *Client) GetDeployment(namespace, deploymentName string) (*appsv1.Deployment, error)
func (*Client) GetDeployments ¶
func (c *Client) GetDeployments(namespace, selector string) (*appsv1.DeploymentList, error)
Click to show internal directories.
Click to hide internal directories.