Documentation
¶
Index ¶
- func IsSecretNotPopulatedError(err error) bool
- type Cluster
- func (c *Cluster) CopySecret(cluster *shipper.Cluster, newNamespace string, secret *corev1.Secret) error
- func (c *Cluster) CreateClusterFromConfig(configuration *config.ClusterConfiguration, host string) error
- func (c *Cluster) CreateClusterRole(domain, name string) error
- func (c *Cluster) CreateClusterRoleBinding(...) error
- func (c *Cluster) CreateCrd(crd *apiextensionv1beta1.CustomResourceDefinition) error
- func (c *Cluster) CreateNamespace(namespace string) error
- func (c *Cluster) CreateOrUpdateCRD(crd *apiextensionv1beta1.CustomResourceDefinition) error
- func (c *Cluster) CreateOrUpdateClusterWithConfig(configuration *config.ClusterConfiguration, host string) error
- func (c *Cluster) CreateServiceAccount(domain, namespace string, name string) error
- func (c *Cluster) FetchCluster(clusterName string) (*shipper.Cluster, error)
- func (c *Cluster) FetchSecretForServiceAccount(name, namespace string) (*corev1.Secret, error)
- func (c *Cluster) ShouldCopySecret(name, namespace string) (bool, error)
- type SecretNotPopulatedError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cluster ¶
type Cluster struct {
KubeClient *kubernetes.Clientset
ShipperClient *shipperclientset.Clientset
ApiExtensionClient *apiextensionclientset.Clientset
Host string
}
func NewClusterConfigurator ¶
func NewClusterConfigurator(clusterConfiguration *config.ClusterConfiguration, kubeConfigFile string) (*Cluster, error)
func (*Cluster) CopySecret ¶
func (*Cluster) CreateClusterFromConfig ¶
func (c *Cluster) CreateClusterFromConfig(configuration *config.ClusterConfiguration, host string) error
func (*Cluster) CreateClusterRole ¶
func (*Cluster) CreateClusterRoleBinding ¶
func (*Cluster) CreateCrd ¶
func (c *Cluster) CreateCrd(crd *apiextensionv1beta1.CustomResourceDefinition) error
func (*Cluster) CreateNamespace ¶
func (*Cluster) CreateOrUpdateCRD ¶
func (c *Cluster) CreateOrUpdateCRD(crd *apiextensionv1beta1.CustomResourceDefinition) error
func (*Cluster) CreateOrUpdateClusterWithConfig ¶
func (c *Cluster) CreateOrUpdateClusterWithConfig(configuration *config.ClusterConfiguration, host string) error
func (*Cluster) CreateServiceAccount ¶
func (*Cluster) FetchCluster ¶
func (*Cluster) FetchSecretForServiceAccount ¶
type SecretNotPopulatedError ¶
type SecretNotPopulatedError struct {
ServiceAccount *corev1.ServiceAccount
}
func NewSecretNotPopulatedError ¶
func NewSecretNotPopulatedError(serviceAccount *corev1.ServiceAccount) *SecretNotPopulatedError
func (SecretNotPopulatedError) Error ¶
func (s SecretNotPopulatedError) Error() string
Click to show internal directories.
Click to hide internal directories.