Skip to content

Commit

Permalink
feat(ec2/securitygroup)!: Make region a required field
Browse files Browse the repository at this point in the history
Signed-off-by: Henrique Oliveira <henrique.antonio@grupoboticario.com.br>
  • Loading branch information
haooliveira84 authored and MisterMX committed Mar 18, 2024
1 parent 63b23e4 commit 9b5c908
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions apis/ec2/v1beta1/securitygroup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,9 @@ import (
// SecurityGroupParameters define the desired state of an AWS VPC Security
// Group.
type SecurityGroupParameters struct {
// TODO(muvaf): Region is a required field but in order to keep backward compatibility
// with old Provider type and not bear the cost of bumping to v1beta2, we're
// keeping it optional for now. Reconsider before v1beta2 or v1.

// Region is the region you'd like your SecurityGroup to be created in.
// +optional
Region *string `json:"region,omitempty"`
Region *string `json:"region"`

// A description of the security group.
// +immutable
Expand Down
1 change: 1 addition & 0 deletions package/crds/ec2.aws.crossplane.io_securitygroups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,7 @@ spec:
required:
- description
- groupName
- region
type: object
managementPolicies:
default:
Expand Down

0 comments on commit 9b5c908

Please sign in to comment.