You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e221667
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+37-1Lines changed: 37 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -158,6 +158,42 @@ spec:
158
158
159
159
The operator will clone the repository and use the specified path as the function root directory.
160
160
161
+
### Configuring Automatic Middleware Updates
162
+
163
+
The operators main responsibility it to rebuild functions when outdated middleware is detected. Anyhow this behavior can be enabled/disabled at two levels:
164
+
165
+
#### Operator-Level Default
166
+
167
+
Configure the operator-wide default by editing the `func-operator-controller-config` ConfigMap in the operators namespace (`func-operator-system` by default):
168
+
169
+
```yaml
170
+
apiVersion: v1
171
+
kind: ConfigMap
172
+
metadata:
173
+
name: func-operator-controller-config
174
+
namespace: func-operator-system
175
+
data:
176
+
autoUpdateMiddleware: "true" # or "false" to disable by default
177
+
```
178
+
179
+
#### Per-Function Override
180
+
181
+
Individual functions can override the operator default using the `autoUpdateMiddleware` field:
autoUpdateMiddleware: false # Disable middleware updates for this function
193
+
```
194
+
195
+
**Precedence:** Function-level settings always take priority over the operator default.
196
+
161
197
## Development
162
198
163
199
### Local Development Cluster
@@ -243,7 +279,7 @@ make lint
243
279
| `repository.path` | string | No | Path to the function inside the repository. Defaults to "." |
244
280
| `repository.authSecretRef` | object | No | Reference to the auth secret for private repository authentication |
245
281
| `registry.authSecretRef` | object | No | Reference to the secret containing credentials for registry authentication |
246
-
| `autoUpdateMiddleware` | boolean | No | Defines if the operator should rebuild when outdated middleware is detected. Defaults to global operatorconfig |
282
+
| `autoUpdateMiddleware` | boolean | No | Defines if the operator should rebuild when outdated middleware is detected. When not specified, defaults to the operator-wide setting in the `func-operator-controller-config` ConfigMap (default: `true`). Function-level setting takes precedence over operator default |
0 commit comments