Documentation ¶
Index ¶
Constants ¶
View Source
const TagClusterName = "KubernetesCluster"
View Source
const TagNameEtcdClusterPrefix = "k8s.io/etcd/"
View Source
const TagNameRolePrefix = "k8s.io/role/"
View Source
const TagRoleMaster = "master"
Variables ¶
View Source
var KubernetesKopsIdentity = fmt.Sprintf("Kubernetes.Kops/%s", prj.Version)
This is for statistic purpose.
Functions ¶
func FindAutoscalingGroups ¶
func FindAutoscalingGroups(c ALICloud) ([]ess.ScalingGroupItemType, error)
FindAutoscalingGroups finds autoscaling groups matching the specified tags This isn't entirely trivial because autoscaling doesn't let us filter with as much precision as we would like
func FindRegion ¶
FindRegion determines the region from the zones specified in the cluster
Types ¶
type ALIAPITarget ¶
type ALIAPITarget struct {
Cloud ALICloud
}
func NewALIAPITarget ¶
func NewALIAPITarget(cloud ALICloud) *ALIAPITarget
func (*ALIAPITarget) ProcessDeletions ¶
func (t *ALIAPITarget) ProcessDeletions() bool
type ALICloud ¶
type ALICloud interface { fi.Cloud EcsClient() *ecs.Client SlbClient() *slb.Client RamClient() *ram.RamClient EssClient() *ess.Client Region() string AddClusterTags(tags map[string]string) GetTags(resourceId string, resourceType string) (map[string]string, error) CreateTags(resourceId string, resourceType string, tags map[string]string) error RemoveTags(resourceId string, resourceType string, tags map[string]string) error GetClusterTags() map[string]string FindClusterStatus(cluster *kops.Cluster) (*kops.ClusterStatus, error) GetApiIngressStatus(cluster *kops.Cluster) ([]kops.ApiIngressStatus, error) }
Click to show internal directories.
Click to hide internal directories.