package clusterconfig
import "github.com/oslokommune/okctl/pkg/clusterconfig"
Package clusterconfig knows how to construct a clusterconfiguration
Index ¶
- func DotToDash(str string) string
- func New(a *Args) (*v1alpha5.ClusterConfig, error)
- func NewAWSLoadBalancerControllerServiceAccount(clusterName, region, permissionsBoundaryArn string, policyArns []string) (*v1alpha5.ClusterConfig, error)
- func NewAlbIngressControllerServiceAccount(clusterName, region, permissionsBoundaryArn string, policyArns []string) (*v1alpha5.ClusterConfig, error)
- func NewAutoscalerServiceAccount(clusterName, region, permissionsBoundaryArn string, policyArns []string) (*v1alpha5.ClusterConfig, error)
- func NewBlockstorageServiceAccount(clusterName, region, permissionsBoundaryArn string, policyArns []string) (*v1alpha5.ClusterConfig, error)
- func NewCloudwatchDatasourceServiceAccount(clusterName, region, namespace, permissionsBoundaryArn string, policyArns []string) (*v1alpha5.ClusterConfig, error)
- func NewExternalDNSServiceAccount(clusterName, region, permissionsBoundaryArn string, policyArns []string) (*v1alpha5.ClusterConfig, error)
- func NewExternalSecretsServiceAccount(clusterName, region, permissionsBoundaryArn string, policyArns []string) (*v1alpha5.ClusterConfig, error)
- func NewLokiServiceAccount(clusterName, region, namespace, permissionsBoundaryARN string, policyARNs []string) (*v1alpha5.ClusterConfig, error)
- func NewServiceAccount(a *ServiceAccountArgs) (*v1alpha5.ClusterConfig, error)
- func TypeMeta() metav1.TypeMeta
- type Args
- type ServiceAccountArgs
Functions ¶
func DotToDash ¶
DotToDash replaces dots with dashes
func New ¶
func New(a *Args) (*v1alpha5.ClusterConfig, error)
New initialises the creation of a new cluster config
func NewAWSLoadBalancerControllerServiceAccount ¶
func NewAWSLoadBalancerControllerServiceAccount(clusterName, region, permissionsBoundaryArn string, policyArns []string) (*v1alpha5.ClusterConfig, error)
NewAWSLoadBalancerControllerServiceAccount returns an initialised configuration for creating an aws-load-balancer-controller service account
func NewAlbIngressControllerServiceAccount ¶
func NewAlbIngressControllerServiceAccount(clusterName, region, permissionsBoundaryArn string, policyArns []string) (*v1alpha5.ClusterConfig, error)
NewAlbIngressControllerServiceAccount returns an initialised configuration for creating an aws-alb-ingress-controller service account
func NewAutoscalerServiceAccount ¶
func NewAutoscalerServiceAccount(clusterName, region, permissionsBoundaryArn string, policyArns []string) (*v1alpha5.ClusterConfig, error)
NewAutoscalerServiceAccount returns an initialised configuration for creating a cluster autoscaler service account
func NewBlockstorageServiceAccount ¶
func NewBlockstorageServiceAccount(clusterName, region, permissionsBoundaryArn string, policyArns []string) (*v1alpha5.ClusterConfig, error)
NewBlockstorageServiceAccount returns an initialised configuration for creating a cluster Blockstorage service account
func NewCloudwatchDatasourceServiceAccount ¶
func NewCloudwatchDatasourceServiceAccount(clusterName, region, namespace, permissionsBoundaryArn string, policyArns []string) (*v1alpha5.ClusterConfig, error)
NewCloudwatchDatasourceServiceAccount returns an initialised configuration for creating a cluster CloudwatchDatasource service account
func NewExternalDNSServiceAccount ¶
func NewExternalDNSServiceAccount(clusterName, region, permissionsBoundaryArn string, policyArns []string) (*v1alpha5.ClusterConfig, error)
NewExternalDNSServiceAccount returns an initialised configuration for creating an external-dns service account
func NewExternalSecretsServiceAccount ¶
func NewExternalSecretsServiceAccount(clusterName, region, permissionsBoundaryArn string, policyArns []string) (*v1alpha5.ClusterConfig, error)
NewExternalSecretsServiceAccount returns an initialised configuration for creating an external secrets service account
func NewLokiServiceAccount ¶
func NewLokiServiceAccount(clusterName, region, namespace, permissionsBoundaryARN string, policyARNs []string) (*v1alpha5.ClusterConfig, error)
NewLokiServiceAccount returns an initialized configuration for creating a service account used by Loki to manipulate S3 and DynamoDB
func NewServiceAccount ¶
func NewServiceAccount(a *ServiceAccountArgs) (*v1alpha5.ClusterConfig, error)
NewServiceAccount returns an initialised cluster config for creating a service account with an associated IAM managed policy
func TypeMeta ¶
TypeMeta returns the defaults
Types ¶
type Args ¶
type Args struct { ClusterName string PermissionsBoundaryARN string PrivateSubnets []api.VpcSubnet PublicSubnets []api.VpcSubnet Region string Version string VpcCidr string VpcID string }
Args contains the input arguments for creating a valid cluster configuration
type ServiceAccountArgs ¶
type ServiceAccountArgs struct { ClusterName string Labels map[string]string Name string Namespace string PermissionsBoundaryArn string PolicyArns []string Region string }
ServiceAccountArgs contains the arguments for creating a valid service account
Source Files ¶
- Version
- v0.0.106 (latest)
- Published
- Oct 21, 2022
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 5 days ago –
Tools for package owners.