Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encode the protocol version in the CRD #1097

Merged
merged 3 commits into from
Aug 30, 2021
Merged

Encode the protocol version in the CRD #1097

merged 3 commits into from
Aug 30, 2021

Conversation

andreaTP
Copy link
Contributor

Move the version validation to the CRD from the ConfigMap.

}
.apiextensions()
.v1beta1()
.customResourceDefinitions()
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this need cluster admin / wide permissions?

Copy link
Contributor

Choose a reason for hiding this comment

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

It's probably a good idea to have a yaml that specifies exactly which permissions CLI needs to function, similar to https://github.com/lightbend/cloudflow-helm-charts/blob/main/cloudflow/templates/02-cloudflow-operator-clusterrole.yaml, what do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that's a good idea, have to think how to produce it, maybe running the cli from within the cluster and checking permissions.

val ProtocolVersion = "6"

val SupportedApplicationDescriptorVersion = 6
val ApplicationDescriptorVersion = 6
Copy link
Contributor

Choose a reason for hiding this comment

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

7?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

even ApplicationDescriptor ?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh wait. No you are right, this stays the same.

@andreaTP andreaTP merged commit 972c9ab into main Aug 30, 2021
@andreaTP andreaTP deleted the protocol-version-crd branch August 30, 2021 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants