Documentation ¶
Index ¶
- Constants
- func IsAlreadyTerminated(err error) bool
- func IsDeleteFailed(err error) bool
- func IsDeleteInProgress(err error) bool
- func IsEmptyAmazonAccountID(err error) bool
- func IsInvalidConfig(err error) bool
- func IsMalformedAmazonAccountID(err error) bool
- func IsNotExists(err error) bool
- func IsNotFound(err error) bool
- func IsTooFewResults(err error) bool
- func IsTooManyResults(err error) bool
- func IsUpdateInProgress(err error) bool
- func IsWrongAmazonAccountIDLength(err error) bool
- func IsWrongType(err error) bool
- type Config
- type ConfigAPIWhitelist
- type ConfigAPIWhitelistSecurityGroup
- type Resource
Constants ¶
const (
// Name is the identifier of the resource.
Name = "tccp"
)
Variables ¶
This section is empty.
Functions ¶
func IsAlreadyTerminated ¶
IsAlreadyTerminated asserts alreadyTerminatedError. Here we also check for the AWS error code IncorrectInstanceState. The AWS errors might look like the following example.
IncorrectInstanceState: The instance 'i-0b26c88f3546aefee' must be in a 'running', 'pending', 'stopping' or 'stopped' state for this operation.
func IsDeleteFailed ¶
IsDeleteFailed asserts eventCFDeleteError.
func IsDeleteInProgress ¶
IsDeleteInProgress asserts deleteInProgressError.
func IsEmptyAmazonAccountID ¶
IsEmptyAmazonAccountID asserts emptyAmazonAccountIDError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsMalformedAmazonAccountID ¶
IsMalformedAmazonAccountID asserts malformedAmazonAccountIDError.
func IsTooFewResults ¶
IsTooFewResults asserts tooFewResultsError.
func IsTooManyResults ¶
IsTooManyResults asserts tooManyResultsError.
func IsUpdateInProgress ¶
IsUpdateInProgress asserts updateInProgressError.
func IsWrongAmazonAccountIDLength ¶
IsWrongAmazonAccountIDLength asserts wrongAmazonAccountIDLengthError.
Types ¶
type Config ¶
type Config struct { CloudTags cloudtags.Interface Event event.Interface CtrlClient ctrlClient.Client HAMaster hamaster.Interface K8sClient k8sclient.Interface Logger micrologger.Logger APIWhitelist ConfigAPIWhitelist CIDRBlockAWSCNI string Detection *changedetection.TCCP InstallationName string InstanceMonitoring bool PublicRouteTables string Route53Enabled bool }
Config represents the configuration used to create a new cloudformation resource.
type ConfigAPIWhitelist ¶
type ConfigAPIWhitelist struct { Private ConfigAPIWhitelistSecurityGroup Public ConfigAPIWhitelistSecurityGroup }
ConfigAPIWhitelist defines guest cluster k8s public/private api whitelisting.
type ConfigAPIWhitelistSecurityGroup ¶
ConfigAPIWhitelistSecurityGroup represents the structure required for defining whitelisting for resource security group
type Resource ¶
type Resource struct {
// contains filtered or unexported fields
}
Resource implements the cloudformation resource.