Closed matofeder closed 8 months ago
We support the idea of making both the cloudName
and identityRef.name
optional, as it would offer flexibility and convenience to end-users. This approach prevents the enforcement of hardcoded values in CSPO, which would then restrict cluster-stacks creators to use only those predetermined values.
On the other hand, the idea to move cloudName
field into the secret is excellent and we fully back it.
What do you think about this @batistein, @janiskemper and @jschoone?
Hi @michal-gubricky, I also like the idea, but I also wouldn't deviate too much from the CAPO approach which currently is the same as CSPO does. But I believe that these approaches are not contradictory, right?
At the end it should be user friendly. In regards of the workflow
openstack
)It seems to be friendlier to have both, the cloudName
and the clouds.yaml
in the same secret, we just need to provide the command in the docs which can be copy-pasted.
I also like the idea, but I also wouldn't deviate too much from the CAPO approach which currently is the same as CSPO does. But I believe that these approaches are not contradictory, right?
Yes, you are right. These approaches are not contradictory.
It seems to be friendlier to have both, the cloudName and the clouds.yaml in the same secret, we just need to provide the command in the docs which can be copy-pasted.
Correct, and also requires a little change in the code.
I'm okay with this but I think @batistein has put more thought into this
/kind proposal
User Story
As a user, I want the CSPO service to come with reasonable defaults so that I can quickly set it up without much configuration. Additionally, I need the flexibility to override these defaults using optional fields in the CSPO resources.
Current State
Currently, OpenStack access is defined via clouds.yaml, stored in the secret and referenced in the OpenStackClusterStackReleaseTemplate as follows:
Both
cloudName
andidentityRef
fields are mandatory.Proposal
Both the
cloudName
andidentityRef
fields are optional, providing users with the ability to override default values in CSPO. The defaults for these fields areopenstack
forcloudName
andopenstack
for the secret name.Note: The
openstack
name of the entry in clouds.yaml file serves as a default in Horizon, see related docs