Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable tekton support #108

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 43 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- uses: ./
with:
ebpfprovider: ${{matrix.ebpf_provider}}
local_dev_cluster_version: v0.0.3
local_dev_cluster_version: v0.0.4
cluster_provider: ${{matrix.cluster_provider}}
- name: verify
run: |
Expand All @@ -62,19 +62,56 @@ jobs:
test_local_cluster_with_prometheus_grafana:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: test_local_cluster_with_prometheus_grafana should be test_local_cluster_with_prometheus_grafana_tekton?

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
cluster_provider: [kind, microshift]
ebpf_provider: [libbpf]
include:
- cluster_provider: kind
ebpf_provider: libbpf
prometheus_operator_version: v0.12.0
PROMETHEUS_ENABLE: false
GRAFANA_ENABLE: false
TEKTON_ENABLE: false
- cluster_provider: kind
ebpf_provider: libbpf
prometheus_operator_version: v0.12.0
PROMETHEUS_ENABLE: true
GRAFANA_ENABLE: true
TEKTON_ENABLE: false
- cluster_provider: kind
ebpf_provider: libbpf
prometheus_operator_version: v0.12.0
PROMETHEUS_ENABLE: false
GRAFANA_ENABLE: false
TEKTON_ENABLE: true
- cluster_provider: kind
ebpf_provider: libbpf
prometheus_operator_version: v0.12.0
PROMETHEUS_ENABLE: true
GRAFANA_ENABLE: true
TEKTON_ENABLE: true
- cluster_provider: microshift
ebpf_provider: libbpf
prometheus_operator_version: v0.12.0
PROMETHEUS_ENABLE: false
GRAFANA_ENABLE: false
TEKTON_ENABLE: false
- cluster_provider: microshift
ebpf_provider: libbpf
prometheus_operator_version: v0.12.0
PROMETHEUS_ENABLE: true
GRAFANA_ENABLE: true
TEKTON_ENABLE: false
steps:
- uses: actions/checkout@v4
- uses: ./
with:
ebpfprovider: ${{matrix.ebpf_provider}}
cluster_provider: ${{matrix.cluster_provider}}
local_dev_cluster_version: v0.0.3
prometheus_enable: true
local_dev_cluster_version: v0.0.4
prometheus_enable: ${{matrix.PROMETHEUS_ENABLE}}
prometheus_operator_version: v0.12.0
grafana_enable: true
grafana_enable: ${{matrix.GRAFANA_ENABLE}}
tekton_enable: ${{matrix.TEKTON_ENABLE}}
- name: verify
run: |
./verify.sh cluster
Expand Down
5 changes: 5 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ async function setup() {
const prometheus_enable = getInputOrDefault('prometheus_enable', '');
const prometheus_operator_version = getInputOrDefault('prometheus_operator_version', '');
const grafana_enable = getInputOrDefault('grafana_enable', '');
const tekton_enable = getInputOrDefault('tekton_enable', '');

core.info(`Get local-cluster-dev with version `+ local_dev_cluster_version);
executeCommand("git clone -b "+local_dev_cluster_version+" https://github.com/sustainable-computing-io/local-dev-cluster.git --depth=1", "fail to get local-dev-cluster");
Expand All @@ -103,6 +104,10 @@ async function setup() {
core.info(`use grafana enable `+grafana_enable);
parameterExport = parameterExport + " && export GRAFANA_ENABLE="+grafana_enable;
}
if (tekton_enable.length !==0) {
core.info(`use tekton enable `+tekton_enable);
parameterExport = parameterExport + " && export TEKTON_ENABLE="+tekton_enable;
}

parameterExport = parameterExport + " && "
core.debug(parameterExport);
Expand Down
Loading