-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial Constellation integration (#97)
* Add preliminary support for the constellation service. Co-authored-by: Parmar <[email protected]> Co-authored-by: anuds <[email protected]> Co-authored-by: parmn <[email protected]> Co-authored-by: casad <[email protected]>
- Loading branch information
1 parent
6524854
commit 7509c8d
Showing
13 changed files
with
183 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
apiVersion: v1 | ||
name: constellation | ||
version: 0.0.1 | ||
description: Pega constellation service | ||
appVersion: 8.5.0 |
37 changes: 37 additions & 0 deletions
37
charts/pega/charts/constellation/templates/clln-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#Deploy only when the constellation flag has been enabled in the values yaml. | ||
{{ if and .Values.enabled (eq .Values.enabled true) }} | ||
kind: Deployment | ||
apiVersion: apps/v1 | ||
metadata: | ||
name: constellation | ||
labels: | ||
app: constellation | ||
spec: | ||
replicas: 2 | ||
selector: | ||
matchLabels: | ||
app: constellation | ||
template: | ||
metadata: | ||
labels: | ||
app: constellation | ||
spec: | ||
imagePullSecrets: | ||
- name: {{ template "pegaRegistrySecret" }} | ||
containers: | ||
- name: constellation | ||
imagePullPolicy: {{ .Values.imagePullPolicy }} | ||
image: {{ .Values.image }} | ||
args: | ||
- port=3000 | ||
- {{ .Values.logLevel }} | ||
livenessProbe: | ||
httpGet: | ||
path: /c11n/api/v1/ping | ||
readinessProbe: | ||
initialDelaySeconds: 1 | ||
httpGet: | ||
path: /c11n/api/v1/ping | ||
ports: | ||
- containerPort: 3000 | ||
{{ end }} |
19 changes: 19 additions & 0 deletions
19
charts/pega/charts/constellation/templates/clln-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#Deploy only when the constellation flag has been enabled in the values yaml. | ||
{{ if and .Values.enabled (eq .Values.enabled true) }} | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: constellation | ||
labels: | ||
app: constellation | ||
# component: constellation | ||
spec: | ||
selector: | ||
app: constellation | ||
# component: constellation | ||
ports: | ||
- protocol: TCP | ||
port: 3000 | ||
targetPort: 3000 | ||
type: LoadBalancer | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
--- | ||
# Parameters for constellation operation: | ||
# Docker repos and tag for image | ||
image: IMAGE_REPO_URL_HERE | ||
# log level : error, warn, info, debug. use error for production | ||
logLevel: info | ||
enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,7 +97,6 @@ global: | |
|
||
replicas: 1 | ||
javaOpts: "" | ||
|
||
pegaDiagnosticUser: "" | ||
pegaDiagnosticPassword: "" | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package pega | ||
|
||
import ( | ||
"path/filepath" | ||
"testing" | ||
|
||
"github.com/gruntwork-io/terratest/modules/helm" | ||
"github.com/stretchr/testify/require" | ||
) | ||
|
||
// set action execute to install | ||
var constellation_options = &helm.Options{ | ||
SetValues: map[string]string{ | ||
"global.provider": "k8s", | ||
"global.actions.execute": "deploy", | ||
"constellation.enabled": "true", | ||
}, | ||
} | ||
|
||
// TestPegaStandardTierDeployment - Test case to verify the standard pega tier deployment. | ||
// Standard tier deployment includes web deployment, batch deployment, stream statefulset, search service, hpa, rolling update, web services, ingresses and config maps | ||
func TestPegaStandardTierDeploymentWithConstellation(t *testing.T) { | ||
t.Parallel() | ||
// Path to the helm chart we will test | ||
helmChartPath, err := filepath.Abs(PegaHelmChartPath) | ||
require.NoError(t, err) | ||
|
||
VerifyPegaStandardTierDeployment(t, helmChartPath, constellation_options, []string{"wait-for-pegasearch", "wait-for-cassandra"}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters