Documentation ¶
Index ¶
Constants ¶
View Source
const (
NodeAnnotationInstanceID = "node.beta.kubernetes.io/instance-id"
)
Variables ¶
This section is empty.
Functions ¶
func NodeNameToInstanceID ¶
func NodeNameToInstanceID(name string, nodeLister corev1lister.NodeLister) string
Make sure qingcloud instance hostname or override-hostname (if provided) is equal to InstanceId Recommended to use override-hostname
Types ¶
type Instance ¶
type Instance struct { Name string Status *qcservice.Instance // contains filtered or unexported fields }
func NewInstance ¶
func NewInstance(api *qcservice.InstanceService, nodeLister corev1lister.NodeLister, name string, isApp bool) *Instance
func (*Instance) GetInstanceID ¶
func (*Instance) GetK8sAddress ¶
func (i *Instance) GetK8sAddress() ([]v1.NodeAddress, error)
func (*Instance) LoadQcInstance ¶
func (*Instance) LoadQcInstanceByID ¶
type InstanceSpec ¶
type InstanceSpec struct { }
Click to show internal directories.
Click to hide internal directories.