Skip to content

Commit

Permalink
solve #751 : variable is required because AppProtocol is *string
Browse files Browse the repository at this point in the history
Signed-off-by: dhardy <[email protected]>
  • Loading branch information
dhardy92 committed Mar 29, 2024
1 parent 0ce2288 commit 73c3db9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion opensearch-operator/pkg/builders/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,7 @@ func NewServiceForCR(cr *opsterv1.OpenSearchCluster) *corev1.Service {
labels := map[string]string{
helpers.ClusterLabel: cr.Name,
}
httpsProtocol := "HTTPS"
return &corev1.Service{
TypeMeta: metav1.TypeMeta{
Kind: "Service",
Expand All @@ -650,7 +651,7 @@ func NewServiceForCR(cr *opsterv1.OpenSearchCluster) *corev1.Service {
{
Name: "http",
Protocol: "TCP",
AppProtocol: &corev1.URISchemeHTTPS,
AppProtocol: &httpsProtocol,
Port: cr.Spec.General.HttpPort,
TargetPort: intstr.IntOrString{
IntVal: cr.Spec.General.HttpPort,
Expand Down

0 comments on commit 73c3db9

Please sign in to comment.