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"`
}
type KlusterInfo ¶
type KlusterInfo struct {
State KlusterState `json:"state,omitempty"`
Message string `json:"message,omitempty"`
}
type KlusterList ¶
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 NodePoolInfo ¶
Source Files
¶
- constants.go
- kluster.go
- register.go
Click to show internal directories.
Click to hide internal directories.