Comments (4)
I like that solution 👍 Only point I'd make is to make sure we document that field as write-only so that it's clear to users of the spec
from mattermost-operator.
@Szymongib, after thinking about this for a bit I am pretty sure it's a great solution!
It meets all of the criteria that I would be looking for:
- By looking at the spec, I could see definitive values for the resources whether I had overridden any or not
- Setting a new size would update all the values
- Values could be manually tweaked after an initial size value was chosen.
I think this could really work well. What do you think @jwilander?
from mattermost-operator.
Hello @Born2Bake,
Thanks for bringing this to our attention. You are correct that we do want the operator to scale mattermost installations up and down on demand.
I just tested this and your findings seem to be correct where sizeA -> sizeB does not properly update the underlying resource counts. We will look into this and correct it.
Keep in mind that the size values are always overridden by the specific resource and replica settings. i.e. if you change either of these the operator will scale up or down as requested.
The same thing goes for the database and minio spec settings.
from mattermost-operator.
Hi @gabrieljackson,
I was thinking that the spec.Size
field could be treated as a write-only field.
Setting the field would override Replicas and Resources to appropriate values no matter if they were set manually, but the field itself would not be preserved on the CR, therefore further overrides of Replicas or Resources would not be discarded and they would not be in conflict with the spec.Size
field.
The Kubernetes leverages such behavior in for example Secrets, where stringData
field is a write-only field that on write is merged with data
and no longer present on the Secret object.
Let me know what do you think about such approach!
from mattermost-operator.
Related Issues (20)
- CVEs mitigation
- Mattermost Operator Does Not Support AWS IAM Profile for S3 Bucket Auth
- Inconsistent server behavior with several replicas (k8s) HOT 5
- Gossip traffic service / Istio injection HOT 3
- Operator does not configure port 8443 for calls
- Mattermost on Kubernetes with external MySQL database
- Postgres connection string invalid control character in URL for secret data in base64 HOT 1
- operatorhub.io still has v0.5.0 with max k8s version 1.21 as latest HOT 4
- Cannot set initial admin user with Postgres backend HOT 1
- Docs link to broken mysql-operator in k1.27.3 HOT 2
- ARM64 image is not working HOT 1
- Mattermost operator and cluster role scopes
- Mattermost is working but the cluster is reconciling
- [FEATURE]: Add support for COSI
- Service annotation 'tolerate-unready-endpoints' is deprecated HOT 1
- Postgres password rotated, can no longer connect
- Operator managed installation of mattermost with mysql and minio
- Document deployment with Gitlab
- Allow customizing ingress type and pathType directly in the mattermost spec HOT 9
- ingress.spec.ingressClassName is still not implemented
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mattermost-operator.