Skip to content

Commit

Permalink
Update construct_service.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Liwanshi authored Nov 2, 2023
1 parent 4082c32 commit cca6830
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/reconciliation/construct_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ func newSeedServiceForCassandraDatacenter(dc *api.CassandraDatacenter) *corev1.S
service.Spec.Selector = buildLabelSelectorForSeedService(dc)
service.Spec.PublishNotReadyAddresses = true
// Adding ipFamilies and ipFamilyPolicy
service.SpecIPFamilies = []corev1.IPFamily{corev1.IPv4Protocol}
service.Spec.IPFamilies = []corev1.IPFamily{corev1.IPv4Protocol}
// Create a variable of type corev1.IPFamilyPolicyType
ipFamilyPolicy := corev1.IPFamilyPolicySingleStack
// Set IPFamilyPolicy for localSeedSvc
Expand All @@ -151,7 +151,7 @@ func newAdditionalSeedServiceForCassandraDatacenter(dc *api.CassandraDatacenter)
service.Spec.ClusterIP = "None"
service.Spec.PublishNotReadyAddresses = true
// Adding ipFamilies and ipFamilyPolicy
service.SpecIPFamilies = []corev1.IPFamily{corev1.IPv4Protocol}
service.Spec.IPFamilies = []corev1.IPFamily{corev1.IPv4Protocol}
// Create a variable of type corev1.IPFamilyPolicyType
ipFamilyPolicy := corev1.IPFamilyPolicySingleStack
// Set IPFamilyPolicy for localSeedSvc
Expand Down

0 comments on commit cca6830

Please sign in to comment.