Skip to content

Commit 96e075c

Browse files
Release. 1.4.0 (#392)
* chore: extract tile as artifact from workflow * Refactoring sonarqube issues (#355) * Excluded tests from sonar * Refactoring various functions to lower complexity * Reformat incorrect yml files * Edge processor configuration * Added support for memory ballast (#327) * Added a PCF dashboard (#372) * test: update python to 3.13 * feat: upgrade cf client to v3 (#387) * Updated the tile version to 1.4.0
1 parent 767d1f6 commit 96e075c

File tree

932 files changed

+71169
-83996
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

932 files changed

+71169
-83996
lines changed

.fossa.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@ version: 3
22
server: https://app.fossa.com
33
project:
44
id: "splunk-firehose-nozzle"
5-
team: "TA-Automation"
5+
team: "TA-Automation"
6+
7+
paths:
8+
exclude:
9+
- testing

.github/pre-functional-test.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env bash
22

3-
sudo apt-get install python3.7
4-
sudo apt-get install python3-pip
53
cd testing/integration
64
pip3 install virtualenv
75
virtualenv venv

.github/pre-req.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ sudo apt-get update
1010
sudo apt-get install apt-transport-https ca-certificates
1111
sudo apt-get install cf-cli
1212
#CF Login
13-
cf login --skip-ssl-validation -a $API_ENDPOINT -u $API_USER -p $API_PASSWORD -o system -s system
13+
API_PASSWORD_DECRYPTED=$(echo "$API_PASSWORD" | openssl aes-256-cbc -d -pbkdf2 -a -pass pass:"$ENCRYPT_KEY")
14+
cf login --skip-ssl-validation -a "$API_ENDPOINT" -u "$API_USER" -p "$API_PASSWORD_DECRYPTED"
15+
1416
#Create splunk-ci org and space
1517
if [ "`cf o | grep "splunk-ci-org"`" == "splunk-ci-org" ]; then
1618
echo "splunk-ci-org org already exists"
@@ -21,4 +23,13 @@ else
2123
cf target -o splunk-ci-org
2224
cf create-space splunk-ci-space
2325
cf target -o "splunk-ci-org" -s "splunk-ci-space"
26+
fi
27+
28+
gem install cf-uaac
29+
uaac target "$API_UAA_ENDPOINT" --skip-ssl-validation
30+
API_CLIENT_PASSWORD_DECRYPTED=$(echo "$API_CLIENT_PASSWORD" | openssl aes-256-cbc -d -pbkdf2 -a -pass pass:"$ENCRYPT_KEY")
31+
uaac token client get "$API_USER" -s "$API_CLIENT_PASSWORD_DECRYPTED"
32+
33+
if [ $(uaac client get "$CLIENT_ID" | grep -woc "$CLIENT_ID") -eq 0 ]; then
34+
uaac client add "$CLIENT_ID" --name splunk-firehose --secret "$CLIENT_SECRET" --authorized_grant_types client_credentials,refresh_token --authorities doppler.firehose,cloud_controller.admin_read_only
2435
fi

.github/tile-builder.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
#!/usr/bin/env bash
22
echo "start"
33
set -e
4-
wget https://github.com/cf-platform-eng/tile-generator/releases/download/v13.0.2/pcf_linux-64bit > /dev/null 2>&1
4+
wget https://github.com/cf-platform-eng/tile-generator/releases/download/v15.0.2/pcf_linux-64bit > /dev/null 2>&1
55
chmod +x pcf_linux-64bit
66
sudo mv pcf_linux-64bit /usr/local/bin/tile
77
python3 -m venv tile-generator-env > /dev/null 2>&1
88
source tile-generator-env/bin/activate
99
echo "Installing tile-generator..."
1010
pip install wheel
1111
pip install jinja2==3.0.3
12+
pip install setuptools
1213
pip install tile-generator
1314
cd tile
1415
echo "Installing bosh..."

.github/update_manifest.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
set -e
33
#Set below params in github env variable settings
44
# API_ENDPOINT, API_USER, API_PASSWORD, SPLUNK_TOKEN, SPLUNK_HOST, SPLUNK_INDEX, SPLUNK_METRIC_INDEX
5+
API_PASSWORD_DEC=$(echo "$API_PASSWORD" | openssl aes-256-cbc -d -pbkdf2 -a -pass pass:"$ENCRYPT_KEY")
6+
echo "$API_PASSWORD_DEC"
57
#Update manifest for deployment
68
sed -i 's@API_ENDPOINT:.*@'"API_ENDPOINT: $API_ENDPOINT"'@' scripts/ci_nozzle_manifest.yml
79
sed -i 's@API_USER:.*@'"API_USER: $API_USER"'@' scripts/ci_nozzle_manifest.yml
8-
sed -i 's@API_PASSWORD:.*@'"API_PASSWORD: $API_PASSWORD"'@' scripts/ci_nozzle_manifest.yml
10+
sed -i 's@API_PASSWORD:.*@'"API_PASSWORD: $API_PASSWORD_DEC"'@' scripts/ci_nozzle_manifest.yml
911
sed -i 's@CLIENT_ID:.*@'"CLIENT_ID: $CLIENT_ID"'@' scripts/ci_nozzle_manifest.yml
1012
sed -i 's@CLIENT_SECRET:.*@'"CLIENT_SECRET: $CLIENT_SECRET"'@' scripts/ci_nozzle_manifest.yml
1113
sed -i 's@SPLUNK_HOST:.*@'"SPLUNK_HOST: $SPLUNK_HOST"'@' scripts/ci_nozzle_manifest.yml

.github/workflows/gh-pages.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: ci
2+
on:
3+
push:
4+
branches:
5+
- main
6+
- develop
7+
tags:
8+
- "v*"
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
publish-docs:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
- name: Set up Python
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: 3.x
24+
- name: Install dependencies
25+
run: |
26+
pip install mkdocs-material
27+
pip install mike
28+
- name: Setup git user
29+
run: |
30+
git config --global user.name ${{github.actor}}
31+
git config --global user.email ${{ github.actor }}@users.noreply.github.com
32+
- name: Build docs website
33+
run: mike deploy --push ${GITHUB_REF##*/}

0 commit comments

Comments
 (0)