-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
KO-348: Skip setting hostPort in Aerospike container for podOnly network and multiPodPerHost: false #316
Conversation
…multiPodPerHost: false
test/cluster/network_policy_test.go
Outdated
@@ -708,6 +708,29 @@ func doTestNetworkPolicy( | |||
}, | |||
) | |||
|
|||
It("OnlyPodNetwork: should not set the hostport in pod only network"+ | |||
"and multiPodPerHost is false", func() { |
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.
This line is not needed "and multiPodPerHost is false"
test/cluster/network_policy_test.go
Outdated
ports := aerospikecluster.GetSTSContainerPort(aeroCluster.Spec.PodSpec.MultiPodPerHost, | ||
aeroCluster.Spec.AerospikeConfig, &aeroCluster.Spec.AerospikeNetworkPolicy) | ||
|
||
for _, port := range ports { |
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.
These are full integration tests. Therefore, you should try to deploy the cluster with podOnly network and then check if hostPort is exposed or not.
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.
No need to make GetSTSContainerPort public
2e50e37
to
58d3441
Compare
* Fixed /config/apply API method for backup service * Added support for active-rack (#312) * Updated submodule to fetch 7.2 schemas * Changed order of recluster and set roster command in reconcile flow * Added duplicate volume name check in BackupService webhook * KO-348: Skip setting hostPort in Aerospike container for podOnly network and multiPodPerHost: false (#316) * Fixed tls and non-tls network policy hostPort flow * Fixed the setting of the error phase while the wrong server image is given. --------- Co-authored-by: Abhisek Dwivedi <[email protected]> Co-authored-by: Tanmay Jain <[email protected]> Co-authored-by: Jwalant Modi <[email protected]> Co-authored-by: Tanmay Jain <[email protected]>
Skip setting hostPort in Aerospike container for podOnly network and multiPodPerHost: false