v1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "kubernikus.sap.cc"

GroupName is the group name for the Ark API

View Source
const (
	KlusterResourcePlural = "klusters"
)

Variables

View Source
var (
	// SchemeBuilder collects the scheme builder functions for the Ark API
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)

	// AddToScheme applies the SchemeBuilder functions to a specified scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}

SchemeGroupVersion is the GroupVersion for the Ark API

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource gets an Ark GroupResource for a specified resource

Types

type Kluster

type Kluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              KlusterSpec   `json:"spec"`
	Status            KlusterStatus `json:"status,omitempty"`
}

func (Kluster) Account

func (spec Kluster) Account() string

func (Kluster) ApiServiceIP

func (spec Kluster) ApiServiceIP() (net.IP, error)

type KlusterInfo

type KlusterInfo struct {
	State   KlusterState `json:"state,omitempty"`
	Message string       `json:"message,omitempty"`
}

type KlusterList

type KlusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []Kluster `json:"items"`
}

type KlusterSpec

type KlusterSpec struct {
	Name             string        `json:"name"`
	Domain           string        `json:"domain"`
	ClusterCIDR      string        `json:"clusterCIDR"`
	ClusterDNS       string        `json:"clusterDNS"`
	ClusterDNSDomain string        `json:"clusterDNSDomain"`
	ServiceCIDR      string        `json:"serviceCIDR"`
	AdvertiseAddress string        `json:"advertiseAddress"`
	Version          string        `json:"version"`
	NodePools        []NodePool    `json:"nodePools,omitempty"`
	Openstack        OpenstackSpec `json:"openstack,omitempty"`
}

func (KlusterSpec) Validate

func (spec KlusterSpec) Validate() error

type KlusterState

type KlusterState string
const (
	KlusterPending     KlusterState = "Pending"
	KlusterCreating    KlusterState = "Creating"
	KlusterReady       KlusterState = "Ready"
	KlusterTerminating KlusterState = "Terminating"
	KlusterTerminated  KlusterState = "Terminated"
	KlusterError       KlusterState = "Error"
)

type KlusterStatus

type KlusterStatus struct {
	Kluster   KlusterInfo    `json:"kluster"`
	Apiserver string         `json:"apiserver"`
	Wormhole  string         `json:"wormhole"`
	NodePools []NodePoolInfo `json:"nodePools,omitempty"`
}

type NodePool

type NodePool struct {
	Name   string         `json:"name"`
	Size   int            `json:"size"`
	Flavor string         `json:"flavor"`
	Image  string         `json:"image"`
	Config NodePoolConfig `json:"config"`
}

type NodePoolConfig

type NodePoolConfig struct {
	Upgrade bool `json:"upgrade"`
	Repair  bool `json:"repair"`
}

type NodePoolInfo

type NodePoolInfo struct {
	Name        string `json:"name"`
	Size        int    `json:size`
	Running     int    `json:running`
	Healthy     int    `json:healthy`
	Schedulable int    `json:schedulable`
}

type OpenstackSpec

type OpenstackSpec struct {
	ProjectID  string `json:"projectID"`
	RouterID   string `json:"routerID"`
	NetworkID  string `json:"networkID"`
	LBSubnetID string `json:"lbSubnetID"`
}

Source Files

  • constants.go
  • kluster.go
  • register.go

Jump to

Keyboard shortcuts

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