Skip to content

Commit d11caf0

Browse files
authored
Change image pull policy to IfNotPresent (#82)
Signed-off-by: Benjamin Huo <benjamin@kubesphere.io>
1 parent fd62ab5 commit d11caf0

23 files changed

Lines changed: 59 additions & 59 deletions

File tree

functions/async/bindings/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ kind: Function
2222
metadata:
2323
name: cron-input
2424
spec:
25-
image: "<your registry name>/cron-input:latest"
25+
image: "<your registry name>/cron-input:v1"
2626
```
2727
2828
Use the following commands to create this Function:
@@ -64,7 +64,7 @@ kind: Function
6464
metadata:
6565
name: cron-input-kafka-output
6666
spec:
67-
image: "<your registry name>/cron-input-kafka-output:latest"
67+
image: "<your registry name>/cron-input-kafka-output:v1"
6868
```
6969
7070
Use the following commands to create this Function:

functions/async/bindings/cron-input-kafka-output/cron-input-kafka-output.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ metadata:
1212
- plugin-example
1313
spec:
1414
version: "v2.0.0"
15-
image: openfunctiondev/cron-input-kafka-output:latest
15+
image: openfunctiondev/cron-input-kafka-output:v1
1616
imageCredentials:
1717
name: push-secret
1818
build:
@@ -27,8 +27,8 @@ spec:
2727
serving:
2828
template:
2929
containers:
30-
- name: function
31-
imagePullPolicy: Always
30+
- name: function # DO NOT change this
31+
imagePullPolicy: IfNotPresent
3232
runtime: "async"
3333
inputs:
3434
- name: cron

functions/async/bindings/cron-input/cron-input.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: cron-input
55
spec:
66
version: "v2.0.0"
7-
image: openfunctiondev/cron-input:latest
7+
image: openfunctiondev/cron-input:v1
88
imageCredentials:
99
name: push-secret
1010
build:
@@ -19,8 +19,8 @@ spec:
1919
serving:
2020
template:
2121
containers:
22-
- name: function
23-
imagePullPolicy: Always
22+
- name: function # DO NOT change this
23+
imagePullPolicy: IfNotPresent
2424
runtime: "async"
2525
inputs:
2626
- name: input

functions/async/bindings/kafka-input/kafka-input.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: kafka-input
55
spec:
66
version: "v1.0.0"
7-
image: openfunctiondev/kafka-input:latest
7+
image: openfunctiondev/kafka-input:v1
88
imageCredentials:
99
name: push-secret
1010
build:
@@ -65,5 +65,5 @@ spec:
6565
value: "false"
6666
template:
6767
containers:
68-
- name: function
69-
imagePullPolicy: Always
68+
- name: function # DO NOT change this
69+
imagePullPolicy: IfNotPresent

functions/async/logs-handler-function/logs-handler-function.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: logs-async-handler
55
spec:
66
version: "v2.0.0"
7-
image: openfunctiondev/logs-async-handler:latest
7+
image: openfunctiondev/logs-async-handler:v1
88
imageCredentials:
99
name: push-secret
1010
build:
@@ -47,8 +47,8 @@ spec:
4747
lagThreshold: "20"
4848
template:
4949
containers:
50-
- name: function
51-
imagePullPolicy: Always
50+
- name: function # DO NOT change this
51+
imagePullPolicy: IfNotPresent
5252
inputs:
5353
- name: kafka
5454
component: kafka-receiver

functions/async/mqtt-io-node/async-bindings.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: sample-node-async-bindings
55
spec:
66
version: v2.0.0
7-
image: your-docker-registry/image:tag
7+
image: your-docker-registry/image:v1
88
# imageCredentials:
99
# name: your-docker-registry-secret
1010
# build:
@@ -30,8 +30,8 @@ spec:
3030
dapr.io/log-as-json: 'false'
3131
template:
3232
containers:
33-
- name: function
34-
imagePullPolicy: Always
33+
- name: function # DO NOT change this
34+
imagePullPolicy: IfNotPresent
3535
params:
3636
# default to FUNC_NAME value
3737
FUNCTION_TARGET: tryAsync

functions/async/mqtt-io-node/async-pubsub.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: sample-node-async-pubsub
55
spec:
66
version: v2.0.0
7-
image: your-docker-registry/image:tag
7+
image: your-docker-registry/image:v1
88
# imageCredentials:
99
# name: your-docker-registry-secret
1010
# build:
@@ -30,8 +30,8 @@ spec:
3030
dapr.io/log-as-json: 'false'
3131
template:
3232
containers:
33-
- name: function
34-
imagePullPolicy: Always
33+
- name: function # DO NOT change this
34+
imagePullPolicy: IfNotPresent
3535
params:
3636
# default to FUNC_NAME value
3737
FUNCTION_TARGET: tryAsync

functions/async/pubsub/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ kind: Function
5959
metadata:
6060
name: autoscaling-subscriber
6161
spec:
62-
image: "<your registry name>/autoscaling-subscriber:latest"
62+
image: "<your registry name>/autoscaling-subscriber:v1"
6363
```
6464
6565
Use the following commands to create these Functions:

functions/async/pubsub/subscriber/function-subscriber.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: autoscaling-subscriber
55
spec:
66
version: "v2.0.0"
7-
image: openfunctiondev/autoscaling-subscriber:latest
7+
image: openfunctiondev/autoscaling-subscriber:v1
88
imageCredentials:
99
name: push-secret
1010
build:
@@ -47,8 +47,8 @@ spec:
4747
lagThreshold: "20"
4848
template:
4949
containers:
50-
- name: function
51-
imagePullPolicy: Always
50+
- name: function # DO NOT change this
51+
imagePullPolicy: IfNotPresent
5252
inputs:
5353
- name: producer
5454
component: kafka-server
-7.03 MB
Binary file not shown.

0 commit comments

Comments
 (0)