Skip to content
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

Merged
merged 4 commits into from
Oct 15, 2024

Conversation

jwalantmodi05
Copy link
Contributor

Skip setting hostPort in Aerospike container for podOnly network and multiPodPerHost: false

@@ -708,6 +708,29 @@ func doTestNetworkPolicy(
},
)

It("OnlyPodNetwork: should not set the hostport in pod only network"+
"and multiPodPerHost is false", func() {
Copy link
Collaborator

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"

ports := aerospikecluster.GetSTSContainerPort(aeroCluster.Spec.PodSpec.MultiPodPerHost,
aeroCluster.Spec.AerospikeConfig, &aeroCluster.Spec.AerospikeNetworkPolicy)

for _, port := range ports {
Copy link
Collaborator

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.

Copy link
Collaborator

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

@abhishekdwivedi3060 abhishekdwivedi3060 changed the base branch from master to 3.4.0-bug-fix October 7, 2024 09:16
@sud82 sud82 merged commit e56812a into 3.4.0-bug-fix Oct 15, 2024
4 of 5 checks passed
sud82 pushed a commit that referenced this pull request Oct 16, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants