Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions config/v1/0000_10_config-operator_01_infrastructure.crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,37 @@ spec:
description: region holds the default AWS region for new AWS
resources created by the cluster.
type: string
resourceTags:
description: resourceTags is a list of additional tags to
apply to AWS resources created for the cluster. See https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html
for information on tagging AWS resources. AWS supports a
maximum of 50 tags per resource. OpenShift reserves 25 tags
for its use, leaving 25 tags available for the user.
type: array
maxItems: 25
items:
description: AWSResourceTag is a tag to apply to AWS resources
created for the cluster.
type: object
required:
- key
- value
properties:
key:
description: key is the key of the tag
type: string
maxLength: 128
minLength: 1
pattern: ^[0-9A-Za-z_.:/=+-@]+$
value:
description: value is the value of the tag. Some AWS
service do not support empty values. Since tags are
added to resources in many services, the length of
the tag value must meet the requirements of all services.
type: string
maxLength: 256
minLength: 1
pattern: ^[0-9A-Za-z_.:/=+-@]+$
serviceEndpoints:
description: ServiceEndpoints list contains custom endpoints
which will override default service endpoint of AWS Services.
Expand Down
28 changes: 28 additions & 0 deletions config/v1/types_infrastructure.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,34 @@ type AWSPlatformStatus struct {
// There must be only one ServiceEndpoint for a service.
// +optional
ServiceEndpoints []AWSServiceEndpoint `json:"serviceEndpoints,omitempty"`

// resourceTags is a list of additional tags to apply to AWS resources created for the cluster.
// See https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html for information on tagging AWS resources.
// AWS supports a maximum of 50 tags per resource. OpenShift reserves 25 tags for its use, leaving 25 tags
// available for the user.
// +kubebuilder:validation:MaxItems=25
// +optional
ResourceTags []AWSResourceTag `json:"resourceTags,omitempty"`
}

// AWSResourceTag is a tag to apply to AWS resources created for the cluster.
type AWSResourceTag struct {
// key is the key of the tag
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=128
// +kubebuilder:validation:Pattern=`^[0-9A-Za-z_.:/=+-@]+$`
// +required
Key string `json:"key"`
// value is the value of the tag.
// Some AWS service do not support empty values. Since tags are added to resources in many services, the
// length of the tag value must meet the requirements of all services.
// +kubebuilder:validation:Required
// +kubebuilder:validation:MinLength=1
// +kubebuilder:validation:MaxLength=256
// +kubebuilder:validation:Pattern=`^[0-9A-Za-z_.:/=+-@]+$`
// +required
Value string `json:"value"`
}

// AzurePlatformSpec holds the desired state of the Azure infrastructure provider.
Expand Down
21 changes: 21 additions & 0 deletions config/v1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions config/v1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.