Skip to content

Commit 7086e4f

Browse files
committed
demos --> examples
examples/ is pretty standard whereas demos/ isn't. So I just refactored that. Signed-off-by: Ahmet Alp Balkan <[email protected]>
1 parent 4d11143 commit 7086e4f

38 files changed

+38
-38
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
1. Fork the repo, develop and test your code.
1717
See the [github workflow guide].
1818
1. For _new features_, provide a markdown-based demo following
19-
the pattern established in the [demos](demos) directory.
19+
the pattern established in the [examples](examples) directory.
2020
Run `bin/pre-commit.sh` to test your demo.
2121
1. Submit a pull request.
2222

README.md

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,3 @@
1-
[KEP]: https://github.com/kubernetes/community/blob/master/keps/sig-cli/0008-kustomize.md
2-
[`make`]: https://www.gnu.org/software/make
3-
[`sed`]: https://www.gnu.org/software/sed
4-
[applied]: docs/glossary.md#apply
5-
[base]: docs/glossary.md#base
6-
[declarative configuration]: docs/glossary.md#declarative-application-management
7-
[demo]: demos/README.md
8-
[demos]: demos/README.md
9-
[imageBase]: docs/base.jpg
10-
[imageOverlay]: docs/overlay.jpg
11-
[install]: INSTALL.md
12-
[kubernetes style]: docs/glossary.md#kubernetes-style-object
13-
[kustomization]: docs/glossary.md#kustomization
14-
[overlay]: docs/glossary.md#overlay
15-
[overlays]: docs/glossary.md#overlay
16-
[release page]: https://github.com/kubernetes-sigs/kustomize/releases
17-
[resource]: docs/glossary.md#resource
18-
[resources]: docs/glossary.md#resource
19-
[sig-cli]: https://github.com/kubernetes/community/blob/master/sig-cli/README.md
20-
[variant]: docs/glossary.md#variant
21-
[variants]: docs/glossary.md#variant
22-
[workflows]: docs/workflows.md
23-
241
# kustomize
252

263
`kustomize` lets you customize raw, template-free YAML
@@ -37,7 +14,7 @@ and it's like [`sed`], in that it emits editted text.
3714

3815
**Installation**: Download a binary from the [release
3916
page], or see these [install] notes. Then try one of
40-
the tested [demos].
17+
the tested [examples].
4118

4219
## Usage
4320

@@ -126,16 +103,39 @@ you are a submodule fan).
126103
127104
Generate YAML with
128105
129-
```
106+
```sh
130107
kustomize build ~/someApp/overlays/production
131108
```
132109

133110
The YAML can be directly [applied] to a cluster:
134111

135-
> ```
112+
> ```sh
136113
> kustomize build ~/someApp/overlays/production | kubectl apply -f -
137114
> ```
138115
139116
## About
140117
141118
This tool is sponsored by [sig-cli] ([KEP]).
119+
120+
121+
[KEP]: https://github.com/kubernetes/community/blob/master/keps/sig-cli/0008-kustomize.md
122+
[`make`]: https://www.gnu.org/software/make
123+
[`sed`]: https://www.gnu.org/software/sed
124+
[applied]: docs/glossary.md#apply
125+
[base]: docs/glossary.md#base
126+
[declarative configuration]: docs/glossary.md#declarative-application-management
127+
[examples]: examples/README.md
128+
[imageBase]: docs/base.jpg
129+
[imageOverlay]: docs/overlay.jpg
130+
[install]: INSTALL.md
131+
[kubernetes style]: docs/glossary.md#kubernetes-style-object
132+
[kustomization]: docs/glossary.md#kustomization
133+
[overlay]: docs/glossary.md#overlay
134+
[overlays]: docs/glossary.md#overlay
135+
[release page]: https://github.com/kubernetes-sigs/kustomize/releases
136+
[resource]: docs/glossary.md#resource
137+
[resources]: docs/glossary.md#resource
138+
[sig-cli]: https://github.com/kubernetes/community/blob/master/sig-cli/README.md
139+
[variant]: docs/glossary.md#variant
140+
[variants]: docs/glossary.md#variant
141+
[workflows]: docs/workflows.md

bin/pre-commit.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ function testGoTest {
4343
go test -v ./...
4444
}
4545

46-
function testDemos {
47-
mdrip --mode test --label test README.md ./demos
46+
function testExamples {
47+
mdrip --mode test --label test README.md ./examples
4848
}
4949

5050
runTest testGoFmt
5151
runTest testGoImports
5252
runTest testGoVet
5353
runTest testGoTest
54-
runTest testDemos
54+
runTest testExamples
5555

5656
exit $rc

demos/README.md renamed to examples/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Demos
1+
# Examples
22

3-
These demos assume that `kustomize` is on your `$PATH`.
3+
These examples assume that `kustomize` is on your `$PATH`.
44

55
They are covered by [pre-commit](../bin/pre-commit.sh)
66
tests, and should work with HEAD
File renamed without changes.
File renamed without changes.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ mkdir -p $BASE
5151

5252
curl -s -o "$BASE/#1.yaml" "https://raw.githubusercontent.com\
5353
/kubernetes-sigs/kustomize\
54-
/master/demos/helloWorld\
54+
/master/examples/helloWorld\
5555
/{configMap,deployment,kustomization,service}.yaml"
5656
```
5757

0 commit comments

Comments
 (0)