Skip to content
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

Removing example which contains AGPL license #247

Merged
merged 1 commit into from
Apr 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/hg/vendir.lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ apiVersion: vendir.k14s.io/v1alpha1
directories:
- contents:
- hg:
changeSetTitle: Prevent wrapping filenames to preserve whitespace
sha: 180c776fe29448afa8c756ab572bab7a1cf17a06
changeSetTitle: add data-values example
sha: dc860d1ce57c92ef67aee2510592a9e333431038
path: exact-sha
- hg:
changeSetTitle: Display draft and obsolete changesets in the log
sha: ed2bf9d685dac800fcd02530f3722f4b1c3ffb1a
changeSetTitle: add data-values example
sha: dc860d1ce57c92ef67aee2510592a9e333431038
path: tag
path: vendor
kind: LockConfig
12 changes: 6 additions & 6 deletions examples/hg/vendir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ directories:
contents:
- path: exact-sha
hg:
url: https://hg.sr.ht/~sircmpwn/hg.sr.ht
ref: 180c776fe29448afa8c756ab572bab7a1cf17a06
url: http://hg.code.sf.net/p/carvel-sample-hg-repo/sample
ref: dc860d1ce57c
includePaths:
- scss/main.scss
- concourse-overlay/*

- path: tag
hg:
url: https://hg.sr.ht/~sircmpwn/hg.sr.ht
ref: 0.11.0
url: http://hg.code.sf.net/p/carvel-sample-hg-repo/sample
ref: 0.1.1
includePaths:
- scss/main.scss
- data-values/*
661 changes: 0 additions & 661 deletions examples/hg/vendor/exact-sha/LICENSE

This file was deleted.

12 changes: 12 additions & 0 deletions examples/hg/vendor/exact-sha/concourse-overlay/README.md
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 examples/hg/vendor/exact-sha/concourse-overlay/expected.txt
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 examples/hg/vendor/exact-sha/concourse-overlay/pipeline.yml
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 examples/hg/vendor/exact-sha/concourse-overlay/remove-test.yml
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
-
189 changes: 0 additions & 189 deletions examples/hg/vendor/exact-sha/scss/main.scss

This file was deleted.

Loading