-
Notifications
You must be signed in to change notification settings - Fork 6
Add networkpool support on AWS Clusters #577
Conversation
Some thoughts.
|
I created some tests, thanks for reminding 👍 I am checking that setting an empty value for the NetworkPool produces same output as not even specifying the attribute in order to test optionality. The second test I added is to check that the CR is correctly generated when specifying a NetworkPool |
@@ -144,3 +154,86 @@ func newAWSClusterExampleCR() *AWSCluster { | |||
|
|||
return cr | |||
} | |||
|
|||
func newAWSClusterEmptyNetworkPoolCR() *AWSCluster { | |||
awscluster := newAWSClusterExampleCR() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just FMI why do we have newAWSClusterExampleCR
and NewAWSClusterCR
? 🙈
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see in
apiextensions/pkg/apis/infrastructure/v1alpha2/aws_cluster_types.go
Lines 27 to 37 in 58f996a
// NewAWSClusterCR returns an AWSCluster Custom Resource. | |
func NewAWSClusterCR() *AWSCluster { | |
return &AWSCluster{ | |
ObjectMeta: metav1.ObjectMeta{ | |
Annotations: map[string]string{ | |
annotation.Docs: awsClusterDocumentationLink, | |
}, | |
}, | |
TypeMeta: NewAWSClusterTypeMeta(), | |
} | |
} |
NewAWSClusterCR
. /shrug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup, not sure about why do we have that empty CR function
Checklist