-
Notifications
You must be signed in to change notification settings - Fork 67
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
Yamls are wrong #258
Comments
Hey, thanks for reporting the issue. The namespaces are populated thanks to I will fix it with the upcoming release. |
Yes, is not make sense because there are resource that you cant apply the namespace if you follow the way in that you apply the mattermost yamls. |
Hey: Also the yamls of CRD are...wrong?? Problem: In the docs say that learn more about CRD here: In the yaml doc CRD, there is a different definition for ingress option, also in this same doc say: description: 'IngressAnnotations defines annotations passed to the Ingress associated with Mattermost. Deprecated: Use Spec.Ingress.Annotations.' But in the main page of your k8s installation the file that contain CRDs is different, and of course, the ingress definition is different: Here, need to be spec.ingressAnnotations instead of Spec.Ingress.Annotations.
Other question is that why mattermost does not give us the possibility defining Kind: Mattermost to select the servicetype, NodePort for example, instead of the need to create the services by ourself. |
The CRDs here https://raw.githubusercontent.com/mattermost/mattermost-operator/master/docs/mattermost-operator/mattermost-operator.yaml are aligned with the latest released version while those https://github.com/mattermost/mattermost-operator/blob/master/config/crd/bases/installation.mattermost.com_mattermosts.yaml contain changes from master. When we do the release the whole installation file is generated from other files so that is when they will be updated. |
So, why not allign the CRD docs with the main docs if at the end is the release that we will apply? |
Sorry, not sure if I follow your suggestion, do you mean updating documentation to link to https://raw.githubusercontent.com/mattermost/mattermost-operator/master/docs/mattermost-operator/mattermost-operator.yaml instead of https://github.com/mattermost/mattermost-operator/blob/master/config/crd/bases/installation.mattermost.com_mattermosts.yaml ? |
I mean update the CRD docs with the same CRDs that appear here https://github.com/mattermost/mattermost-operator/blob/master/config/crd/bases/installation.mattermost.com_mattermosts.yaml. |
Yeah, as I mentioned it happens during the release as the old Operator would not understand changes in the CRD. |
Summary
Yamls are defined in a wrong way
Problem
In the docs, the operator are applied using this URL:
https://docs.mattermost.com/install/install-kubernetes.html
$ kubectl apply -n mattermost-operator -f https://raw.githubusercontent.com/mattermost/mattermost-operator/master/docs/mattermost-operator/mattermost-operator.yaml
The mattermost-operator.yaml define a service account that is not namespaced:
but the clusterrolebinding assume that the SA is in the namespace mattermost-operator
Also the deployment and the service does not have a namespace defined, but use the SA that suppose to be in mattermost-operator namespace.
Deployment has
serviceAccountName: mattermost-operator
Possible fixes
The text was updated successfully, but these errors were encountered: