mobs75 opened a new pull request, #166:
URL: https://github.com/apache/openserverless-task/pull/166
## Problem
The `ops setup cluster` command fails with error:
```
The Whisk "controller" is invalid: spec.registry.auth.password: Required
value
```
This occurs because the `REGISTRY_CONFIG_SECRET_PUSH_PULL` environment
variable is not set by default.
## Solution
Add a default value using bash parameter expansion:
```yaml
password: ${REGISTRY_CONFIG_SECRET_PUSH_PULL:-changeme-registry}
```
## Changes
- File: `setup/kubernetes/whisk.yaml`
- Line 253: Added default value for registry password
## Benefits
- ✅ `ops setup cluster` works out of the box
- ✅ Backward compatible (env var can still override)
- ✅ Better user experience
- ✅ Consistent with other secrets in the template
## Testing
Tested on MicroK8s with operator version `0.1.0-incubating.2510012114`:
- Whisk CR created successfully with registry password
- All pods running (Controller, CouchDB, MongoDB, etc.)
- Registry authentication working
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]