Skip to content

Commit

Permalink
WIP. e2e flow to test the generated pipelineruns
Browse files Browse the repository at this point in the history
Signed-off-by: cmoulliard <[email protected]>
  • Loading branch information
cmoulliard committed Aug 12, 2024
1 parent b1b29eb commit cbc2db4
Show file tree
Hide file tree
Showing 4 changed files with 3,654 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/e2e-testing
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Install-tekton-test-pipelineruns

on:
workflow_dispatch:

env:
IDPBUILDER_VERSION: v0.6.0

TEKTON_VERSION: v0.60.1
TEKTON_CLIENT_VERSION: 0.37.0

jobs:
setup-idp:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install idpbuilder
run: |
version=${IDPBUILDER_VERSION}
curl -L -o ./idpbuilder.tar.gz "https://github.com/cnoe-io/idpbuilder/releases/download/${version}/idpbuilder-$(uname | awk '{print tolower($0)}')-$(uname -m | sed 's/x86_64/amd64/').tar.gz"
tar xzf idpbuilder.tar.gz
sudo mv ./idpbuilder /usr/local/bin/

idpbuilder version

- name: Install tekton client
run: |
curl -sSL "https://github.com/tektoncd/cli/releases/download/v{$TEKTON_CLIENT_VERSION}/tkn_${TEKTON_CLIENT_VERSION}_Linux_x86_64.tar.gz" -o tkn.tar.gz
sudo tar xvzf tkn.tar.gz -C /usr/local/bin/ tkn
tkn version

- name: Create an IDP cluster and install the packages
run: |
PACKAGES_DIR=manifests/idp/packages
idpbuilder create \
-p $PACKAGES_DIR/tekton \
21 changes: 21 additions & 0 deletions manifests/idp/packages/tekton/app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: tekton
namespace: argocd
labels:
app.kubernetes.io/name: tekton
spec:
destination:
namespace: tekton-pipelines
server: "https://kubernetes.default.svc"
source:
repoURL: cnoe://manifests
targetRevision: HEAD
path: "."
project: default
syncPolicy:
automated:
selfHeal: true
syncOptions:
- CreateNamespace=true
30 changes: 30 additions & 0 deletions manifests/idp/packages/tekton/cm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: v1
kind: ConfigMap
metadata:
labels:
app.kubernetes.io/instance: default
app.kubernetes.io/part-of: tekton-pipelines
name: feature-flags
namespace: tekton-pipelines
data:
await-sidecar-readiness: "true"
coschedule: "disabled"
disable-affinity-assistant: "false"
disable-creds-init: "false"
disable-inline-spec: ""
enable-api-fields: "beta"
enable-artifacts: "false"
enable-cel-in-whenexpression: "false"
enable-concise-resolver-syntax: "false"
enable-param-enum: "false"
enable-provenance-in-status: "true"
enable-step-actions: "false"
enable-tekton-oci-bundles: "false"
enforce-nonfalsifiability: "none"
keep-pod-on-cancel: "false"
require-git-ssh-secret-known-hosts: "false"
results-from: "termination-message"
running-in-environment-with-injected-sidecars: "true"
send-cloudevents-for-runs: "false"
set-security-context: "false"
trusted-resources-verification-no-match-policy: "ignore"
Loading

0 comments on commit cbc2db4

Please sign in to comment.