Documentation ¶
Overview ¶
Copyright The Pharmer Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright The Pharmer Authors.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- Constants
- func EncodeClusterSpec(spec *GCEClusterProviderSpec) (*runtime.RawExtension, error)
- func EncodeClusterStatus(status *GCEClusterProviderStatus) (*runtime.RawExtension, error)
- func EncodeMachineSpec(spec *GCEMachineProviderSpec) (*runtime.RawExtension, error)
- func SetGCEclusterProviderConfig(cluster *clusterapi.Cluster, project string, certs *certificates.Certificates) error
- type Disk
- type DiskInitializeParams
- type GCEClusterProviderSpec
- type GCEClusterProviderStatus
- type GCEMachineProviderSpec
- type KeyPair
Constants ¶
const ( GCEProviderGroupName = "gceproviderconfig" GCEClusterProviderKind = "GCEClusterProviderSpec" GCEMachineProviderKind = "GCEMachineProviderSpec" GCEProviderAPIVersion = "v1alpha1" )
Variables ¶
This section is empty.
Functions ¶
func EncodeClusterSpec ¶
func EncodeClusterSpec(spec *GCEClusterProviderSpec) (*runtime.RawExtension, error)
EncodeClusterSpec marshals the cluster provider spec.
func EncodeClusterStatus ¶
func EncodeClusterStatus(status *GCEClusterProviderStatus) (*runtime.RawExtension, error)
EncodeClusterStatus marshals the cluster status.
func EncodeMachineSpec ¶
func EncodeMachineSpec(spec *GCEMachineProviderSpec) (*runtime.RawExtension, error)
EncodeMachineSpec marshals the machine provider spec.
func SetGCEclusterProviderConfig ¶
func SetGCEclusterProviderConfig(cluster *clusterapi.Cluster, project string, certs *certificates.Certificates) error
SetGCEClusterProvidreConfig sets default gce cluster providerSpec
Types ¶
type Disk ¶
type Disk struct {
InitializeParams DiskInitializeParams `json:"initializeParams"`
}
type DiskInitializeParams ¶
type GCEClusterProviderSpec ¶
type GCEClusterProviderSpec struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Project string `json:"project"` // CAKeyPair is the key pair for CA certs. CAKeyPair KeyPair `json:"caKeyPair,omitempty"` // EtcdCAKeyPair is the key pair for etcd. EtcdCAKeyPair KeyPair `json:"etcdCAKeyPair,omitempty"` // FrontProxyCAKeyPair is the key pair for the front proxy. FrontProxyCAKeyPair KeyPair `json:"frontProxyCAKeyPair,omitempty"` // SAKeyPair is the service account key pair. SAKeyPair KeyPair `json:"saKeyPair,omitempty"` // AdminKubeconfig generated using the certificates part of the spec // do not move to status, since it uses on disk ca certs, which causes issues during regeneration AdminKubeconfig string `json:"adminKubeconfig,omitempty"` // DiscoveryHashes generated using the certificates part of the spec, used by master and nodes bootstrapping // this never changes until ca is rotated // do not move to status, since it uses on disk ca certs, which causes issues during regeneration DiscoveryHashes []string `json:"discoveryHashes,omitempty"` // ClusterConfiguration holds the cluster-wide information used during a // kubeadm init call. ClusterConfiguration kubeadmv1beta1.ClusterConfiguration `json:"clusterConfiguration,omitempty"` }
GCEClusterProviderSpec is the Schema for the gceclusterproviderconfigs API +k8s:openapi-gen=true
func ClusterConfigFromProviderSpec ¶
func ClusterConfigFromProviderSpec(providerConfig clusterapi.ProviderSpec) (*GCEClusterProviderSpec, error)
ClusterConfigFromProviderSpec unmarshals a provider config into an AWS Cluster type
type GCEClusterProviderStatus ¶
type GCEClusterProviderStatus struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` }
func ClusterStatusFromProviderStatus ¶
func ClusterStatusFromProviderStatus(extension *runtime.RawExtension) (*GCEClusterProviderStatus, error)
ClusterStatusFromProviderStatus unmarshals a raw extension into an AWS Cluster type
type GCEMachineProviderSpec ¶
type GCEMachineProviderSpec struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Roles []api.MachineRole `json:"roles,omitempty"` Zone string `json:"zone"` MachineType string `json:"machineType"` // The name of the OS to be installed on the machine. OS string `json:"os,omitempty"` Disks []Disk `json:"disks,omitempty"` }
GCEMachineProviderSpec is the Schema for the gcemachineproviderconfigs API +k8s:openapi-gen=true
func MachineConfigFromProviderSpec ¶
func MachineConfigFromProviderSpec(providerConfig clusterapi.ProviderSpec) (*GCEMachineProviderSpec, error)
MachineSpecFromProviderSpec unmarshals a raw extension into an AWS machine type