ignore KEK wrapper struct for codegen (#18973)

Our codec code generation doesn't honor `json:"..."` tags which, if we were to
ever implement `json.Marshaller` for the `KeyEncryptionKeyWrapper` struct, would
break the on-disk format of all the existing KEKs.

As a precaution, add this struct to the code generator's ignore list (just like
we have done with `IdentityClaims`).
This commit is contained in:
Tim Gross
2023-11-02 11:25:40 -04:00
committed by GitHub
parent 6d0893cf57
commit 142884b384

View File

@@ -11,5 +11,5 @@ codecgen \
-d 100 \
-t codegen_generated \
-o structs.generated.go \
-nr="(^ACLCache$)|(^IdentityClaims$)|(^OIDCDiscoveryConfig$)" \
-nr="(^ACLCache$)|(^IdentityClaims$)|(^OIDCDiscoveryConfig$)|(^KeyEncryptionKeyWrapper$)" \
${FILES}