Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pegasystems/pega-helm-charts
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.0
Choose a base ref
...
head repository: pegasystems/pega-helm-charts
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Loading
Showing 306 changed files with 24,710 additions and 2,216 deletions.
17 changes: 11 additions & 6 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -3,17 +3,22 @@
# For more info, see https://help.github.com/en/articles/about-code-owners

# These owners will be the default owners for everything in the repo.
* @dcasavant @pegasystems/deployment
* @pegasystems/deployment

# Documentation
*.md @taz-pega-work
docs/* @taz-pega-work
*.md @taz-pega-work @kingakowalska1
docs/* @taz-pega-work @kingakowalska1

# Addons Chart
charts/pega/addons/* @pegasystems/deployment
# Chart Defaults
charts/* @pegasystems/deployment

# Pega Chart
charts/pega/pega/* @pegasystems/deployment
charts/pega/* @pegasystems/deployment

# Constellation Chart
charts/pega/charts/constellation/* @pegasystems/UIServices
charts/backingservices/charts/constellation/* @pegasystems/UIServices
charts/backingservices/charts/constellation-messaging/* @pegasystems/UIServices

# SRS Chart
charts/backingservices/charts/srs/* @pegasystems/searchservice
79 changes: 60 additions & 19 deletions .github/workflows/github-actions-build.yml
Original file line number Diff line number Diff line change
@@ -2,12 +2,12 @@ name: Pega Chart Build

env:
HELM_URL: https://get.helm.sh
HELM_TGZ: helm-v3.2.4-linux-amd64.tar.gz
YAMLLINT_VERSION: 1.15.0
GO_VERSION: 1.13.1
HELM_TGZ: helm-v3.16.3-linux-amd64.tar.gz
YAMLLINT_VERSION: 1.35.1
GO_VERSION: 1.23.4


on:
on:
push:
tags:
- '*'
@@ -22,32 +22,66 @@ concurrency:
cancel-in-progress: true

jobs:
run-supplemental-validation-job:
runs-on: ubuntu-24.04
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Run validate supplementals script
run : |
sh validate_supplementals.sh
run-lint-job:
runs-on: ubuntu-18.04
runs-on: ubuntu-24.04
steps:
- name: Check out repository code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install yamllint
run: |
sudo pip install yamllint=="${{ env.YAMLLINT_VERSION }}"
- name: Install Helm
run: |
sudo rm /usr/local/bin/helm
wget -q ${{ env.HELM_URL }}/${{ env.HELM_TGZ }}
tar xzf ${{ env.HELM_TGZ }}
mv linux-amd64/helm /usr/local/bin/helm
- name: run yamllint
run: |
yamllint -c .yamllint.yml -s $(find . -type f -name "Chart.yaml")
yamllint -c .yamllint.yml -s $(find . -type f -name "values*.yaml")
- name: update helm dependencies
run: |
helm dependency update charts/addons
helm dependency update charts/backingservices
helm dependency update charts/pega
- name: run helm lint
run: |
sh helmlint.sh
- name: Install xml lint
run: |
sudo apt-get update && sudo apt -y install libxml2-utils
- name: run xml lint for deploy and installer xml files
run: |
sh validatexml.sh
run-remark-job:
runs-on: ubuntu-18.04
runs-on: ubuntu-24.04
steps:
- name: Check out repository code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: lts/*

- name: Install npm dependencies
run: |
npm install -g --save remark-cli to-vfile remark-preset-lint-recommended remark-validate-links remark-lint-no-dead-urls remark-message-control remark-preset-lint-markdown-style-guide remark-lint
@@ -57,13 +91,13 @@ jobs:
remark -i .remark_ignore -f -u validate-links .
run-go-tests-job:
runs-on: ubuntu-18.04
runs-on: ubuntu-24.04
steps:
- name: Check out repository code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Install GO
uses: actions/setup-go@v2
uses: actions/setup-go@v3
with:
go-version: ${{ env.GO_VERSION }}
- run: export PATH=$PATH:/usr/local/go/bin
@@ -80,14 +114,14 @@ jobs:
- name: Now load the helm dependencies
run: |
make dependencies
- name: Prepare for GO helm unit tests
run: |
mkdir $GITHUB_WORKSPACE/terratest/bin
export GOPATH=$GITHUB_WORKSPACE/terratest
export PATH=$PATH:$GITHUB_WORKSPACE/terratest/bin
cd terratest/src/test
- name: run go tests on pega
run: |
export GOPATH=$GITHUB_WORKSPACE/terratest
@@ -110,7 +144,7 @@ jobs:
go test ./backingservices | grep "FAIL" -A 8 || true ; test ${PIPESTATUS[0]} -eq 0
run-deploy-job:
runs-on: ubuntu-18.04
runs-on: ubuntu-24.04
needs: [run-lint-job, run-remark-job, run-go-tests-job]
if: ( github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v') ) && success()
steps:
@@ -120,14 +154,22 @@ jobs:
tar xzf ${{ env.HELM_TGZ }}
ls -l
mv linux-amd64/helm /usr/local/bin/helm
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Now load the helm dependencies
run: |
make dependencies
- name: sync chart version
run: |
cd $GITHUB_WORKSPACE
chmod 777 sync_chart_version.sh
./sync_chart_version.sh
env:
GITHUB_TOKEN: ${{ secrets.GH_ACTIONS_SECRET }}

- name: before deploy step 1
run: |
cd $GITHUB_WORKSPACE
@@ -138,7 +180,6 @@ jobs:
run: |
make examples
- name: deploy on github releases
uses: softprops/action-gh-release@v1
with:
26 changes: 26 additions & 0 deletions .github/workflows/github-actions-stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Mark stale issues and pull requests
on:
schedule:
- cron: '0 23 * * *' # once a day at 11pm UTC time zone
jobs:
stale:
permissions:
issues: write # for commenting on an issue and editing labels
pull-requests: write # for commenting on a PR and editing labels
runs-on: ubuntu-latest
steps:
- uses: actions/stale@v9
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
operations-per-run: 200
# timing
days-before-stale: 60 # 60 days of inactivity
days-before-close: 30 # 30 more days of inactivity
# labels to watch for, add, and remove
only-labels: 'pending info' # only mark issues/PRs as stale if they have this label
labels-to-remove-when-unstale: 'pending info' # remove label when unstale -- should be manually added back if information is insufficient
# automated messages to issue/PR authors
stale-issue-message: 'This issue has been marked as stale because it has been open for 60 days with no activity. This issue will be automatically closed in 30 days if no further activity occurs.'
stale-pr-message: 'This pull request has been marked as stale because it has been open for 60 days with no activity. This pull request will be automatically closed in 30 days if no further activity occurs.'
close-issue-message: 'This issue was closed because it has been inactive for 30 days since being marked as stale.'
close-pr-message: 'This pull request was closed because it has been inactive for 30 days since being marked as stale.'
54 changes: 54 additions & 0 deletions .github/workflows/mend-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# Reference: https://github.com/mend-toolkit/mend-examples/blob/main/Unified%20Agent/CI-CD/GitHub.yml

name: Mend Unified Agent Release Scan
on:
workflow_dispatch:
push:
branches:
- 'master'
jobs:
mendscan:
env:
WS_APIKEY: ${{secrets.MEND_APIKEY}}
WS_USERKEY: ${{secrets.MEND_USERKEY}}
WS_WSS_URL: ${{secrets.MEND_WS_WSS_URL}}
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
# - name: Build with Gradle
# run: ./gradlew -Prelease.useLastTag=false clean build
- name: Mend Unified Agent Scan
env:
WS_PRODUCTNAME: ${{vars.MEND_PRODUCT_NAME}}
WS_PROJECTNAME: ${{github.event.repository.name}}_${{github.ref_name}}
WS_GENERATEPROJECTDETAILSJSON: true
WS_GRADLE_ADDITIONALARGUMENTS: -Prelease.useLastTag=false
run: |
echo Downloading Mend Unified Agent
curl -LJO https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
if [[ "$(curl -sL https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar.sha256)" != "$(sha256sum wss-unified-agent.jar)" ]] ; then
echo "Integrity Check Failed"
else
echo "Integrity Check Passed"
echo Starting Unified Agent Scan
java -jar wss-unified-agent.jar
fi
- name: 'Upload WhiteSource folder'
uses: actions/upload-artifact@v4
with:
name: Mend
path: whitesource
retention-days: 14
- name: 'Upload Mend folder if failure'
uses: actions/upload-artifact@v4
if: failure()
with:
name: Mend
path: whitesource
retention-days: 14
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
@@ -38,7 +38,7 @@ node {
sh "helm package --version ${chartVersion} ./charts/pega/"
sh "helm package --version ${chartVersion} ./charts/addons/"
sh "helm package --version ${chartVersion} ./charts/backingservices/"
sh "tar -czvf ${deployConfigsFileName} --directory=./charts/pega/config deploy/context.xml.tmpl deploy/server.xml deploy/prconfig.xml deploy/prlog4j2.xml"
sh "tar -czvf ${deployConfigsFileName} --directory=./charts/pega/config deploy/context.xml.tmpl deploy/server.xml.tmpl deploy/prconfig.xml deploy/prlog4j2.xml deploy/java.security.overwrite deploy/catalina.properties deploy/tomcat-web.xml"
sh "mkdir -p ./charts/pega/charts/installer/config/installer && cp ./charts/pega/charts/installer/config/migrateSystem.properties.tmpl ./charts/pega/charts/installer/config/installer && cp ./charts/pega/charts/installer/config/prbootstrap.properties.tmpl ./charts/pega/charts/installer/config/installer && cp ./charts/pega/charts/installer/config/prconfig.xml.tmpl ./charts/pega/charts/installer/config/installer && cp ./charts/pega/charts/installer/config/prlog4j2.xml ./charts/pega/charts/installer/config/installer && cp ./charts/pega/charts/installer/config/prpcUtils.properties.tmpl ./charts/pega/charts/installer/config/installer && cp ./charts/pega/charts/installer/config/setupDatabase.properties.tmpl ./charts/pega/charts/installer/config/installer && tar -czvf ${installerConfigsFileName} --directory=./charts/pega/charts/installer/config installer/migrateSystem.properties.tmpl installer/prbootstrap.properties.tmpl installer/prconfig.xml.tmpl installer/prlog4j2.xml installer/prpcUtils.properties.tmpl installer/setupDatabase.properties.tmpl"

// Publish helm charts to test-automation GitHub Pages
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
dependencies:
helm repo add incubator https://charts.helm.sh/incubator
helm repo add stable https://charts.helm.sh/stable
helm repo add application-gateway-kubernetes-ingress https://appgwingress.blob.core.windows.net/ingress-azure-helm-package/
helm repo add kiwigrid https://kiwigrid.github.io
helm repo add elastic https://helm.elastic.co
helm repo list
Loading