mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-09-18 13:22:17 +00:00
Add newline to the end of file
This commit is contained in:
2
hack/krmFunctionBenchmark/.gitignore
vendored
2
hack/krmFunctionBenchmark/.gitignore
vendored
@@ -1,3 +1,3 @@
|
|||||||
node_modules
|
node_modules
|
||||||
dist
|
dist
|
||||||
example_tshirt/execfn/tshirt
|
example_tshirt/execfn/tshirt
|
||||||
|
|||||||
@@ -64,4 +64,4 @@ for l in "${loops[@]}"
|
|||||||
do
|
do
|
||||||
run_label_namespace_benchmark $l
|
run_label_namespace_benchmark $l
|
||||||
run_tshirt_benchmark $l
|
run_tshirt_benchmark $l
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ sudo rm -rf example_tshirt/execfn/tshirt label_namespace/execfn/dist label_names
|
|||||||
if [ "$1" == "--image" ]; then
|
if [ "$1" == "--image" ]; then
|
||||||
docker image rm label_namespace_build:latest
|
docker image rm label_namespace_build:latest
|
||||||
docker image rm tshirt_example_build:latest
|
docker image rm tshirt_example_build:latest
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -17,4 +17,4 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: nginx
|
- name: nginx
|
||||||
image: nginx
|
image: nginx
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
resources:
|
resources:
|
||||||
- data.yaml
|
- data.yaml
|
||||||
transformers:
|
transformers:
|
||||||
- transf.yaml
|
- transf.yaml
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
config.kubernetes.io/function: |-
|
config.kubernetes.io/function: |-
|
||||||
container:
|
container:
|
||||||
image: gcr.io/kustomize-functions/example-tshirt:v0.2.0
|
image: gcr.io/kustomize-functions/example-tshirt:v0.2.0
|
||||||
|
|||||||
@@ -13,4 +13,4 @@ WORKDIR $BUILD_HOME/functions/examples/injection-tshirt-sizes/image/
|
|||||||
|
|
||||||
ENV CGO_ENABLED=0
|
ENV CGO_ENABLED=0
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
RUN go build -o tshirt .
|
RUN go build -o tshirt .
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ BUILD_HOME=/usr/local/build
|
|||||||
|
|
||||||
docker build -t $IMAGE_LABEL .
|
docker build -t $IMAGE_LABEL .
|
||||||
|
|
||||||
docker run --rm -v $(pwd):/out $IMAGE_LABEL cp -r $BUILD_HOME/functions/examples/injection-tshirt-sizes/image/tshirt /out
|
docker run --rm -v $(pwd):/out $IMAGE_LABEL cp -r $BUILD_HOME/functions/examples/injection-tshirt-sizes/image/tshirt /out
|
||||||
|
|||||||
@@ -17,4 +17,4 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: nginx
|
- name: nginx
|
||||||
image: nginx
|
image: nginx
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
resources:
|
resources:
|
||||||
- data.yaml
|
- data.yaml
|
||||||
transformers:
|
transformers:
|
||||||
- transf.yaml
|
- transf.yaml
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ metadata:
|
|||||||
annotations:
|
annotations:
|
||||||
config.kubernetes.io/function: |-
|
config.kubernetes.io/function: |-
|
||||||
exec:
|
exec:
|
||||||
path: ./tshirt
|
path: ./tshirt
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ metadata:
|
|||||||
image: gcr.io/kpt-functions/label-namespace@sha256:4f030738d6d25a207641ca517916431517578bd0eb8d98a8bde04e3bb9315dcd
|
image: gcr.io/kpt-functions/label-namespace@sha256:4f030738d6d25a207641ca517916431517578bd0eb8d98a8bde04e3bb9315dcd
|
||||||
data:
|
data:
|
||||||
label_name: my-ns-name
|
label_name: my-ns-name
|
||||||
label_value: function-test
|
label_value: function-test
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: my-namespace
|
name: my-namespace
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: another-namespace
|
name: another-namespace
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ resources:
|
|||||||
- data1.yaml
|
- data1.yaml
|
||||||
- data2.yaml
|
- data2.yaml
|
||||||
transformers:
|
transformers:
|
||||||
- containerfn.yaml
|
- containerfn.yaml
|
||||||
|
|||||||
@@ -12,4 +12,4 @@ RUN git clone https://github.com/GoogleContainerTools/kpt-functions-sdk.git .
|
|||||||
RUN git checkout tags/release-kpt-functions-v0.14.2
|
RUN git checkout tags/release-kpt-functions-v0.14.2
|
||||||
WORKDIR $BUILD_HOME/ts/hello-world/
|
WORKDIR $BUILD_HOME/ts/hello-world/
|
||||||
RUN npm install
|
RUN npm install
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|||||||
@@ -5,4 +5,4 @@ BUILD_HOME=/usr/local/build
|
|||||||
|
|
||||||
docker build -t $IMAGE_LABEL .
|
docker build -t $IMAGE_LABEL .
|
||||||
|
|
||||||
docker run --rm -v $(pwd):/out $IMAGE_LABEL cp -r $BUILD_HOME/ts/hello-world/dist $BUILD_HOME/ts/hello-world/node_modules /out
|
docker run --rm -v $(pwd):/out $IMAGE_LABEL cp -r $BUILD_HOME/ts/hello-world/dist $BUILD_HOME/ts/hello-world/node_modules /out
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: my-namespace
|
name: my-namespace
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
name: another-namespace
|
name: another-namespace
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ metadata:
|
|||||||
path: ./fn.sh
|
path: ./fn.sh
|
||||||
data:
|
data:
|
||||||
label_name: my-ns-name
|
label_name: my-ns-name
|
||||||
label_value: function-test
|
label_value: function-test
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
node ./dist/label_namespace_run.js
|
node ./dist/label_namespace_run.js
|
||||||
|
|||||||
@@ -2,4 +2,4 @@ resources:
|
|||||||
- data1.yaml
|
- data1.yaml
|
||||||
- data2.yaml
|
- data2.yaml
|
||||||
transformers:
|
transformers:
|
||||||
- execfn.yaml
|
- execfn.yaml
|
||||||
|
|||||||
@@ -25,4 +25,4 @@ Two functions are used:
|
|||||||
- `gcr.io/kustomize-functions/example-tshirt` ([link](https://github.com/kubernetes-sigs/kustomize/blob/master/functions/examples/injection-tshirt-sizes/image/main.go))
|
- `gcr.io/kustomize-functions/example-tshirt` ([link](https://github.com/kubernetes-sigs/kustomize/blob/master/functions/examples/injection-tshirt-sizes/image/main.go))
|
||||||
- `gcr.io/kpt-functions/label-namespace` ([link](https://github.com/GoogleContainerTools/kpt-functions-sdk/blob/master/ts/hello-world/src/label_namespace.ts))
|
- `gcr.io/kpt-functions/label-namespace` ([link](https://github.com/GoogleContainerTools/kpt-functions-sdk/blob/master/ts/hello-world/src/label_namespace.ts))
|
||||||
|
|
||||||
`example-tshirt` is a Go function. `label-namespace` is a JS function. Both of them are used as transformers.
|
`example-tshirt` is a Go function. `label-namespace` is a JS function. Both of them are used as transformers.
|
||||||
|
|||||||
Reference in New Issue
Block a user