Documentation
¶
Index ¶
- func GenAuthHeaders(token string) map[string]string
- func NewGlobalHelper(opts ...Option) error
- type Annotations
- type Auth
- type ChartValues
- type Cilium
- type CloudCredential
- type Cluster
- type ClusterResponse
- type Config
- type ControlPlaneDrainOptions
- type DataDirectories
- type Etcd
- type Helper
- func (h *Helper) ActivateNodeDriver(name string) error
- func (h *Helper) CreateCloudCredential(credential *CloudCredential) (*CloudCredential, error)
- func (h *Helper) CreateKubernetes(cluster *Cluster) (*ClusterResponse, error)
- func (h *Helper) CreateOpenstackMachine(provider *OpenstackMachine) (*OpenstackMachineResponse, error)
- func (h *Helper) DeleteKubernetes(name string) error
- func (h *Helper) GetKubernetesConfig(name string) ([]byte, error)
- func (h *Helper) WaitKubernetesActive(name string) (*StatusResponse, error)
- func (h *Helper) WaitKubernetesDeleted(name string) error
- func (h *Helper) WaitNodeDriverStatus(name, state string, timeout int) error
- type Ipv6
- type Labels
- type LocalClusterAuthEndpoint
- type MachineConfigRef
- type MachineGlobalConfig
- type MachinePool
- type MachineSelectorConfig
- type Metadata
- type MirrorTo
- type NodeDriver
- type NodeDriversResp
- type OpenstackCredentialConfig
- type OpenstackMachine
- type OpenstackMachineResponse
- type Option
- type Options
- type Registries
- type Rke2Cilium
- type RkeConfig
- type S3
- type Spec
- type Status
- type StatusResponse
- type UpgradeStrategy
- type WorkerDrainOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenAuthHeaders ¶
func NewGlobalHelper ¶
Types ¶
type Annotations ¶
type Annotations struct {
ProvisioningCattleIoDriver string `json:"provisioning.cattle.io/driver,omitempty"`
}
type ChartValues ¶
type ChartValues struct {
Rke2Cilium `json:"rke2-cilium"`
}
type CloudCredential ¶
type CloudCredential struct { Id string `json:"id"` Uuid string `json:"uuid"` Name string `json:"name"` Type string `json:"type"` BaseType string `json:"baseType"` Metadata `json:"metadata"` Annotations `json:"annotations"` OpenstackCredentialConfig `json:"openstackcredentialConfig"` Created string `json:"created"` }
func (*CloudCredential) Bytes ¶
func (c *CloudCredential) Bytes() ([]byte, error)
type ClusterResponse ¶
type Config ¶
type Config struct {
ProtectKernelDefaults bool `json:"protect-kernel-defaults,omitempty"`
}
type ControlPlaneDrainOptions ¶
type ControlPlaneDrainOptions struct { DeleteEmptyDirData bool `json:"deleteEmptyDirData"` DisableEviction bool `json:"disableEviction"` Enabled bool `json:"enabled"` Force bool `json:"force"` GracePeriod int `json:"gracePeriod"` IgnoreDaemonSets bool `json:"ignoreDaemonSets"` SkipWaitForDeleteTimeoutSecs int `json:"skipWaitForDeleteTimeoutSeconds"` Timeout int `json:"timeout"` }
type DataDirectories ¶
type Helper ¶
func GetGlobalHelper ¶
func GetGlobalHelper() *Helper
func (*Helper) ActivateNodeDriver ¶
func (*Helper) CreateCloudCredential ¶
func (h *Helper) CreateCloudCredential(credential *CloudCredential) (*CloudCredential, error)
func (*Helper) CreateKubernetes ¶
func (h *Helper) CreateKubernetes(cluster *Cluster) (*ClusterResponse, error)
func (*Helper) CreateOpenstackMachine ¶
func (h *Helper) CreateOpenstackMachine(provider *OpenstackMachine) (*OpenstackMachineResponse, error)
func (*Helper) DeleteKubernetes ¶
func (*Helper) GetKubernetesConfig ¶
func (*Helper) WaitKubernetesActive ¶
func (h *Helper) WaitKubernetesActive(name string) (*StatusResponse, error)
func (*Helper) WaitKubernetesDeleted ¶
type MachineConfigRef ¶
type MachineGlobalConfig ¶
type MachinePool ¶
type MachinePool struct { Name string `json:"name"` EtcdRole bool `json:"etcdRole"` ControlPlaneRole bool `json:"controlPlaneRole"` WorkerRole bool `json:"workerRole"` HostnamePrefix string `json:"hostnamePrefix"` Labels `json:"labels"` Quantity int `json:"quantity"` UnhealthyNodeTime string `json:"unhealthyNodeTimeout"` MachineConfigRef `json:"machineConfigRef"` DrainBeforeDelete bool `json:"drainBeforeDelete"` }
type MachineSelectorConfig ¶
type MachineSelectorConfig struct {
Config `json:"config"`
}
type Metadata ¶
type Metadata struct { Name string `json:"name"` Annotations `json:"annotations"` Finalizers []string `json:"finalizers,omitempty"` GenerateName string `json:"generateName,omitempty"` Labels `json:"labels"` ManagedFields []any `json:"managedFields,omitempty"` Namespace string `json:"namespace"` OwnerReferences []string `json:"ownerReferences,omitempty"` }
type NodeDriver ¶
type NodeDriversResp ¶
type NodeDriversResp struct {
NodeDrivers []NodeDriver `json:"data"`
}
type OpenstackCredentialConfig ¶
type OpenstackCredentialConfig struct {
Password string `json:"password"`
}
type OpenstackMachine ¶
type OpenstackMachine struct { ActiveTimeout string `json:"activeTimeout"` AuthUrl string `json:"authUrl"` EndpointType string `json:"endpointType"` FlavorName string `json:"flavorName"` FloatingipPool string `json:"floatingipPool"` ImageName string `json:"imageName"` Insecure bool `json:"insecure"` IpVersion string `json:"ipVersion"` Metadata `json:"metadata"` NetId string `json:"netId"` SecGroups string `json:"secGroups"` SshPort string `json:"sshPort"` SshUser string `json:"sshUser"` TenantId string `json:"tenantId"` UserId string `json:"userId"` Type string `json:"type"` }
func (*OpenstackMachine) Bytes ¶
func (p *OpenstackMachine) Bytes() ([]byte, error)
type Registries ¶
type Rke2Cilium ¶
type Rke2Cilium struct {
Cilium `json:"cilium,omitempty"`
}
type RkeConfig ¶
type RkeConfig struct { ChartValues `json:"chartValues"` UpgradeStrategy `json:"upgradeStrategy"` DataDirectories `json:"dataDirectories"` MachineGlobalConfig `json:"machineGlobalConfig"` MachineSelectorConfig []MachineSelectorConfig `json:"machineSelectorConfig"` Etcd `json:"etcd"` Registries `json:"registries"` MachinePools []MachinePool `json:"machinePools"` }
type Spec ¶
type Spec struct { RkeConfig `json:"rkeConfig"` MachineSelectorConfig []MachineSelectorConfig `json:"machineSelectorConfig"` KubernetesVersion string `json:"kubernetesVersion"` DefaultPodSecurityPolicyTemplateName string `json:"defaultPodSecurityPolicyTemplateName"` DefaultPodSecurityAdmissionConfigurationTemplateName string `json:"defaultPodSecurityAdmissionConfigurationTemplateName"` CloudCredentialSecretName string `json:"cloudCredentialSecretName"` LocalClusterAuthEndpoint `json:"localClusterAuthEndpoint"` }
type StatusResponse ¶
type UpgradeStrategy ¶
type UpgradeStrategy struct { ControlPlaneConcurrency string `json:"controlPlaneConcurrency"` ControlPlaneDrainOptions `json:"controlPlaneDrainOptions"` WorkerConcurrency string `json:"workerConcurrency"` WorkerDrainOptions `json:"workerDrainOptions"` }
type WorkerDrainOptions ¶
type WorkerDrainOptions struct { DeleteEmptyDirData bool `json:"deleteEmptyDirData"` DisableEviction bool `json:"disableEviction"` Enabled bool `json:"enabled"` Force bool `json:"force"` GracePeriod int `json:"gracePeriod"` IgnoreDaemonSets bool `json:"ignoreDaemonSets"` SkipWaitForDeleteTimeoutSecs int `json:"skipWaitForDeleteTimeoutSeconds"` Timeout int `json:"timeout"` }
Click to show internal directories.
Click to hide internal directories.