package
0.8.1
Repository: https://github.com/berops/claudie.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
CloseClientConnection is a wrapper around grpc.ClientConn Close function.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CreateKeyFile writes the given key to a file.
CreateKeysForStaticNodepools creates private keys files for all nodes in the provided static node pools in form of <node name>.pem.
CreateLoggerWithClusterName creates a new logger aware of the cluster-name.
CreateLoggerWithProjectAndClusterName creates a new logger aware of the project-name and cluster-name.
CreateLoggerWithProjectName creates a new logger aware of the project-name.
FindAPIEndpointNode searches the NodePools for a Node with type ApiEndpoint.
FindControlNode search the nodepools for a node with type Master.
FindControlNodepools returns control nodepools.
FindEndpointNode searches the nodes of the nodepool for a node with type ApiEndpoint.
No description provided by the author
FindName will return a real node name based on the user defined one example: name defined in cloud provider: gcp-control-1 -> name defined in cluster : gcp-control-1.
FindNodepoolWithApiEndpointNode searches for a nodepool that has the control node representing the Api endpoint of the cluster.
GetClusterByName will return index of Cluster that will have same name as specified in parameters If no name is found, return -1.
No description provided by the author
GetCommonDynamicNodePools returns slice of common node pools, where every node pool is dynamic.
GetCommonStaticNodePools returns slice of common node pools, where every node pool is static.
GetDynamicNodePools returns slice of dynamic node pools.
GetDynamicNodePoolsFromCI returns slice of dynamic node pools used in specified cluster info.
GetEnvDefault take a string representing environment variable as an argument, and a default value If the environment variable is not defined, it returns the provided default value.
GetLBClusterByName will return index of Cluster that will have same name as specified in parameters If no name is found, return -1.
No description provided by the author
GetNodePoolByName will return first Nodepool that will have same name as specified in parameters If no name is found, return nil.
GetRegions will return a list of all regions used in list of nodepools.
watchNamespaceList takes a string input of the form "namespace1,namespace-2,namespace3" and splits it into a slice of strings based on the comma separator.
GroupNodepoolsByProviderNames groups nodepool by provider spec name into the map[Provider Names][]*pb.Nodepool.
GroupNodepoolsByProviderRegion groups nodepool by cloud provider instance name and region into the map[<provider-instance-name>-<region>][]*pb.Nodepool.
GroupNodepoolsByProviderSpecName groups nodepool by provider spec name into the map[Provider Name][]*pb.Nodepool.
GrpcDialWithRetryAndBackoff creates an insecure gRPC connection to serviceURL After successfully connected, any RPC calls made from this connection also have a retry policy of ~10 minutes after which an error is returned that it couldn't connect to the service.
HasAPIServerRole checks if there is an API server role.
HasLbAPIEndpoint searches for a role with ApiEndpoint among the LBcluster.
Initialize the logging framework.
Into traverse the elements in k and calls the supplied function f to convert them into elements if type V.
IsAutoscaled returns true, if cluster has at least one nodepool with autoscaler config.
No description provided by the author
IsNodepoolOnlyTargetOfLbAPI checks if nodepool is the only target Pool of the API LB cluster.
No description provided by the author
MergeMaps merges two or more maps together, into single map.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
SanitiseKubeconfig replaces the entire kubeconfig found after the '--kubeconfig' flag with '*****'.
sanitiseString replaces all white spaces and ":" in the string to "-", and converts everything to lower case.
SanitiseURI replaces passwords with '*****' in connection strings that are in the form of <scheme>://<username>:<password>@<domain>.<tld> or <scheme>://<username>:<password>@<pqdn>.
No description provided by the author

# Constants

No description provided by the author

# Variables

No description provided by the author

# Structs

ClusterView contains the per-cluster view on a given config.
ProviderNames struct hold pair of cloud provider name and user defined name from manifest.