Skip to content

Commit

Permalink
enable tekton support
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Yuan <[email protected]>
  • Loading branch information
SamYuan1990 committed Mar 11, 2024
1 parent de0db01 commit 385a27a
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 7 deletions.
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:
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 grafana enable `+tekton_enable);
parameterExport = parameterExport + " && export TEKTON_ENABLE="+tekton_enable;
}

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

0 comments on commit 385a27a

Please sign in to comment.