| commit | b2e632d9b89236a0e5109580b62f8381b7298a01 | [log] [tgz] |
|---|---|---|
| author | Alessio Marinelli <marinelli_alessio@yahoo.it> | Sat Oct 25 18:28:33 2025 +0200 |
| committer | Alessio Marinelli <marinelli_alessio@yahoo.it> | Sat Oct 25 18:28:33 2025 +0200 |
| tree | 04263c0048ef0d393221ba348a608d63e4d88e91 | |
| parent | 9628732b0ca2a01c8143d6fe20cb25a634798dd5 [diff] |
Add default value for registry password in Whisk CR template
Problem:
- ops setup cluster fails with 'spec.registry.auth.password: Required value'
- REGISTRY_CONFIG_SECRET_PUSH_PULL variable is often not set
- Users must manually export the variable before running ops
Solution:
- Add default value 'changeme-registry' using bash parameter expansion
- Change: password: $REGISTRY_CONFIG_SECRET_PUSH_PULL
- To: password: ${REGISTRY_CONFIG_SECRET_PUSH_PULL:-changeme-registry}
Impact:
- ops setup cluster now works without manual variable export
- Maintains backward compatibility (variable can still override default)
- Improves user experience for new installations
Tested on MicroK8s cluster with operator version 0.1.0-incubating.2510012114
Tasks automatically downloaded by the ops cli
Note the tasks are automatically downloaded from the designated branch in the CLI (currently 0.1.0) while the main branch here for testing.
You can run this branch either setting “OPS_BRANCH=main” or cloning this in a local directory named olaris.