-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated hg example with new repo and removed old example which has AG…
…PL licence Signed-off-by: kumari tanushree <ktanushree@vmware.com>
- Loading branch information
kumari tanushree
committed
Apr 12, 2023
1 parent
ed6dfc8
commit f65ad1b
Showing
16 changed files
with
175 additions
and
1,706 deletions.
There are no files selected for viewing
This file contains 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 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 was deleted.
Oops, something went wrong.
This file contains 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,12 @@ | ||
This example shows how to remove portion of Concourse pipeline with a ytt overlay. Submitted as a [question](https://kubernetes.slack.com/archives/CH8KCCKA5/p1561562790249000) to slack. | ||
|
||
Explanation of `remove-test.yml`: | ||
|
||
- `#@overlay/match by=overlay.all` indicates to find all other documents (which may be not desirable, so you may have to add some more unique info to your pipeline to identify if you have multiple pipelines) | ||
|
||
- `#@overlay/match by="name"` tells ytt to find job that matches `name: unit` | ||
|
||
- `#@overlay/match by=overlay.subset({"task":"test"})` tells ytt to find array item that has `{"task":"test"}` in it | ||
cant use `#@overlay/match by="task"` for that last one because no all array items within `plan` have task key | ||
|
||
- `-` is an empty array item since we don't care what's inside |
10 changes: 10 additions & 0 deletions
10
examples/hg/vendor/exact-sha/concourse-overlay/expected.txt
This file contains 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,10 @@ | ||
resources: | ||
- name: booklit | ||
type: git | ||
source: | ||
uri: https://github.com/vito/booklit | ||
jobs: | ||
- name: unit | ||
plan: | ||
- get: booklit | ||
trigger: true |
11 changes: 11 additions & 0 deletions
11
examples/hg/vendor/exact-sha/concourse-overlay/pipeline.yml
This file contains 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,11 @@ | ||
resources: | ||
- name: booklit | ||
type: git | ||
source: {uri: "https://github.com/vito/booklit"} | ||
|
||
jobs: | ||
- name: unit | ||
plan: | ||
- get: booklit | ||
trigger: true | ||
- task: test |
11 changes: 11 additions & 0 deletions
11
examples/hg/vendor/exact-sha/concourse-overlay/remove-test.yml
This file contains 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,11 @@ | ||
#@ load("@ytt:overlay", "overlay") | ||
|
||
#@overlay/match by=overlay.all | ||
--- | ||
jobs: | ||
#@overlay/match by="name" | ||
- name: unit | ||
plan: | ||
#@overlay/match by=overlay.subset({"task":"test"}) | ||
#@overlay/remove | ||
- |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.