-
Notifications
You must be signed in to change notification settings - Fork 17
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
Define rationale for Habitat type structure #182
Comments
I think we probably don't need to have a |
@asymmetric Can you paste a sample manifest file of your idea for better clarity. Also as a side note according to the API version we are in beta not alpha, so these changes should have been done before that. |
Basically, apiVersion: habitat.sh/v1beta1
kind: Habitat
metadata:
name: example-configured-habitat
spec:
image: kinvolk/redis-hab
count: 1
service-name: db
topology: standalone
group: redisdb
configSecretName: user-toml |
well I'm against needless API breakage but I'm not sure it's the case in here. However, we should try our best to design this well right now if we're breaking again and also consult Chef folks about breaking this API and how it affects the k8s and helm exporters. |
After thinking about this some more, I think the current structure is fine, and that Basically, the "rationale" IMO is that I've opened an issue to investigate whether that makes sense. |
As I said in #269, I think that a rationale could be k8s specific stuff vs habitat specific stuff. |
It's not totally clear at the moment why we put keys where we put them in the
Habitat
type.Service
subtype?I say this because I'm having trouble justifying why
configSecretName
should be underService
, rather than underHabitat
directly.Also, every time we have to add a new field, we should clearly know where.
I thought a clear rationale was: every field that represents a flag passed to the supervisor should go under
Service
. So for example:--name
,--topology
,--bind
.If that's true, than
configSecretName
should be move up.But I wonder if such a rationale makes sense from the point of view of a user. It is not based on a logical grouping, rather it's based on inheritance (of the flags used by an existing tool).
The text was updated successfully, but these errors were encountered: