-
Notifications
You must be signed in to change notification settings - Fork 40
[WIP] RHTAP-5694 Add workspaces instead of results for parameters in pipelines #1287
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
base: main
Are you sure you want to change the base?
Changes from all commits
395b6b8
f859de7
be02832
0d10e16
236c8c6
f88c714
17d232e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| --- | ||
| apiVersion: tekton.dev/v1 | ||
| kind: PipelineRun | ||
| metadata: | ||
| name: e2e-main-pipelinerun | ||
| namespace: rhtap-shared-team-tenant | ||
| labels: | ||
| appstudio.openshift.io/component: tssc-cli | ||
| appstudio.openshift.io/application: tssc-cli | ||
| spec: | ||
| pipelineRef: | ||
| resolver: git | ||
| params: | ||
| - name: url | ||
| value: https://github.com/redhat-appstudio/tssc-cli | ||
| - name: revision | ||
| value: main | ||
| - name: pathInRepo | ||
| value: integration-tests/pipelines/e2e-main-pipeline.yaml | ||
| params: | ||
| - name: konflux-test-infra-secret | ||
| value: konflux-test-infra | ||
| - name: cloud-credential-key | ||
| value: rhtap-cloud-credentials-us-east-1 | ||
| workspaces: | ||
| - name: rhads-config | ||
| volumeClaimTemplate: | ||
| spec: | ||
| accessModes: | ||
| - ReadWriteOnce | ||
| resources: | ||
| requests: | ||
| storage: 1Gi | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| --- | ||
| apiVersion: tekton.dev/v1 | ||
| kind: PipelineRun | ||
| metadata: | ||
| generateName: e2e-periodic-pipelinerun- | ||
| spec: | ||
| pipelineRef: | ||
| resolver: git | ||
| params: | ||
| - name: url | ||
| value: https://github.com/redhat-appstudio/tssc-cli | ||
| - name: revision | ||
| value: main | ||
| - name: pathInRepo | ||
| value: integration-tests/pipelines/e2e-periodic-pipeline.yaml | ||
| params: | ||
| - name: konflux-test-infra-secret | ||
| value: konflux-test-infra | ||
| - name: cloud-credential-key | ||
| value: rhtap-cloud-credentials-us-east-1 | ||
| workspaces: | ||
| - name: rhads-config | ||
| volumeClaimTemplate: | ||
| spec: | ||
| accessModes: | ||
| - ReadWriteOnce | ||
| resources: | ||
| requests: | ||
| storage: 1Gi |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -19,9 +19,6 @@ spec: | |||||||||||||||||||||
| - name: job-spec | ||||||||||||||||||||||
| description: "Job specification metadata" | ||||||||||||||||||||||
| type: string | ||||||||||||||||||||||
| - name: rhads-config | ||||||||||||||||||||||
| description: "RHADS configuration data (single config or array of configs with separators, base64 encoded)" | ||||||||||||||||||||||
| type: string | ||||||||||||||||||||||
| - name: mode | ||||||||||||||||||||||
| description: "Pipeline mode: 'single' for single config, 'periodic' for multiple configs with separators" | ||||||||||||||||||||||
| type: string | ||||||||||||||||||||||
|
|
@@ -48,19 +45,21 @@ spec: | |||||||||||||||||||||
| description: "Context pipeline run name for labeling" | ||||||||||||||||||||||
| type: string | ||||||||||||||||||||||
| default: "" | ||||||||||||||||||||||
| workspaces: | ||||||||||||||||||||||
| - name: rhads-config | ||||||||||||||||||||||
| description: "Workspace containing RHADS configuration data" | ||||||||||||||||||||||
| results: | ||||||||||||||||||||||
| - name: pipeline-runs | ||||||||||||||||||||||
| description: "Array of started pipeline run names" | ||||||||||||||||||||||
| steps: | ||||||||||||||||||||||
| - name: start-pipelines | ||||||||||||||||||||||
| image: quay.io/openshift-pipeline/ci | ||||||||||||||||||||||
| workingDir: $(workspaces.rhads-config.path) | ||||||||||||||||||||||
| env: | ||||||||||||||||||||||
|
Comment on lines
56
to
58
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ❓ Verification inconclusivePin the execution image. quay.io/openshift-pipeline/ci is unpinned. Use a versioned tag+digest to ensure reproducibility and avoid supply-chain drift. Share the desired version and I’ll suggest a pinned digest. Pin the execution image 🤖 Prompt for AI Agents |
||||||||||||||||||||||
| - name: SNAPSHOT | ||||||||||||||||||||||
| value: $(params.snapshot) | ||||||||||||||||||||||
| - name: JOB_SPEC | ||||||||||||||||||||||
| value: $(params.job-spec) | ||||||||||||||||||||||
| - name: RHADS_CONFIG | ||||||||||||||||||||||
| value: $(params.rhads-config) | ||||||||||||||||||||||
| - name: MODE | ||||||||||||||||||||||
| value: $(params.mode) | ||||||||||||||||||||||
| - name: CONTEXT_PIPELINE_RUN_NAME | ||||||||||||||||||||||
|
|
@@ -93,10 +92,10 @@ spec: | |||||||||||||||||||||
|
|
||||||||||||||||||||||
| echo "Starting pipelines in mode: $MODE" | ||||||||||||||||||||||
| echo "Using Konflux metadata: namespace=$KONFLUX_NAMESPACE, app=$KONFLUX_APPLICATION_NAME, component=$KONFLUX_COMPONENT_NAME" | ||||||||||||||||||||||
| # Decode base64 encoded rhads-config | ||||||||||||||||||||||
| echo "Decoding base64 encoded rhads-config..." | ||||||||||||||||||||||
| DECODED_RHADS_CONFIG=$(echo "$RHADS_CONFIG" | base64 -d) | ||||||||||||||||||||||
| echo "Decoded rhads-config content:" | ||||||||||||||||||||||
| # Read rhads-config from workspace | ||||||||||||||||||||||
| echo "Reading rhads-config from workspace..." | ||||||||||||||||||||||
| DECODED_RHADS_CONFIG=$(cat rhads-config) | ||||||||||||||||||||||
| echo "rhads-config content:" | ||||||||||||||||||||||
| echo "$DECODED_RHADS_CONFIG" | ||||||||||||||||||||||
|
Comment on lines
+95
to
99
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Avoid logging full Dumping the entire config to logs risks leaking sensitive data. Log metadata only (e.g., presence/size), not raw content. Safer logging in this block # Read rhads-config from workspace
echo "Reading rhads-config from workspace..."
DECODED_RHADS_CONFIG=$(cat rhads-config)
- echo "rhads-config content:"
- echo "$DECODED_RHADS_CONFIG"
+ echo "rhads-config loaded from workspace."
+ echo "rhads-config size: ${`#DECODED_RHADS_CONFIG`} bytes"📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||
| # Extract images from snapshot | ||||||||||||||||||||||
| tssc_image=$(echo "${SNAPSHOT}" | jq -r '.components[] |select(.name | startswith("tssc-cli")).containerImage') | ||||||||||||||||||||||
|
|
||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.