-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Vulnerability fixes, SEMP parse bug fix, Readiness Liveness probes to…
… work with DR and migration from assert-master to assert-leader for readiness config-sync (#125) - Updates and upgrades of dependencies - Fix for SEMP parsing error bug - Liveness and Startup probes now work with DR if it is set up - Assert-master migration to assert-leader
- Loading branch information
1 parent
194ad0b
commit 181acb9
Showing
7 changed files
with
218 additions
and
40 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 |
---|---|---|
|
@@ -46,6 +46,15 @@ jobs: | |
yaml-lint -n pubsubplus/*.yaml | ||
helm lint pubsubplus | ||
- name: Run Whitesource Action | ||
uses: SolaceDev/[email protected] | ||
with: | ||
wssURL: https://saas.whitesourcesoftware.com/agent | ||
apiKey: ${{ secrets.WSS_API_KEY }} | ||
productName: 'pubsubplus-kubernetes-helm' | ||
projectName: 'pubsubplus-kubernetes-helm' | ||
configFile: 'ci/whitesource/whitesource-agent.config' | ||
|
||
- name: Setup K8s env in GKE | ||
run: | | ||
gcloud components install gke-gcloud-auth-plugin --quiet | ||
|
@@ -79,7 +88,7 @@ jobs: | |
helm install my-release pubsubplus --set solace.size=dev,solace.redundancy=true,solace.podDisruptionBudgetForHA=true,solace.podModifierEnabled=true,tls.enabled=true,tls.serverCertificatesSecret=test-tls,solace.usernameAdminPassword=admin,image.repository=$REPO,image.tag=$TAG | ||
kubectl get statefulset,svc,pods,pvc,pv --show-labels | ||
echo "Waiting for broker to become active" | ||
sleep 40; kubectl describe nodes | ||
sleep 60; kubectl describe nodes | ||
until kubectl get pods --show-labels | grep pubsubplus-0 | grep -m 1 -E '1/1'; do sleep 10; done | ||
until kubectl get pods --show-labels | grep pubsubplus-1 | grep -m 1 -E '1/1'; do sleep 10; done | ||
until kubectl get pods --show-labels | grep pubsubplus-2 | grep -m 1 -E '1/1'; do sleep 10; done | ||
|
@@ -110,6 +119,7 @@ jobs: | |
helm upgrade my-release pubsubplus --set solace.size=dev,solace.redundancy=true,solace.podDisruptionBudgetForHA=true,solace.podModifierEnabled=true,tls.enabled=true,tls.serverCertificatesSecret=test-tls,solace.usernameAdminPassword=admin,image.repository=$REPO,image.tag=$UPGRADETAG,storage.useStorageGroup=true | ||
kubectl get statefulset,svc,pods,pvc,pv --show-labels | ||
echo "Waiting for broker to become active after upgrade" | ||
sleep 20; kubectl describe nodes | ||
statefulset_name=$(kubectl get statefulset | grep pubsubplus | awk '{print $1}') | ||
until kubectl rollout status statefulset $statefulset_name -w | grep "rolling update complete"; do sleep 10; done | ||
until kubectl get pods --show-labels | grep pubsubplus-0 | grep -m 1 -E '1/1'; do sleep 10; done | ||
|
@@ -169,7 +179,7 @@ jobs: | |
git push --quiet --set-upstream origin-pages gh-pages | ||
popd | ||
echo "Updated and pushed GH pages!" | ||
elif [ ${{ github.ref }} != 'refs/heads/gh-pages' ] && [ ${{ github.repository_owner }} != 'SolaceProducts' ] ; then | ||
elif [ ${{ github.ref }} != 'refs/heads/gh-pages' ] && [ ${{ github.repository_owner }} != 'SolaceProducts' ] && [[ ${{ github.ref }} =~ .*"refs/heads/v".* ]] ; then | ||
echo "Using $TESTRUNBRANCH on ${{ github.repository_owner }}" | ||
git clone --quiet --branch=gh-pages https://${{ secrets.GH_TOKEN }}@github.com/${{ github.repository }} gh-pages > /dev/null 2>&1 | ||
rm -rf gh-pages/helm-charts-openshift; mkdir -p gh-pages/helm-charts-openshift | ||
|
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,72 @@ | ||
#################################################################### | ||
# WhiteSource FS-Agent configuration file | ||
#################################################################### | ||
########################################## | ||
# GENERAL SCAN MODE: Files and Package Managers | ||
########################################## | ||
checkPolicies=true | ||
updateInventory=true | ||
forceCheckAllDependencies=true | ||
forceUpdate=false | ||
forceUpdate.failBuildOnPolicyViolation=true | ||
offline=false | ||
forceCheckAllDependencies=true | ||
enableLicenseViolations=true | ||
#dependenciesOnly=true | ||
|
||
wss.url=https://saas.whitesourcesoftware.com/agent | ||
|
||
npm.resolveDependencies=false | ||
bower.resolveDependencies=false | ||
nuget.resolveDependencies=false | ||
python.resolveDependencies=false | ||
maven.resolveDependencies=false | ||
gradle.resolveDependencies = true | ||
paket.resolveDependencies=false | ||
ruby.resolveDependencies = false | ||
sbt.resolveDependencies=false | ||
html.resolveDependencies=false | ||
|
||
|
||
##GO Configuration | ||
go.resolveDependencies=false | ||
go.collectDependenciesAtRuntime=true | ||
go.modules.resolveDependencies=true | ||
go.modules.ignoreSourceFiles=true | ||
go.modules.removeDuplicateDependencies=true | ||
go.modules.includeTestDependencies=true | ||
go.modules.includeTestDependencies=true | ||
|
||
#userKey is required if WhiteSource administrator has enabled "Enforce user level access" option | ||
#userKey= | ||
|
||
projectName=pubsubplus-kubernetes-helm | ||
projectVersion= | ||
projectToken= | ||
|
||
productName=pubsubplus-kubernetes-helm | ||
productVersion=v3.3.0 | ||
productToken= | ||
updateType=OVERRIDE | ||
#[email protected] | ||
|
||
######################################################################################### | ||
# Includes/Excludes Glob patterns - PLEASE USE ONLY ONE EXCLUDE LINE AND ONE INCLUDE LINE | ||
######################################################################################### | ||
includes=**/*.go **/*.yaml | ||
|
||
case.sensitive.glob=false | ||
followSymbolicLinks=true | ||
|
||
|
||
############################################## | ||
# SCAN MODE: Linux package manager settings | ||
############################################## | ||
scanPackageManager=false | ||
|
||
################################## | ||
# SCAN MODE: Docker images | ||
################################## | ||
docker.includes=**/* | ||
#docker.excludes=.*.* | ||
#docker.scanImages=true |
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
Oops, something went wrong.