-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
currency: use kubectl and bash to interact with tekton resources
Signed-off-by: Varsha GS <[email protected]>
- Loading branch information
Showing
10 changed files
with
161 additions
and
188 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
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: git-clone-task | ||
name: ruby-git-clone-task | ||
spec: | ||
params: | ||
- name: revision | ||
|
@@ -24,7 +24,7 @@ spec: | |
apiVersion: tekton.dev/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: generate-currency-report-task | ||
name: ruby-generate-currency-report-task | ||
spec: | ||
workspaces: | ||
- name: task-pvc | ||
|
@@ -34,7 +34,7 @@ spec: | |
# 3.10.13-bookworm | ||
image: python@sha256:c970ff53939772f47b0672e380328afb50d8fd1c0568ed4f82c22effc54244fc | ||
script: | | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
/usr/bin/curl -LO https://storage.googleapis.com/kubernetes-release/release/$(/usr/bin/curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl && \ | ||
chmod +x ./kubectl && \ | ||
mv ./kubectl /usr/local/bin/kubectl | ||
|
@@ -44,15 +44,16 @@ spec: | |
python -m venv /tmp/venv | ||
source /tmp/venv/bin/activate | ||
pip install -r utils/requirements.txt | ||
pip install -r resources/requirements.txt | ||
chmod +x scripts/get-tekton-ci-output.sh && ./scripts/get-tekton-ci-output.sh | ||
python scripts/generate_report.py | ||
echo "Generated report..." | ||
cat docs/report.md | ||
--- | ||
apiVersion: tekton.dev/v1beta1 | ||
kind: Task | ||
metadata: | ||
name: upload-currency-report-task | ||
name: ruby-upload-currency-report-task | ||
spec: | ||
params: | ||
- name: github-token-secret | ||
|
@@ -74,16 +75,17 @@ spec: | |
#!/bin/sh | ||
cd /workspace | ||
git clone https://oauth2:[email protected]/instana/tracer-reports.git tracer-reports | ||
cd tracer-reports | ||
git pull origin main | ||
git clone https://oauth2:[email protected]/instana/tracer-reports.git | ||
if [ $? -eq 0 ]; then | ||
cd tracer-reports | ||
cp ../ruby-sensor/.tekton/.currency/docs/report.md ./automated/currency/ruby/report.md | ||
cp ../ruby-sensor/.tekton/.currency/docs/report.md ./automated/currency/ruby/report.md | ||
git config user.name "Instanacd PAT for GitHub Enterprise" | ||
git config user.email [email protected] | ||
git add . | ||
git commit -m "chore: Updated ruby currency report" | ||
git push origin main | ||
git config user.name "Instanacd PAT for GitHub Enterprise" | ||
git config user.email [email protected] | ||
git add . | ||
git commit -m "chore: Updated ruby currency report" | ||
git push origin main | ||
fi |
File renamed without changes.
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,94 @@ | ||
{ | ||
"table": [ | ||
{ | ||
"Package name": "Cuba", | ||
"Support Policy": "On demand", | ||
"Beta version": "No", | ||
"Cloud Native": "No" | ||
}, | ||
{ | ||
"Package name": "Rack", | ||
"Support Policy": "0-day", | ||
"Beta version": "No", | ||
"Cloud Native": "No" | ||
}, | ||
{ | ||
"Package name": "Rails", | ||
"Support Policy": "30-days", | ||
"Beta version": "No", | ||
"Cloud Native": "No" | ||
}, | ||
{ | ||
"Package name": "Rails::API", | ||
"Support Policy": "30-days", | ||
"Beta version": "No", | ||
"Cloud Native": "No" | ||
}, | ||
{ | ||
"Package name": "Rails LTS", | ||
"Support Policy": "On demand", | ||
"Beta version": "No", | ||
"Cloud Native": "No" | ||
}, | ||
{ | ||
"Package name": "Roda", | ||
"Support Policy": "30-days", | ||
"Beta version": "No", | ||
"Cloud Native": "No" | ||
}, | ||
{ | ||
"Package name": "Sinatra", | ||
"Support Policy": "30-days", | ||
"Beta version": "No", | ||
"Cloud Native": "No" | ||
}, | ||
{ | ||
"Package name": "Excon", | ||
"Support Policy": "30-days", | ||
"Beta version": "No", | ||
"Cloud Native": "Yes" | ||
}, | ||
{ | ||
"Package name": "gRPC", | ||
"Support Policy": "30-days", | ||
"Beta version": "No", | ||
"Cloud Native": "No" | ||
}, | ||
{ | ||
"Package name": "Net::HTTP", | ||
"Support Policy": "0-day", | ||
"Beta version": "No", | ||
"Cloud Native": "No" | ||
}, | ||
{ | ||
"Package name": "Rest-Client", | ||
"Support Policy": "30-days", | ||
"Beta version": "No", | ||
"Cloud Native": "No" | ||
}, | ||
{ | ||
"Package name": "Dalli", | ||
"Support Policy": "30-days", | ||
"Beta version": "No", | ||
"Cloud Native": "No" | ||
}, | ||
{ | ||
"Package name": "Resque", | ||
"Support Policy": "30-days", | ||
"Beta version": "No", | ||
"Cloud Native": "Yes" | ||
}, | ||
{ | ||
"Package name": "Sidekiq", | ||
"Support Policy": "30-days", | ||
"Beta version": "No", | ||
"Cloud Native": "Yes" | ||
}, | ||
{ | ||
"Package name": "GraphQL", | ||
"Support Policy": "30-days", | ||
"Beta version": "No", | ||
"Cloud Native": "Yes" | ||
} | ||
] | ||
} |
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.