Skip to content

Commit d11caf0

Browse files
authored
Change image pull policy to IfNotPresent (OpenFunction#82)
Signed-off-by: Benjamin Huo <[email protected]>
1 parent fd62ab5 commit d11caf0

File tree

23 files changed

+59
-59
lines changed

23 files changed

+59
-59
lines changed

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.

functions/knative/greeting-node/greeting.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: sample-node-knative
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:
@@ -24,8 +24,8 @@ spec:
2424
maxReplicas: 2
2525
template:
2626
containers:
27-
- name: function
28-
imagePullPolicy: Always
27+
- name: function # DO NOT change this
28+
imagePullPolicy: IfNotPresent
2929
params:
3030
# default to "production"
3131
NODE_ENV: dev

functions/knative/hello-world-dotnet/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ spec:
3131
runtime: "knative" # default to knative
3232
template:
3333
containers:
34-
- name: function
35-
imagePullPolicy: IfNotPresent
34+
- name: function # DO NOT change this
35+
imagePullPolicy: IfNotPresent
3636
```

functions/knative/hello-world-go/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ You can create this secret by editing the ``REGISTRY_SERVER``, ``REGISTRY_USER``
5252
metadata:
5353
name: function-sample
5454
spec:
55-
image: "<your registry name>/sample-go-func:latest"
55+
image: "<your registry name>/sample-go-func:v1"
5656
```
5757
5858
Use the following command to create this Function:

functions/knative/hello-world-go/function-sample.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: function-sample
55
spec:
66
version: "v2.0.0"
7-
image: "openfunctiondev/sample-go-func:latest"
7+
image: "openfunctiondev/sample-go-func:v1"
88
imageCredentials:
99
name: push-secret
1010
port: 8080 # default to 8080
@@ -20,6 +20,6 @@ spec:
2020
serving:
2121
template:
2222
containers:
23-
- name: function
24-
imagePullPolicy: Always
23+
- name: function # DO NOT change this
24+
imagePullPolicy: IfNotPresent
2525
runtime: "knative"

functions/knative/hello-world-java/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ metadata:
1414
name: java-sample
1515
spec:
1616
version: "v1.0.0"
17-
image: "<your registry name>/sample-java-func:latest"
17+
image: "<your registry name>/sample-java-func:v1"
1818
imageCredentials:
1919
name: push-secret
2020
port: 8080 # default to 8080
@@ -31,6 +31,6 @@ spec:
3131
runtime: knative # default to knative
3232
template:
3333
containers:
34-
- name: function
35-
imagePullPolicy: Always
34+
- name: function # DO NOT change this
35+
imagePullPolicy: IfNotPresent
3636
```

functions/knative/hello-world-node/commonjs/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ metadata:
1414
name: node-sample
1515
spec:
1616
version: "v1.0.0"
17-
image: "<your registry name>/sample-node-func:latest"
17+
image: "<your registry name>/sample-node-func:v1"
1818
imageCredentials:
1919
name: push-secret
2020
port: 8080 # default to 8080
@@ -31,6 +31,6 @@ spec:
3131
runtime: "knative" # default to knative
3232
template:
3333
containers:
34-
- name: function
35-
imagePullPolicy: Always
34+
- name: function # DO NOT change this
35+
imagePullPolicy: IfNotPresent
3636
```

functions/knative/hello-world-node/commonjs/function-sample.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: node-sample
55
spec:
66
version: "v1.0.0"
7-
image: "<your registry name>/sample-node-func:latest"
7+
image: "<your registry name>/sample-node-func:v1"
88
imageCredentials:
99
name: push-secret
1010
port: 8080 # default to 8080
@@ -21,5 +21,5 @@ spec:
2121
runtime: "knative" # default to knative
2222
template:
2323
containers:
24-
- name: function
25-
imagePullPolicy: Always
24+
- name: function # DO NOT change this
25+
imagePullPolicy: IfNotPresent

functions/knative/hello-world-node/esm/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ metadata:
1818
name: node-sample
1919
spec:
2020
version: "v1.0.0"
21-
image: "<your registry name>/sample-node-esm-func:latest"
21+
image: "<your registry name>/sample-node-esm-func:v1"
2222
imageCredentials:
2323
name: push-secret
2424
port: 8080 # default to 8080
@@ -35,6 +35,6 @@ spec:
3535
runtime: "knative" # default to knative
3636
template:
3737
containers:
38-
- name: function
39-
imagePullPolicy: Always
38+
- name: function # DO NOT change this
39+
imagePullPolicy: IfNotPresent
4040
```

functions/knative/hello-world-node/esm/function-sample.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ metadata:
44
name: node-sample
55
spec:
66
version: "v1.0.0"
7-
image: "<your registry name>/sample-node-esm-func:latest"
7+
image: "<your registry name>/sample-node-esm-func:v1"
88
imageCredentials:
99
name: push-secret
1010
port: 8080 # default to 8080
@@ -21,5 +21,5 @@ spec:
2121
runtime: "knative" # default to knative
2222
template:
2323
containers:
24-
- name: function
25-
imagePullPolicy: Always
24+
- name: function # DO NOT change this
25+
imagePullPolicy: IfNotPresent

functions/knative/hello-world-python/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ metadata:
3535
name: python-sample
3636
spec:
3737
version: "v1.0.0"
38-
image: "<your registry name>/sample-python-func:latest"
38+
image: "<your registry name>/sample-python-func:v1"
3939
imageCredentials:
4040
name: push-secret
4141
port: 8080 # default to 8080
@@ -53,6 +53,6 @@ spec:
5353
runtime: knative # default to knative
5454
template:
5555
containers:
56-
- name: function
57-
imagePullPolicy: Always
56+
- name: function # DO NOT change this
57+
imagePullPolicy: IfNotPresent
5858
```

functions/knative/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-sync-handler
55
spec:
66
version: "v2.0.0"
7-
image: openfunctiondev/logs-sync-handler:latest
7+
image: openfunctiondev/logs-sync-handler:v2
88
imageCredentials:
99
name: push-secret
1010
build:
@@ -20,5 +20,5 @@ spec:
2020
runtime: "knative"
2121
template:
2222
containers:
23-
- name: function
24-
imagePullPolicy: Always
23+
- name: function # DO NOT change this
24+
imagePullPolicy: IfNotPresent

functions/knative/with-output-binding/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ serving:
4444
value: "false"
4545
template:
4646
containers:
47-
- name: function
48-
imagePullPolicy: Always
47+
- name: function # DO NOT change this
48+
imagePullPolicy: IfNotPresent
4949
```
5050
5151
Use the following command to create the function:

functions/knative/with-output-binding/function-front.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: "v1.0.0"
15-
image: "openfunctiondev/sample-knative-dapr:latest"
15+
image: "openfunctiondev/sample-knative-dapr:v1"
1616
imageCredentials:
1717
name: push-secret
1818
port: 8080 # default to 8080
@@ -51,5 +51,5 @@ spec:
5151
value: "function-front"
5252
template:
5353
containers:
54-
- name: function
55-
imagePullPolicy: Always
54+
- name: function # DO NOT change this
55+
imagePullPolicy: IfNotPresent

0 commit comments

Comments
 (0)