Documentation ¶
Index ¶
- func AdaptFunc(orb *orbiter.Orb, orbiterCommit string, id string, oneoff bool, ...) orbiter.AdaptFunc
- func KubernetesSoftware(current common.Software) common.Software
- type Client
- func (c *Client) ApplyClusterRole(rsc *rbac.ClusterRole) error
- func (c *Client) ApplyClusterRoleBinding(rsc *rbac.ClusterRoleBinding) error
- func (c *Client) ApplyDeployment(rsc *apps.Deployment) error
- func (c *Client) ApplyNamespace(rsc *core.Namespace) error
- func (c *Client) ApplyRole(rsc *rbac.Role) error
- func (c *Client) ApplyRoleBinding(rsc *rbac.RoleBinding) error
- func (c *Client) ApplySecret(rsc *core.Secret) error
- func (c *Client) ApplyService(rsc *core.Service) error
- func (c *Client) ApplyServiceAccount(rsc *core.ServiceAccount) error
- func (c *Client) Available() bool
- func (c *Client) DeleteDeployment(namespace, name string) error
- func (c *Client) Drain(machine *Machine, node *core.Node) (err error)
- func (c *Client) EnsureDeleted(name string, machine *Machine, node NodeWithKubeadm, drain bool) (err error)
- func (c *Client) GetNode(id string) (node *core.Node, err error)
- func (c *Client) ListNodes(filterID ...string) (nodes []core.Node, err error)
- func (c *Client) Refresh(kubeconfig *string) (err error)
- func (c *Client) Uncordon(machine *Machine, node *core.Node) (err error)
- type Current
- type CurrentCluster
- type DesiredV0
- type File
- type IDFunc
- type KubernetesVersion
- func (k KubernetesVersion) DefineSoftware() common.Software
- func (k KubernetesVersion) ExtractMinor(monitor mntr.Monitor) (int, error)
- func (k KubernetesVersion) ExtractPatch(monitor mntr.Monitor) (int, error)
- func (k KubernetesVersion) NextHighestMinor() KubernetesVersion
- func (k KubernetesVersion) String() string
- type Machine
- type MachineMetadata
- type NodeWithKubeadm
- type NotAvailableError
- type Pool
- type Spec
- type Taint
- type Taints
- type Tier
- type Versions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶ added in v0.16.0
type Client struct {
// contains filtered or unexported fields
}
func NewK8sClient ¶ added in v0.16.0
func (*Client) ApplyClusterRole ¶ added in v0.16.0
func (c *Client) ApplyClusterRole(rsc *rbac.ClusterRole) error
func (*Client) ApplyClusterRoleBinding ¶ added in v0.16.0
func (c *Client) ApplyClusterRoleBinding(rsc *rbac.ClusterRoleBinding) error
func (*Client) ApplyDeployment ¶ added in v0.16.0
func (c *Client) ApplyDeployment(rsc *apps.Deployment) error
func (*Client) ApplyNamespace ¶ added in v0.16.0
func (*Client) ApplyRoleBinding ¶ added in v0.16.0
func (c *Client) ApplyRoleBinding(rsc *rbac.RoleBinding) error
func (*Client) ApplyService ¶ added in v0.19.2
func (*Client) ApplyServiceAccount ¶ added in v0.16.0
func (c *Client) ApplyServiceAccount(rsc *core.ServiceAccount) error
func (*Client) DeleteDeployment ¶ added in v0.16.0
func (*Client) EnsureDeleted ¶ added in v0.16.0
type Current ¶
type Current struct { Common orbiter.Common `yaml:",inline"` Current *CurrentCluster }
type CurrentCluster ¶
type DesiredV0 ¶
type DesiredV1 struct { Common orbiter.Common `yaml:",inline"` Spec struct { Verbose bool KubernetesVersion string Versions struct { Orbiter string Boom string } Networking struct { DNSDomain string Network string ServiceCidr orbiter.CIDR PodCidr orbiter.CIDR } ControlPlane Pool Workers []*Pool } }
type KubernetesVersion ¶ added in v0.16.0
type KubernetesVersion int
const ( Unknown KubernetesVersion = iota V1x15x0 V1x15x1 V1x15x2 V1x15x3 V1x15x4 V1x15x5 V1x15x6 V1x15x7 V1x15x8 V1x15x9 V1x16x0 V1x16x1 V1x16x2 V1x16x3 V1x16x4 V1x16x5 V1x16x6 V1x17x0 V1x17x1 V1x17x2 V1x18x0 )
func ParseString ¶ added in v0.16.0
func ParseString(version string) KubernetesVersion
func (KubernetesVersion) DefineSoftware ¶ added in v0.16.0
func (k KubernetesVersion) DefineSoftware() common.Software
func (KubernetesVersion) ExtractMinor ¶ added in v0.16.0
func (k KubernetesVersion) ExtractMinor(monitor mntr.Monitor) (int, error)
func (KubernetesVersion) ExtractPatch ¶ added in v0.16.0
func (k KubernetesVersion) ExtractPatch(monitor mntr.Monitor) (int, error)
func (KubernetesVersion) NextHighestMinor ¶ added in v0.16.0
func (k KubernetesVersion) NextHighestMinor() KubernetesVersion
func (KubernetesVersion) String ¶ added in v0.16.0
func (k KubernetesVersion) String() string
type Machine ¶ added in v0.16.0
type Machine struct { Joined bool Online bool FirewallIsReady bool NodeAgentIsRunning bool Metadata MachineMetadata `yaml:",inline"` }
type MachineMetadata ¶ added in v0.16.0
type NodeWithKubeadm ¶ added in v0.16.0
type NotAvailableError ¶ added in v0.16.0
type NotAvailableError struct{}
func (*NotAvailableError) Error ¶ added in v0.16.0
func (n *NotAvailableError) Error() string
type Taint ¶ added in v0.19.0
type Taint struct { Key string `yaml:"key"` Value string `yaml:"value,omitempty"` Effect core.TaintEffect `yaml:"effect"` }
Click to show internal directories.
Click to hide internal directories.