Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Move the Protocol version to a secret#1101

Merged
andreaTP merged 4 commits into
mainfrom
protocol-version-secret
Sep 6, 2021
Merged

Move the Protocol version to a secret#1101
andreaTP merged 4 commits into
mainfrom
protocol-version-secret

Conversation

@andreaTP

@andreaTP andreaTP commented Sep 3, 2021

Copy link
Copy Markdown
Contributor

This change will enable having different Cloudflow versions deployed in separate namespaces in a cluster

case 1 => Success(protocolVersionSecret.get(0))
case x if x > 1 =>
Failure(
CliException("Multiple Cloudflow operators detected in the cluster. This is not supported. Exiting"))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It sort of is supported, but only when using operatorNamespace? (maybe specify that they must use the operatorNamespace flag instead?)

checkCRD(settings, client)

val ownerReferences = getDeploymentOwnerReferences(settings, client)
installProtocolVersion(settings, client, ownerReferences)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about adding this to helm chart?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess the cloudflow currently already has permissions to create secrets in its own namespace, so is fine like this too. But feels a bit like a helm thing. (I'm ok what is done here, just a comment)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sense, I just restored the old way of doing it, for now, doing it in code makes us faster to change it, but helm makes sense too.

@RayRoestenburg RayRoestenburg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One comment about feedback when more than one protocol version is found, if they did not specify the operatorNamespace, we could provide better feedback.

@RayRoestenburg

Copy link
Copy Markdown
Contributor

fails on format

@andreaTP andreaTP merged commit 2611245 into main Sep 6, 2021
@andreaTP andreaTP deleted the protocol-version-secret branch September 6, 2021 07:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants