-
Notifications
You must be signed in to change notification settings - Fork 48
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
cli: add field docs to the state file #2453
Conversation
✅ Deploy Preview for constellation-docs canceled.
|
// description: | | ||
// DO NOT EDIT. State of the Constellation Kubernetes cluster. | ||
// These values are set during cluster initialization and should not be changed. | ||
ClusterValues ClusterValues `yaml:"clusterValues"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
future idea: we could back up these values in the cluster and compare against the cluster state upon apply
, similar to the attestationconfig
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should rethink custom marshaling of []byte
for the state file.
Currently, MeasurementSalt
and InitSecret
get rendered as a list of byte values, e.g.
MeasurementSalt:
- 12
- 53
- 12
- 53
// ...
Should probably be done in a separate PR however.
Otherwise looks good to me.
0df5aa9
to
47300cf
Compare
47300cf
to
2d421c6
Compare
180e342
to
1d9b72c
Compare
Coverage report
|
* add field docs to the state file * mark only optional fields * tidy * use talos encoder
Context
The state file was missing in-line documentation, aligned with what the config file has.
Proposed change(s)
Additional info
Checklist