aws

package
v0.5.2 Latest Latest
Warning

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

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

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.

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.

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.

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.

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

View Source
const (
	// IAMMasterPolicy Defines the permissions for master instance
	// ref: https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/63e7427256d75a5812aee61853de03473dbfb86a/pkg/cloud/aws/services/cloudformation/bootstrap.go#L222
	IAMMasterPolicy = `` /* 3130-byte string literal not displayed */

	IAMControllerPolicy = `` /* 2945-byte string literal not displayed */

	IAMMasterRole = `` /* 192-byte string literal not displayed */

	//ref: https://github.com/kubernetes-sigs/cluster-api-provider-aws/blob/63e7427256d75a5812aee61853de03473dbfb86a/pkg/cloud/aws/services/cloudformation/bootstrap.go#L292
	IAMNodePolicy = `` /* 588-byte string literal not displayed */

	IAMNodeRole = `` /* 192-byte string literal not displayed */

)
View Source
const ControllerManager = `` /* 68866-byte string literal not displayed */

ControllerManager defines the clusterapi crds and controllers

View Source
const (
	UID = "aws"
)

Variables

View Source
var AddToManagerFuncs []func(context.Context, manager.Manager) error

AddToManagerFuncs is a list of functions to add all Controllers to the Manager

Functions

func New

func New(s *cloud.Scope) cloud.Interface

Types

type ClusterManager

type ClusterManager struct {
	*cloud.Scope
	// contains filtered or unexported fields
}

func (*ClusterManager) AddToManager

func (cm *ClusterManager) AddToManager(m manager.Manager) error

AddToManager adds all Controllers to the Manager

func (*ClusterManager) ApplyDelete

func (cm *ClusterManager) ApplyDelete() error

func (*ClusterManager) ApplyScale

func (cm *ClusterManager) ApplyScale() error

func (*ClusterManager) CreateCredentials

func (cm *ClusterManager) CreateCredentials(kc kubernetes.Interface) error

Required for cluster-api controller

func (*ClusterManager) EnsureMaster

func (cm *ClusterManager) EnsureMaster(leaderMachine *v1alpha1.Machine) error

func (*ClusterManager) GetClusterAPIComponents

func (cm *ClusterManager) GetClusterAPIComponents() (string, error)

func (*ClusterManager) GetDefaultMachineProviderSpec

func (cm *ClusterManager) GetDefaultMachineProviderSpec(sku string, role api.MachineRole) (clusterapi.ProviderSpec, error)

func (*ClusterManager) GetKubeConfig

func (cm *ClusterManager) GetKubeConfig() (*api.KubeConfig, error)

func (*ClusterManager) GetMasterSKU

func (cm *ClusterManager) GetMasterSKU(totalNodes int32) string

func (*ClusterManager) NewMasterTemplateData

func (cm *ClusterManager) NewMasterTemplateData(machine *clusterapi.Machine, token string, td cloud.TemplateData) cloud.TemplateData

func (*ClusterManager) NewNodeTemplateData

func (cm *ClusterManager) NewNodeTemplateData(machine *clusterapi.Machine, token string, td cloud.TemplateData) cloud.TemplateData

func (*ClusterManager) PrepareCloud

func (cm *ClusterManager) PrepareCloud() error

func (*ClusterManager) SetCloudConnector

func (cm *ClusterManager) SetCloudConnector() error

func (*ClusterManager) SetClusterProviderConfig

func (cm *ClusterManager) SetClusterProviderConfig() error

func (*ClusterManager) SetDefaultCluster

func (cm *ClusterManager) SetDefaultCluster() error

func (*ClusterManager) SetDefaults

func (cm *ClusterManager) SetDefaults(cluster *api.Cluster) error

Jump to

Keyboard shortcuts

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