Add newline to the end of file

This commit is contained in:
Donny Xia
2020-07-06 09:38:31 -07:00
parent c2ccfd72ad
commit f6cac7e7e8
23 changed files with 23 additions and 23 deletions

View File

@@ -1,3 +1,3 @@
node_modules node_modules
dist dist
example_tshirt/execfn/tshirt example_tshirt/execfn/tshirt

View File

@@ -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

View File

@@ -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

View File

@@ -17,4 +17,4 @@ spec:
spec: spec:
containers: containers:
- name: nginx - name: nginx
image: nginx image: nginx

View File

@@ -1,4 +1,4 @@
resources: resources:
- data.yaml - data.yaml
transformers: transformers:
- transf.yaml - transf.yaml

View File

@@ -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

View File

@@ -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 .

View File

@@ -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

View File

@@ -17,4 +17,4 @@ spec:
spec: spec:
containers: containers:
- name: nginx - name: nginx
image: nginx image: nginx

View File

@@ -1,4 +1,4 @@
resources: resources:
- data.yaml - data.yaml
transformers: transformers:
- transf.yaml - transf.yaml

View File

@@ -5,4 +5,4 @@ metadata:
annotations: annotations:
config.kubernetes.io/function: |- config.kubernetes.io/function: |-
exec: exec:
path: ./tshirt path: ./tshirt

View File

@@ -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

View File

@@ -1,4 +1,4 @@
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: my-namespace name: my-namespace

View File

@@ -1,4 +1,4 @@
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: another-namespace name: another-namespace

View File

@@ -2,4 +2,4 @@ resources:
- data1.yaml - data1.yaml
- data2.yaml - data2.yaml
transformers: transformers:
- containerfn.yaml - containerfn.yaml

View File

@@ -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

View File

@@ -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

View File

@@ -1,4 +1,4 @@
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: my-namespace name: my-namespace

View File

@@ -1,4 +1,4 @@
apiVersion: v1 apiVersion: v1
kind: Namespace kind: Namespace
metadata: metadata:
name: another-namespace name: another-namespace

View File

@@ -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

View File

@@ -1,3 +1,3 @@
#! /bin/bash #! /bin/bash
node ./dist/label_namespace_run.js node ./dist/label_namespace_run.js

View File

@@ -2,4 +2,4 @@ resources:
- data1.yaml - data1.yaml
- data2.yaml - data2.yaml
transformers: transformers:
- execfn.yaml - execfn.yaml

View File

@@ -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.