Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
5b73b4f
Replaced deploymentName with deployment.name in SRS chart, updated do…
alemax22 Oct 11, 2024
0c8fa59
Merge branch 'pegasystems:master' into feature/align-srsname-to-other…
alemax22 Oct 11, 2024
d88ab7d
Merge branch 'pegasystems:master' into feature/align-srsname-to-other…
alemax22 Oct 20, 2024
dca3820
Merge branch 'pegasystems:master' into feature/align-srsname-to-other…
alemax22 Oct 23, 2024
39d1652
Merge branch 'pegasystems:master' into feature/align-srsname-to-other…
alemax22 Oct 30, 2024
d1ad97e
Merge branch 'pegasystems:master' into feature/align-srsname-to-other…
alemax22 Nov 6, 2024
00eb110
Merge branch 'pegasystems:master' into feature/align-srsname-to-other…
alemax22 Nov 7, 2024
443e3d4
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Nov 11, 2024
f198c10
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Nov 14, 2024
3de4309
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Nov 26, 2024
4653633
Merge branch 'pegasystems:master' into feature/align-srsname-to-other…
alemax22 Dec 9, 2024
b71b705
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Dec 23, 2024
c86864b
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Dec 26, 2024
5b08efc
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Jan 6, 2025
09b55e5
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Jan 21, 2025
f45a153
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Jan 27, 2025
5354968
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Jan 28, 2025
52aec2f
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Feb 5, 2025
298309d
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Feb 6, 2025
a68ea33
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Feb 13, 2025
4600ed2
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Feb 21, 2025
c19fc7a
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Mar 5, 2025
e31c5cc
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Mar 27, 2025
6257669
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Mar 28, 2025
eecf4cf
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Apr 1, 2025
1bcef2c
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Apr 9, 2025
785670a
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Apr 10, 2025
766d6a9
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Apr 11, 2025
e6915af
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Apr 16, 2025
60a60bb
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Apr 17, 2025
ed7add5
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Apr 30, 2025
97c1c54
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 May 1, 2025
4d91898
Merge branch 'master' into feature/align-srsname-to-other-charts
kishorv10 May 5, 2025
0300a90
Merge branch 'pegasystems:master' into feature/align-srsname-to-other…
alemax22 May 5, 2025
0010c5a
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 May 9, 2025
8727717
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 May 12, 2025
3a37e22
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 May 14, 2025
f65709f
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 May 19, 2025
d09db19
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 May 23, 2025
12be2a7
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 May 28, 2025
0b2dbab
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 May 29, 2025
502171f
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Jun 4, 2025
e41e2e2
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Jun 20, 2025
96fa723
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Jun 24, 2025
85dcd88
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Jun 25, 2025
fe7bec7
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Jul 3, 2025
02da290
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Jul 7, 2025
4b45f62
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Jul 9, 2025
ed3ce98
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Jul 17, 2025
e51ec85
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Aug 1, 2025
42d9848
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Aug 8, 2025
25532a4
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Aug 12, 2025
7a87efb
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Aug 13, 2025
7ce5b40
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Aug 26, 2025
3ddad70
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Sep 19, 2025
55dd8df
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Sep 24, 2025
4d1c001
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Sep 25, 2025
8618817
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Oct 1, 2025
97b9e9b
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Oct 7, 2025
a8f9e21
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Oct 21, 2025
c1c5877
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Oct 28, 2025
a5bf7f1
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Nov 3, 2025
8afcf2e
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Nov 5, 2025
d19242b
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Nov 19, 2025
55bb4b3
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Nov 25, 2025
6e87aa3
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Dec 1, 2025
63ca3b9
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Dec 2, 2025
c6a2351
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Dec 3, 2025
8e8237b
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Dec 8, 2025
6a0099b
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Dec 12, 2025
b0ce0ab
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Dec 15, 2025
dedc460
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Dec 16, 2025
69227c2
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Dec 22, 2025
dceea80
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Dec 27, 2025
178535b
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Jan 6, 2026
4a7abd4
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Jan 9, 2026
04be58d
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Jan 20, 2026
17cd675
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Jan 27, 2026
a7acd76
Merge branch 'master' into feature/align-srsname-to-other-charts
alemax22 Feb 23, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions charts/backingservices/charts/srs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ To deploy Pega Platform with the SRS backing service, the SRS helm chart require
| Configuration | Usage |
|-----------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `enabled` | Enable the Search and Reporting Service deployment as a backing service. Set this parameter to `true` to use SRS. |
| `deploymentName` | Specify the name of your SRS cluster. Your deployment creates resources prefixed with this string. This is also the service name for the SRS. |
| `deploymentName` | Deprecated, use `deployment.name`. Specify the name of your SRS cluster. Your deployment creates resources prefixed with this string. This is also the service name for the SRS. |
| `deployment.name` | Specify the name of your SRS cluster. Your deployment creates resources prefixed with this string. This is also the service name for the SRS. |
| `srsRuntime` | Use this section to define specific resource configuration options like image, replica count, pod affinity, cpu and memory resource settings in the SRS. The default minimum required number of replicas is 2, but as a best practice, deploy 3 replicas to maintain high availability. |
| `busybox` | When provisioning an internally managed Elasticsearch cluster, you can customize the location and pull policy of the Alpine image used during the deployment process by specifying `busybox.image` and `busybox.imagePullPolicy`. |
| `elasticsearch` | Define the elasticsearch cluster configurations. The [Elasticsearch](https://github.com/helm/charts/tree/master/stable/elasticsearch/values.yaml) chart defines the values for Elasticsearch provisioning in the SRS cluster. For internally provisioned Elasticsearch the default version is set to `7.17.9`. Set the `elasticsearch.imageTag` parameter in values.yaml to `7.16.3` to use this supported version in the SRS cluster. |
Expand Down Expand Up @@ -194,8 +195,9 @@ srs:
# Set srs.enabled=true to enable SRS
enabled: true

# specify unique name for the deployment based on org app and/or srs applicable environment name. eg: acme-demo-dev-srs
deploymentName: "YOUR_SRS_DEPLOYMENT_NAME"
deployment:
# specify unique name for the deployment based on org app and/or srs applicable environment name. eg: acme-demo-dev-srs
name: "YOUR_SRS_DEPLOYMENT_NAME"

# Configure the location of the busybox image that is used during the deployment process of
# the internal Elasticsearch cluster
Expand Down
3 changes: 3 additions & 0 deletions charts/backingservices/charts/srs/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ App name
Create a default fully qualified deployment name. This is used to define the deployment resource name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
The key deploymentName is DEPRECATED use deployment.name instead.
*/}}
{{- define "srs.fullname" -}}
{{- if .Values.deploymentName }}
{{- .Values.deploymentName | trunc 63 | trimSuffix "-" }}
{{- else if and (.Values.deployment) (.Values.deployment.name)}}
{{- .Values.deployment.name | trunc 63 | trimSuffix "-" }}
{{- else }}
{{- $name := default .Chart.Name .Values.deploymentName }}
{{- if contains $name .Release.Name }}
Expand Down
3 changes: 2 additions & 1 deletion charts/backingservices/charts/srs/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
enabled: true
deploymentName: pega-shared-srs
deployment:
name: pega-shared-srs

# srs-service configuration
srsRuntime:
Expand Down
5 changes: 3 additions & 2 deletions charts/backingservices/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ srs:
# Set srs.enabled=true to enable SRS
enabled: true

# specify unique name for the deployment based on org app and/or srs applicable environment name. eg: acme-demo-dev-srs
deploymentName: "YOUR_SRS_DEPLOYMENT_NAME"
deployment:
# specify unique name for the deployment based on org app and/or srs applicable environment name. eg: acme-demo-dev-srs
name: "YOUR_SRS_DEPLOYMENT_NAME"

# Configure the location of the busybox image that is used during the deployment process of
# the internal Elasticsearch cluster
Expand Down
48 changes: 45 additions & 3 deletions terratest/src/test/backingservices/srs-deployment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,52 @@ import (

func TestSRSDeployment(t *testing.T) {

helmChartParser := NewHelmConfigParser(
NewHelmTestFromTemplate(t, helmChartRelativePath, map[string]string{
"srs.enabled": "true",
"srs.deployment.name": "test-srs",
"global.imageCredentials.registry": "docker-registry.io",
"srs.srsRuntime.replicaCount": "1",
"srs.srsRuntime.srsImage": "platform-services/search-n-reporting-service:latest",
"srs.srsRuntime.env.AuthEnabled": "false",
"srs.srsRuntime.env.OAuthPublicKeyURL": "",
"srs.srsStorage.tls.enabled": "true",
"srs.srsStorage.basicAuthentication.enabled": "false",
},
[]string{"charts/srs/templates/srsservice_deployment.yaml"}),
)

var srsDeploymentObj appsv1.Deployment
helmChartParser.getResourceYAML(SearchResourceOption{
Name: "test-srs",
Kind: "Deployment",
}, &srsDeploymentObj)
VerifySRSDeployment(t, srsDeploymentObj,
srsDeployment{
"test-srs",
"srs-service",
int32(1),
"platform-services/search-n-reporting-service:latest",
"false",
"",
false,
podResources{"1300m", "2Gi", "650m", "2Gi"},
esDomain{
domain: "elasticsearch-master.default.svc",
port: "9200",
protocol: "https",
},
false,
})
}

func TestSRSDeploymentDeprecatedNameOverNewForBackwardCompatibility(t *testing.T) {

helmChartParser := NewHelmConfigParser(
NewHelmTestFromTemplate(t, helmChartRelativePath, map[string]string{
"srs.enabled": "true",
"srs.deploymentName": "test-srs",
"srs.deployment.name": "test-srs-new-key",
"global.imageCredentials.registry": "docker-registry.io",
"srs.srsRuntime.replicaCount": "1",
"srs.srsRuntime.srsImage": "platform-services/search-n-reporting-service:latest",
Expand Down Expand Up @@ -57,7 +99,7 @@ func TestSRSDeploymentVariables(t *testing.T) {
helmChartParser := NewHelmConfigParser(
NewHelmTestFromTemplate(t, helmChartRelativePath, map[string]string{
"srs.enabled": "true",
"srs.deploymentName": "test-srs-dev",
"srs.deployment.name": "test-srs-dev",
"global.imageCredentials.registry": "docker-registry.io",
"srs.srsRuntime.replicaCount": "3",
"srs.srsRuntime.srsImage": "platform-services/search-n-reporting-service:1.0.0",
Expand Down Expand Up @@ -259,7 +301,7 @@ func TestSRSDeploymentVariablesDefaultInternetEgress(t *testing.T) {
helmChartParser := NewHelmConfigParser(
NewHelmTestFromTemplate(t, helmChartRelativePath, map[string]string{
"srs.enabled": "true",
"srs.deploymentName": "test-srs-dev",
"srs.deployment.name": "test-srs-dev",
"global.imageCredentials.registry": "docker-registry.io",
"srs.srsRuntime.replicaCount": "3",
"srs.srsRuntime.srsImage": "platform-services/search-n-reporting-service:1.0.0",
Expand Down Expand Up @@ -312,7 +354,7 @@ func TestSRSDeploymentWithAffinity(t *testing.T) {
helmChartParser := NewHelmConfigParser(
NewHelmTestFromTemplate(t, helmChartRelativePath, map[string]string{
"srs.enabled": "true",
"srs.deploymentName": "test-srs",
"srs.deployment.name": "test-srs",
"global.imageCredentials.registry": "docker-registry.io",
"srs.srsRuntime.replicaCount": "1",
"srs.srsRuntime.srsImage": "platform-services/search-n-reporting-service:latest",
Expand Down
42 changes: 21 additions & 21 deletions terratest/src/test/backingservices/srs-networkpolicy_test.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
package backingservices

import (
"testing"

"github.com/stretchr/testify/require"
networkingv1 "k8s.io/api/networking/v1"
"testing"
)

func TestSRSServiceNetworkPolicy(t *testing.T){
func TestSRSServiceNetworkPolicy(t *testing.T) {

helmChartParser := NewHelmConfigParser(
NewHelmTestFromTemplate(t, helmChartRelativePath, map[string]string{
"srs.enabled": "true",
"srs.deploymentName": "test-srs",
"srs.enabled": "true",
"srs.deployment.name": "test-srs",
"srs.srsStorage.tls.enabled": "false",
"srs.srsStorage.networkPolicy.enabled": "true",
},
Expand All @@ -26,14 +27,14 @@ func TestSRSServiceNetworkPolicy(t *testing.T){
VerifySRSServiceNetworkPolicy(t, &networkPolicyObj, false)
}

func TestSRSServiceNetworkPolicyWithProvisionInternalESCluster(t *testing.T){
func TestSRSServiceNetworkPolicyWithProvisionInternalESCluster(t *testing.T) {

helmChartParser := NewHelmConfigParser(
NewHelmTestFromTemplate(t, helmChartRelativePath, map[string]string{
"srs.enabled": "true",
"srs.deploymentName": "test-srs",
"srs.srsStorage.tls.enabled": "false",
"srs.srsStorage.requireInternetAccess": "true",
"srs.enabled": "true",
"srs.deployment.name": "test-srs",
"srs.srsStorage.tls.enabled": "false",
"srs.srsStorage.requireInternetAccess": "true",
"srs.srsStorage.provisionInternalESCluster": "true",
"srs.srsStorage.networkPolicy.enabled": "true",
},
Expand All @@ -48,18 +49,18 @@ func TestSRSServiceNetworkPolicyWithProvisionInternalESCluster(t *testing.T){
VerifySRSServiceNetworkPolicy(t, &networkPolicyObj, false)
}

func TestSRSServiceNetworkPolicyWithProvisionInternalESClusterFalse(t *testing.T){
func TestSRSServiceNetworkPolicyWithProvisionInternalESClusterFalse(t *testing.T) {

helmChartParser := NewHelmConfigParser(
NewHelmTestFromTemplate(t, helmChartRelativePath, map[string]string{
"srs.enabled": "true",
"srs.deploymentName": "test-srs",
"srs.srsStorage.requireInternetAccess": "true",
"srs.srsStorage.provisionInternalESCluster": "false",
"srs.srsStorage.tls.enabled": "false",
"srs.srsStorage.domain": "es.acme.io",
"srs.srsStorage.port": "8008",
"srs.srsStorage.protocol": "https",
"srs.enabled": "true",
"srs.deployment.name": "test-srs",
"srs.srsStorage.requireInternetAccess": "true",
"srs.srsStorage.provisionInternalESCluster": "false",
"srs.srsStorage.tls.enabled": "false",
"srs.srsStorage.domain": "es.acme.io",
"srs.srsStorage.port": "8008",
"srs.srsStorage.protocol": "https",
"srs.srsStorage.basicAuthentication.enabled": "false",
"srs.srsStorage.networkPolicy.enabled": "true",
},
Expand All @@ -77,8 +78,7 @@ func TestSRSServiceNetworkPolicyWithProvisionInternalESClusterFalse(t *testing.T
func VerifySRSServiceNetworkPolicy(t *testing.T, networkPolicySvcObj *networkingv1.NetworkPolicy, internetEgress bool) {
require.Equal(t, "srs-service", networkPolicySvcObj.Spec.PodSelector.MatchLabels["app.kubernetes.io/name"])


require.ElementsMatch(t, []networkingv1.PolicyType{ "Ingress","Egress"}, networkPolicySvcObj.Spec.PolicyTypes)
require.ElementsMatch(t, []networkingv1.PolicyType{"Ingress", "Egress"}, networkPolicySvcObj.Spec.PolicyTypes)
// ingress
require.Equal(t, "0.0.0.0/0", networkPolicySvcObj.Spec.Ingress[0].From[0].IPBlock.CIDR)
require.Equal(t, int32(8080), networkPolicySvcObj.Spec.Ingress[0].Ports[0].Port.IntVal)
Expand All @@ -96,4 +96,4 @@ func VerifySRSServiceNetworkPolicy(t *testing.T, networkPolicySvcObj *networking
require.Equal(t, "", networkPolicySvcObj.Spec.PodSelector.MatchLabels["networking/allow-internet-egress"])
}

}
}
41 changes: 21 additions & 20 deletions terratest/src/test/backingservices/srs-pdb_test.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
package backingservices

import (
"testing"

"github.com/stretchr/testify/require"
"k8s.io/api/policy/v1beta1"
"testing"
)

func TestSRSServicePDB(t *testing.T){
func TestSRSServicePDB(t *testing.T) {

helmChartParser := NewHelmConfigParser(
NewHelmTestFromTemplate(t, helmChartRelativePath, map[string]string{
"srs.enabled": "true",
"srs.deploymentName": "test-srs",
"srs.enabled": "true",
"srs.deployment.name": "test-srs",
"srs.srsStorage.tls.enabled": "false",
},
[]string{"charts/srs/templates/srsservice_poddisruptionbudget.yaml"}),
Expand All @@ -25,13 +26,13 @@ func TestSRSServicePDB(t *testing.T){
VerifySRSServicePDB(t, &pdbObj)
}

func TestSRSServicePDBWithESInternetAccess(t *testing.T){
func TestSRSServicePDBWithESInternetAccess(t *testing.T) {

helmChartParser := NewHelmConfigParser(
NewHelmTestFromTemplate(t, helmChartRelativePath, map[string]string{
"srs.enabled": "true",
"srs.deploymentName": "test-srs",
"srs.srsStorage.tls.enabled": "false",
"srs.enabled": "true",
"srs.deployment.name": "test-srs",
"srs.srsStorage.tls.enabled": "false",
"srs.srsStorage.requireInternetAccess": "true",
},
[]string{"charts/srs/templates/srsservice_poddisruptionbudget.yaml"}),
Expand All @@ -45,18 +46,18 @@ func TestSRSServicePDBWithESInternetAccess(t *testing.T){
VerifySRSServicePDB(t, &pdbObj)
}

func TestSRSServicePDBWithESInternetAccessWithExternalES(t *testing.T){
func TestSRSServicePDBWithESInternetAccessWithExternalES(t *testing.T) {

helmChartParser := NewHelmConfigParser(
NewHelmTestFromTemplate(t, helmChartRelativePath, map[string]string{
"srs.enabled": "true",
"srs.deploymentName": "test-srs",
"srs.srsStorage.requireInternetAccess": "true",
"srs.srsStorage.tls.enabled": "false",
"srs.srsStorage.provisionInternalESCluster": "false",
"srs.srsStorage.domain": "es.acme.io",
"srs.srsStorage.port": "8008",
"srs.srsStorage.protocol": "https",
"srs.enabled": "true",
"srs.deployment.name": "test-srs",
"srs.srsStorage.requireInternetAccess": "true",
"srs.srsStorage.tls.enabled": "false",
"srs.srsStorage.provisionInternalESCluster": "false",
"srs.srsStorage.domain": "es.acme.io",
"srs.srsStorage.port": "8008",
"srs.srsStorage.protocol": "https",
"srs.srsStorage.basicAuthentication.enabled": "false",
},
[]string{"charts/srs/templates/srsservice_poddisruptionbudget.yaml"}),
Expand All @@ -71,11 +72,11 @@ func TestSRSServicePDBWithESInternetAccessWithExternalES(t *testing.T){
}

func VerifySRSServicePDB(t *testing.T, servicePDBObj *v1beta1.PodDisruptionBudget) {
require.Equal(t, "srs-service", servicePDBObj.Spec.Selector.MatchLabels["app.kubernetes.io/name"] )
require.Equal(t, "srs-service", servicePDBObj.Spec.Selector.MatchLabels["app.kubernetes.io/name"])
require.Equal(t, "", servicePDBObj.Spec.Selector.MatchLabels["networking/allow-internet-egress"])
}

func VerifySRSServicePDBWithEgressLabel(t *testing.T, servicePDBObj *v1beta1.PodDisruptionBudget) {
require.Equal(t, "srs-service", servicePDBObj.Spec.Selector.MatchLabels["app.kubernetes.io/name"] )
require.Equal(t, "srs-service", servicePDBObj.Spec.Selector.MatchLabels["app.kubernetes.io/name"])
require.Equal(t, "true", servicePDBObj.Spec.Selector.MatchLabels["networking/allow-internet-egress"])
}
}
Loading