Documentation
¶
Index ¶
- func SecretFromCluster(cluster Cluster) (*corev1.Secret, error)
- type Client
- func (cl Client) Create(ctx context.Context, namespace string, clusters []Cluster) error
- func (cl Client) Delete(ctx context.Context, namespace string, clusters []Cluster) error
- func (cl Client) List(ctx context.Context, namespace string) ([]Cluster, error)
- func (cl Client) Update(ctx context.Context, namespace string, clusters []Cluster) error
- type Cluster
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
Client client.Client
// Labels is the set of labels that is required.
Labels labels.Set
}
Client is used to access Secrets containing cluster data.
type Cluster ¶
type Cluster struct {
// Environment in which the cluster is located (K8sEnvironment eu41d)
Environment string
// Name of the cluster (K8sCluster one)
Name string
// Domain is the DNS domain (K8sDomain example inf.iitech.dk)
Domain string
// Provider Cloud provider (K8sProvider aks)
Provider string
// Config contains a kubeconfig to access the cluster.
Config []byte
}
Cluster contains the data to access a k8s cluster in an environment.
func Diff ¶
Diff compares current with desired state and returns clusters to create, update, delete.
func SecretToCluster ¶
SecretToCluster returns the cluster data contained by secret.
Click to show internal directories.
Click to hide internal directories.