-
Notifications
You must be signed in to change notification settings - Fork 172
ROX-23316: Create ACS-style snapshot for each new operator-bundle #13577
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
Merged
Merged
Changes from all commits
Commits
Show all changes
94 commits
Select commit
Hold shift + click to select a range
9b039bf
initial commit
tommartensen 7a1b818
fix operator-bundle pipeline/create-snapshot task
tommartensen 50a171e
skip
tommartensen 6093f1d
fix task
tommartensen 4aea587
provide application programmatically
tommartensen 1fb983e
da
tommartensen a2ce33b
no type
tommartensen 3c02cfe
on build level?
tommartensen 06b3f34
like this
tommartensen a59fae4
snapshot template
tommartensen b5ad154
create-snapshot
tommartensen 0adccf3
btter debug
tommartensen 5f11bd1
oi
tommartensen 3601bcb
template
tommartensen e947eec
stuff
tommartensen 6d46a2c
h
tommartensen 667ca91
lala
tommartensen 4c09367
rewrite in python
tommartensen c5c2ff0
correctly build snapshot
tommartensen ec79401
apply the snapshot
tommartensen fd62ffd
fix comma
tommartensen cb0f158
fix
tommartensen 1ad2a65
fix formatting
tommartensen 07ed2c1
refactor to script and rolebinding
tommartensen e2335d4
fix permissions
tommartensen 839e103
read git-ref/scanner from image
tommartensen b855af2
fix wait-for-image task
tommartensen bd2072f
fix
tommartensen 27ac9eb
heh
tommartensen df00660
debug
tommartensen 794e3da
ha
tommartensen 83e4492
full pipeline
tommartensen e2317a8
fix wrong parameter
tommartensen ffce1f9
fix
tommartensen 876fcc3
fix
tommartensen e08a463
expose SNAPSHOT_NAME, run after all other tasks
tommartensen 22fa6b5
remove superfluous files
tommartensen 6138099
include all components in the snapshot
tommartensen f18ae88
fix UI rendering of snapshot
tommartensen 9e85449
build arm64 instead of s390x temporarily...
tommartensen aaf944a
revert main changes, add empty line
tommartensen 13820b9
default snapshot name
tommartensen 19a203a
remove superfluous file
tommartensen a072f2e
sort IMAGE_REFS alphabetically
tommartensen aa031ef
first iteration on review comments
tommartensen 749ff20
use space as delimiter
tommartensen f2f62be
attempt to move create-acs-style-snapshot to finally
tommartensen 792d458
Revert "attempt to move create-acs-style-snapshot to finally"
tommartensen a245624
add a CI job that confirms whether all other tasks are mentioned in t…
tommartensen 6d9f48c
debug where i am
tommartensen 42c8117
fix: yq *eval*
tommartensen 9c3bbbb
add namespace to the snapshot
tommartensen d9202fa
validate component
tommartensen 65fa839
fix: no empty line at end of result
tommartensen c87fd5f
or->and
tommartensen a10584c
apply suggestions from code review to the style job
tommartensen 656c970
full speed ahead
tommartensen 65ab0d7
rename and fix speed
tommartensen dd4262a
fix UTC
tommartensen acabef6
sanitize tag so the snapshot name is a lowercase RFC 1123 subdomain
tommartensen 6cedc5d
then it was also incorect
tommartensen e171964
lowercase
tommartensen 7f3b94e
use regex to determine version suffix
tommartensen cb14abd
prepare step split
tommartensen 6f2c702
fix
tommartensen 14b24d8
provide path
tommartensen de9f500
add hints for future me
tommartensen 07c045e
apply review comments to check-konflux-pipelines.sh
tommartensen 249cdc9
Merge branch 'master' into tm/konflux-acs-style-snapshot
tommartensen 709e0fa
Add validation for required labels
tommartensen 4a6b67c
attempt to fix pipeline not starting
tommartensen bb52313
apply code review suggestions, attempt to fix pipeline
tommartensen ac4cc72
explicitly reference the pipeline definitio
tommartensen 408a92e
fix path
tommartensen 185c25d
fix resolution
tommartensen f366fe7
remove
tommartensen adceee4
revert "remove"
tommartensen 8a81a29
add a dot
tommartensen 8d08fbf
reorder functions in script
tommartensen 0a9859a
fix taskref
tommartensen 930f1ec
remove unnecessary annotations
tommartensen ebb19bc
Fix pipeline and task definitions
tommartensen 86db392
clean up
tommartensen be2211b
reorder environment variables
tommartensen adda63c
Apply suggestions from code review
tommartensen 0ca028a
apply remaining review suggestions
tommartensen 1413683
use updated wait-for-image task and refactor script into task (inline)
tommartensen a514e62
remove wait-for-image task
tommartensen d4e468d
move create-snapshot task to konflux-tasks repository
tommartensen c71d200
run full operator-bundle pipeline and snapshot
tommartensen c0ed4ea
remove source_artifact
tommartensen 1193ed4
update task references and apply suggestions from code review
tommartensen 01227b5
update bundle after merge and add description
tommartensen adf88ce
Merge branch 'master' into tm/konflux-acs-style-snapshot
tommartensen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,34 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| # This script is to ensure that modifications to our Konflux pipelines follow our expectations and conventions. | ||
| # This script is intended to be run in CI | ||
|
|
||
| set -euo pipefail | ||
|
|
||
| ensure_create_snapshot_runs_last() { | ||
| local pipeline_path=".tekton/operator-bundle-pipeline.yaml" | ||
| local task_name="create-acs-style-snapshot" | ||
| expected_runafter="$(yq eval '.spec.tasks[] | select(.name != '\"${task_name}\"') | .name' "${pipeline_path}" | sort)" | ||
| actual_runafter="$(yq eval '.spec.tasks[] | select(.name == '\"${task_name}\"') | .runAfter[]' "${pipeline_path}")" | ||
|
|
||
| echo "➤ ${pipeline_path} // checking ${task_name}: task's runAfter contents shall match the expected ones (left - expected, right - actual)." | ||
| if ! diff --side-by-side <(echo "${expected_runafter}") <(echo "${actual_runafter}"); then | ||
| echo >&2 -e " | ||
| ✗ ERROR: | ||
|
|
||
| The actual runAfter contents do not match the expectations. | ||
| To resolve: | ||
|
|
||
| 1. Open ${pipeline_path} and locate the ${task_name} task | ||
| 2. Update the runAfter attribute of this task to this list of all previous tasks in the pipeline (sorted alphabetically): | ||
|
|
||
| ${expected_runafter} | ||
| " | ||
| exit 1 | ||
| else | ||
| echo "✓ No diff detected." | ||
| fi | ||
| } | ||
|
|
||
| echo "Ensure consistency of our Konflux pipelines." | ||
| ensure_create_snapshot_runs_last |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.