-
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
Config variables mapping to and from machine registration crd #51
Comments
Elemental Install data addressed in #64 |
@fgiudici I think we need to include yaml labels everywhere, I found more inconsistencies on registration and system agent structs. I think I finally understood why it is not failing even being inconsistent. Note that manually writing a Take the example of the
It all works fine since the fields we are actually including manually in a machine registration yaml are all part of the install or cloud-config and these are already including yaml and json labels. This setup works, but is ugly as hell and as it all depends on our side I strongly believe we should add yaml labels everywhere in addition to the json ones. Also it is the right time to apply some criteria and decide if, for instance, we want |
Also adding the elemental:
registration:
url: https://ranchersuse/elemental/registration/kjd7q4nbf8kkb9slvlbchxt45p676dj67ll8bb5x5b4pc57dl5fkzq
cacert: |-
-----BEGIN CERTIFICATE-----
MIIBpzCCAU2gAwIBAgIBADAKBggqhkjOPQQDAjA7MRwwGgYDVQQKExNkeW5hbWlj
bGlzdGVuZXItb3JnMRswGQYDVQQDExJkeW5hbWljbGlzdGVuZXItY2EwHhcNMjIw
NzE0MDgzMTM3WhcNMzIwNzExMDgzMTM3WjA7MRwwGgYDVQQKExNkeW5hbWljbGlz
dGVuZXItb3JnMRswGQYDVQQDExJkeW5hbWljbGlzdGVuZXItY2EwWTATBgcqhkjO
PQIBBggqhkjOPQMBBwNCAARALzVe/qVHEhX4doODreuKydYKvLHRTJ+eG85jIimV
VN001MshCh3KusuYBuGH8GSY+Zz4ieJDICEnBOrdCVp2o0IwQDAOBgNVHQ8BAf8E
BAMCAqQwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUa+46+mWZVkp/r/S9wZdo
KS7ZNsswCgYIKoZIzj0EAwIDSAAwRQIhAMKAV3P9mLAu0Esrcg0iDUq+Q46+H4/r
XXseh20+NnXHAiABBrj0T6CiLScUxxRr3m9ciP4bIHDKQPMJPRtOJIK9BA==
-----END CERTIFICATE----- IMHO way nicer |
Yep, thanks @davidcassany . Agree on all these, will take care of it 👍🏼 |
the machine registration crd spec is what ends up populating the
config.Config
struct inelemental-operator
, when registering and fetching all the data it looks like the data we retrieve does not matchconfig.Config
variable names. It is unclear to me how this marshal and unmarshal process works, but I am pretty convinced we have some divergences in there.I also bet this could be related to #46 as we already have a
noSMBIOS
variable insideconfig.Config.Elemental.Registration
.The text was updated successfully, but these errors were encountered: