Skip to content

Commit

Permalink
Merge pull request #1072 from lamw/issue-1068
Browse files Browse the repository at this point in the history
  • Loading branch information
lamw authored Jun 18, 2023
2 parents 1439aa4 + 1797894 commit 1e5cd23
Show file tree
Hide file tree
Showing 56 changed files with 111 additions and 79 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.4
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.5

COPY handler.ps1 handler.ps1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ Create the container image locally to test your function logic.
Mac/Linux
```
# change the IMAGE name accordingly, example below for Docker
export IMAGE=<docker-username>/kn-pcli-datastore-usage-email:1.0
export TAG=<version>
export IMAGE=<docker-username>/kn-pcli-datastore-usage-email:${TAG}
docker build -t ${IMAGE} .
```

Windows
```
# change the IMAGE name accordingly, example below for Docker
$IMAGE="<docker-username>/kn-pcli-datastore-usage-email:1.0"
$TAG=<version>
$IMAGE="<docker-username>/kn-pcli-datastore-usage-email:${TAG}"
docker build -t ${IMAGE} .
```
# Step 2 - Test
Expand Down Expand Up @@ -58,12 +60,14 @@ If you built a custom image in Step 1, comment out the default `IMAGE` command b

Mac/Linux
```console
export IMAGE=us.gcr.io/daisy-284300/veba/kn-pcli-datastore-usage-email:1.0
export TAG=<version>
export IMAGE=us.gcr.io/daisy-284300/veba/kn-pcli-datastore-usage-email:${TAG}
docker run -e FUNCTION_DEBUG=true -e PORT=8080 --env-file docker-test-env-variable -it --rm -p 8080:8080 ${IMAGE}
```
Windows
```console
$IMAGE="us.gcr.io/daisy-284300/veba/kn-pcli-datastore-usage-email:1.0"
$TAG=<version>
$IMAGE="us.gcr.io/daisy-284300/veba/kn-pcli-datastore-usage-email:${TAG}"
docker run -e FUNCTION_DEBUG=true -e PORT=8080 --env-file docker-test-env-variable -it --rm -p 8080:8080 ${IMAGE}
```
If you are not using the custom attribute functionality, you can test the function without making any changes. You can skip the next section.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
autoscaling.knative.dev/minScale: "1"
spec:
containers:
- image: us.gcr.io/daisy-284300/veba/kn-pcli-datastore-usage-email:1.0
- image: us.gcr.io/daisy-284300/veba/kn-pcli-datastore-usage-email:1.1
envFrom:
- secretRef:
name: datastore-secret
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.4
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.5

COPY handler.ps1 handler.ps1

Expand Down
12 changes: 8 additions & 4 deletions examples/knative/powercli/kn-pcli-ha-restarted-vms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ Create the container image locally to test your function logic.
Mac/Linux
```
# change the IMAGE name accordingly, example below for Docker
export IMAGE=<docker-username>/kn-pcli-ha-restarted-vms:1.0
export TAG=<version>
export IMAGE=<docker-username>/kn-pcli-ha-restarted-vms:${TAG}
docker build -t ${IMAGE} .
```

Windows
```
# change the IMAGE name accordingly, example below for Docker
$IMAGE="<docker-username>/kn-pcli-ha-restarted-vms:1.0"
$TAG=<version>
$IMAGE="<docker-username>/kn-pcli-ha-restarted-vms:${TAG}"
docker build -t ${IMAGE} .
```
# Step 2 - Test
Expand Down Expand Up @@ -49,12 +51,14 @@ If you built a custom image in Step 1, comment out the default `IMAGE` command b

Mac/Linux
```console
export IMAGE=us.gcr.io/daisy-284300/veba/kn-pcli-ha-restarted-vms:1.0
export TAG=<version>
export IMAGE=us.gcr.io/daisy-284300/veba/kn-pcli-ha-restarted-vms:${TAG}
docker run -e FUNCTION_DEBUG=true -e PORT=8080 --env-file docker-test-env-variable -it --rm -p 8080:8080 ${IMAGE}
```
Windows
```console
$IMAGE="us.gcr.io/daisy-284300/veba/kn-pcli-ha-restarted-vms:1.0"
$TAG=<version>
$IMAGE="us.gcr.io/daisy-284300/veba/kn-pcli-ha-restarted-vms:${TAG}"
docker run -e FUNCTION_DEBUG=true -e PORT=8080 --env-file docker-test-env-variable -it --rm -p 8080:8080 ${IMAGE}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
autoscaling.knative.dev/minScale: "1"
spec:
containers:
- image: us.gcr.io/daisy-284300/veba/kn-pcli-ha-restarted-vms:1.0
- image: us.gcr.io/daisy-284300/veba/kn-pcli-ha-restarted-vms:1.1
envFrom:
- secretRef:
name: ha-secret
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.4
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.5

COPY handler.ps1 handler.ps1

Expand Down
12 changes: 8 additions & 4 deletions examples/knative/powercli/kn-pcli-hostmaint-alarms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ Create the container image locally to test your function logic.
Mac/Linux
```
# change the IMAGE name accordingly, example below for Docker
export IMAGE=<docker-username>/kn-pcli-hostmaint-alarms:1.0
export TAG=<version>
export IMAGE=<docker-username>/kn-pcli-hostmaint-alarms:${TAG}
docker build -t ${IMAGE} .
```

Windows
```
# change the IMAGE name accordingly, example below for Docker
$IMAGE="<docker-username>/kn-pcli-hostmaint-alarms:1.0"
$TAG=<version>
$IMAGE="<docker-username>/kn-pcli-hostmaint-alarms:${TAG}"
docker build -t ${IMAGE} .
```
# Step 2 - Test
Expand All @@ -43,12 +45,14 @@ If you built a custom image in Step 1, comment out the default `IMAGE` command b

Mac/Linux
```console
export IMAGE=us.gcr.io/daisy-284300/veba/kn-pcli-hostmaint-alarms:1.0
export TAG=<version>
export IMAGE=us.gcr.io/daisy-284300/veba/kn-pcli-hostmaint-alarms:${TAG}
docker run -e FUNCTION_DEBUG=true -e PORT=8080 --env-file docker-test-env-variable -it --rm -p 8080:8080 ${IMAGE}
```
Windows
```console
$IMAGE="us.gcr.io/daisy-284300/veba/kn-pcli-hostmaint-alarms:1.0"
$TAG=<version>
$IMAGE="us.gcr.io/daisy-284300/veba/kn-pcli-hostmaint-alarms:${TAG}"
docker run -e FUNCTION_DEBUG=true -e PORT=8080 --env-file docker-test-env-variable -it --rm -p 8080:8080 ${IMAGE}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
autoscaling.knative.dev/minScale: "1"
spec:
containers:
- image: us.gcr.io/daisy-284300/veba/kn-pcli-hostmaint-alarms:1.0
- image: us.gcr.io/daisy-284300/veba/kn-pcli-hostmaint-alarms:1.1
envFrom:
- secretRef:
name: hostmaint-secret
Expand Down
2 changes: 1 addition & 1 deletion examples/knative/powercli/kn-pcli-nsx-tag-sync/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.4
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.5

COPY handler.ps1 handler.ps1

Expand Down
9 changes: 6 additions & 3 deletions examples/knative/powercli/kn-pcli-nsx-tag-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ Create the container image locally to test your function logic.

```
# change the IMAGE name accordingly
export IMAGE=us.gcr.io/daisy-284300/veba/kn-pcli-nsx-tag-sync:1.2
export TAG=<version>
export IMAGE=us.gcr.io/daisy-284300/veba/kn-pcli-nsx-tag-sync:${TAG}
docker build -t ${IMAGE} .
```

Expand Down Expand Up @@ -42,7 +43,8 @@ Update the following variable names within the `docker-test-env-variable` file
Start the container image by running the following command:

```console
export IMAGE=us.gcr.io/daisy-284300/veba/kn-pcli-nsx-tag-sync:1.2
export TAG=<version>
export IMAGE=us.gcr.io/daisy-284300/veba/kn-pcli-nsx-tag-sync:${TAG}
docker run -e FUNCTION_DEBUG=true -e PORT=8080 --env-file docker-test-env-variable -it --rm -p 8080:8080 ${IMAGE}
```

Expand Down Expand Up @@ -160,7 +162,8 @@ done developing and testing your function logic.
> or `Dockerfile`.
```console
export IMAGE=us.gcr.io/daisy-284300/veba/kn-pcli-nsx-tag-sync:1.2
export TAG=<version>
export IMAGE=us.gcr.io/daisy-284300/veba/kn-pcli-nsx-tag-sync:${TAG}
docker push ${IMAGE}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
autoscaling.knative.dev/minScale: "1"
spec:
containers:
- image: us.gcr.io/daisy-284300/veba/kn-pcli-nsx-tag-sync:1.2
- image: us.gcr.io/daisy-284300/veba/kn-pcli-nsx-tag-sync:1.3
envFrom:
- secretRef:
name: tag-secret
Expand Down
2 changes: 1 addition & 1 deletion examples/knative/powercli/kn-pcli-pg-check/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.4
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.5

COPY handler.ps1 handler.ps1

Expand Down
12 changes: 8 additions & 4 deletions examples/knative/powercli/kn-pcli-pg-check/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ Create the container image locally to test your function logic.
Mac/Linux
```
# change the IMAGE name accordingly, example below for Docker
export IMAGE=<docker-username>/kn-pcli-pg-check:1.0
export TAG=<version>
export IMAGE=<docker-username>/kn-pcli-pg-check:${TAG}
docker build -t ${IMAGE} .
```

Windows
```
# change the IMAGE name accordingly, example below for Docker
$IMAGE="<docker-username>/kn-pcli-pg-check:1.0"
$TAG=<version>
$IMAGE="<docker-username>/kn-pcli-pg-check:${TAG}"
docker build -t ${IMAGE} .
```
# Step 2 - Test
Expand Down Expand Up @@ -74,12 +76,14 @@ If you built a custom image in Step 1, comment out the default `IMAGE` command b

Mac/Linux
```console
export IMAGE=us.gcr.io/daisy-284300/veba/kn-pg-check:1.0
export TAG=<version>
export IMAGE=us.gcr.io/daisy-284300/veba/kn-pg-check:${TAG}
docker run -e FUNCTION_DEBUG=true -e PORT=8080 --env-file docker-test-env-variable -it --rm -p 8080:8080 ${IMAGE}
```
Windows
```console
$IMAGE="us.gcr.io/daisy-284300/veba/kn-pcli-pg-check:1.0"
$TAG=<version>
$IMAGE="us.gcr.io/daisy-284300/veba/kn-pcli-pg-check:${TAG}"
docker run -e FUNCTION_DEBUG=true -e PORT=8080 --env-file docker-test-env-variable -it --rm -p 8080:8080 ${IMAGE}
```
# Configure the payload file
Expand Down
2 changes: 1 addition & 1 deletion examples/knative/powercli/kn-pcli-pg-check/function.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
autoscaling.knative.dev/minScale: "1"
spec:
containers:
- image: us.gcr.io/daisy-284300/veba/kn-pcli-pg-check:1.0
- image: us.gcr.io/daisy-284300/veba/kn-pcli-pg-check:1.1
envFrom:
- secretRef:
name: pg-check-secret
Expand Down
2 changes: 1 addition & 1 deletion examples/knative/powercli/kn-pcli-snapshot-cron/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.4
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.5

COPY handler.ps1 handler.ps1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
autoscaling.knative.dev/minScale: "1"
spec:
containers:
- image: us.gcr.io/daisy-284300/veba/kn-pcli-snapshot-cron:1.0
- image: us.gcr.io/daisy-284300/veba/kn-pcli-snapshot-cron:1.1
envFrom:
- secretRef:
name: snapshot-secret
Expand Down
2 changes: 1 addition & 1 deletion examples/knative/powercli/kn-pcli-tag/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.4
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.5

COPY handler.ps1 handler.ps1

Expand Down
2 changes: 1 addition & 1 deletion examples/knative/powercli/kn-pcli-tag/function.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
autoscaling.knative.dev/minScale: "1"
spec:
containers:
- image: us.gcr.io/daisy-284300/veba/kn-pcli-tag:1.4
- image: us.gcr.io/daisy-284300/veba/kn-pcli-tag:1.5
envFrom:
- secretRef:
name: tag-secret
Expand Down
2 changes: 1 addition & 1 deletion examples/knative/powercli/kn-pcli-telegram/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.4
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.5

COPY handler.ps1 handler.ps1

Expand Down
2 changes: 1 addition & 1 deletion examples/knative/powercli/kn-pcli-telegram/function.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
autoscaling.knative.dev/minScale: "1"
spec:
containers:
- image: us.gcr.io/daisy-284300/veba/kn-pcli-telegram:1.1
- image: us.gcr.io/daisy-284300/veba/kn-pcli-telegram:1.2
envFrom:
- secretRef:
name: telegram-secret
Expand Down
2 changes: 1 addition & 1 deletion examples/knative/powercli/kn-pcli-template/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.4
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.5

COPY handler.ps1 handler.ps1

Expand Down
12 changes: 8 additions & 4 deletions examples/knative/powercli/kn-pcli-template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@ Create the container image locally to test your function logic.
Mac/Linux
```
# change the IMAGE name accordingly, example below for Docker
export IMAGE=<docker-username>/kn-pcli-#REPLACE-FN-NAME#:1.0
export TAG=<version>
export IMAGE=<docker-username>/kn-pcli-#REPLACE-FN-NAME#:${TAG}
docker build -t ${IMAGE} .
```

Windows
```
# change the IMAGE name accordingly, example below for Docker
$IMAGE="<docker-username>/kn-pcli-#REPLACE-FN-NAME#:1.0"
$TAG=<version>
$IMAGE="<docker-username>/kn-pcli-#REPLACE-FN-NAME#:${TAG}"
docker build -t ${IMAGE} .
```
# Step 2 - Test
Expand All @@ -55,12 +57,14 @@ If you built a custom image in Step 1, comment out the default `IMAGE` command b

Mac/Linux
```console
export IMAGE=us.gcr.io/daisy-284300/veba/kn-pcli-#REPLACE-FN-NAME#:1.0
export TAG=<version>
export IMAGE=us.gcr.io/daisy-284300/veba/kn-pcli-#REPLACE-FN-NAME#:${TAG}
docker run -e FUNCTION_DEBUG=true -e PORT=8080 --env-file docker-test-env-variable -it --rm -p 8080:8080 ${IMAGE}
```
Windows
```console
$IMAGE="us.gcr.io/daisy-284300/veba/kn-pcli-#REPLACE-FN-NAME#:1.0"
$TAG=<version>
$IMAGE="us.gcr.io/daisy-284300/veba/kn-pcli-#REPLACE-FN-NAME#:${TAG}"
docker run -e FUNCTION_DEBUG=true -e PORT=8080 --env-file docker-test-env-variable -it --rm -p 8080:8080 ${IMAGE}
```

Expand Down
2 changes: 1 addition & 1 deletion examples/knative/powercli/kn-pcli-vds-config/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.4
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.5

COPY handler.ps1 handler.ps1

Expand Down
12 changes: 8 additions & 4 deletions examples/knative/powercli/kn-pcli-vds-config/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ Create the container image locally to test your function logic.
Mac/Linux
```
# change the IMAGE name accordingly, example below for Docker
export IMAGE=<docker-username>/kn-pcli-vds-config:1.0
export TAG=<version>
export IMAGE=<docker-username>/kn-pcli-vds-config:${TAG}
docker build -t ${IMAGE} .
```

Windows
```
# change the IMAGE name accordingly, example below for Docker
$IMAGE="<docker-username>/kn-pcli-vds-config:1.0"
$TAG=<version>
$IMAGE="<docker-username>/kn-pcli-vds-config:${TAG}"
docker build -t ${IMAGE} .
```
# Step 2 - Test
Expand All @@ -43,12 +45,14 @@ If you built a custom image in Step 1, comment out the default `IMAGE` command b

Mac/Linux
```console
export IMAGE=us.gcr.io/daisy-284300/veba/kn-pcli-vds-config:1.0
export TAG=<version>
export IMAGE=us.gcr.io/daisy-284300/veba/kn-pcli-vds-config:${TAG}
docker run -e FUNCTION_DEBUG=true -e PORT=8080 --env-file docker-test-env-variable -it --rm -p 8080:8080 ${IMAGE}
```
Windows
```console
$IMAGE="us.gcr.io/daisy-284300/veba/kn-pcli-vds-config:1.0"
$TAG=<version>
$IMAGE="us.gcr.io/daisy-284300/veba/kn-pcli-vds-config:${TAG}"
docker run -e FUNCTION_DEBUG=true -e PORT=8080 --env-file docker-test-env-variable -it --rm -p 8080:8080 ${IMAGE}
```

Expand Down
2 changes: 1 addition & 1 deletion examples/knative/powercli/kn-pcli-vds-config/function.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ spec:
autoscaling.knative.dev/minScale: "1"
spec:
containers:
- image: us.gcr.io/daisy-284300/veba/kn-pcli-vds-config:1.0
- image: us.gcr.io/daisy-284300/veba/kn-pcli-vds-config:1.1
envFrom:
- secretRef:
name: vds-secret
Expand Down
2 changes: 1 addition & 1 deletion examples/knative/powercli/kn-pcli-vds-pg-config/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.4
FROM us.gcr.io/daisy-284300/veba/ce-pcli-base:1.5

COPY handler.ps1 handler.ps1

Expand Down
Loading

0 comments on commit 1e5cd23

Please sign in to comment.