rancher

package
v0.0.2-pre Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RequestsAnnotation = "management.cattle.io/pod-requests"
	LimitsAnnotation   = "management.cattle.io/pod-limits"
)
View Source
const (
	VipConfigmapName = "vip"
)

Variables

View Source
var UpdateRancherUISettings = map[string]string{
	"ui-pl": "Harvester",
}

Functions

func Register

func Register(ctx context.Context, management *config.Management, options config.Options) error

Types

type Handler

type Handler struct {
	RancherSettings          rancherv3.SettingClient
	RancherSettingCache      rancherv3.SettingCache
	RancherSettingController rancherv3.SettingController
	RancherUserCache         rancherv3.UserCache

	Services    ctlcorev1.ServiceClient
	Configmaps  ctlcorev1.ConfigMapClient
	Secrets     ctlcorev1.SecretClient
	SecretCache ctlcorev1.SecretCache

	Namespace string
	// contains filtered or unexported fields
}

func (*Handler) PodResourcesOnChanged

func (h *Handler) PodResourcesOnChanged(key string, node *corev1.Node) (*corev1.Node, error)

func (*Handler) RancherSettingOnChange

func (h *Handler) RancherSettingOnChange(key string, setting *rancherv3api.Setting) (*rancherv3api.Setting, error)

func (*Handler) TLSSecretOnChange

func (h *Handler) TLSSecretOnChange(_ string, secret *corev1.Secret) (*corev1.Secret, error)

type VIPConfig

type VIPConfig struct {
	Enabled        string             `json:"enabled,omitempty"`
	ServiceType    corev1.ServiceType `json:"serviceType,omitempty"`
	IP             string             `json:"ip,omitempty"`
	Mode           string             `json:"mode,omitempty"`
	HwAddress      string             `json:"hwAddress,omitempty"`
	LoadBalancerIP string             `json:"loadBalancerIP,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL