chore: Add a comment about config/email JSON tag bug (#2830)

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
This commit is contained in:
Maksim Nabokikh
2023-02-16 21:40:05 +04:00
committed by GitHub
parent 7016a82589
commit e2ce0b6fca
+4
View File
@@ -368,6 +368,10 @@ type Connector struct {
ResourceVersion string `json:"resourceVersion"`
// Config holds all the configuration information specific to the connector type. Since there
// no generic struct we can use for this purpose, it is stored as a byte stream.
//
// NOTE: This is a bug. The JSON tag should be `config`.
// However, fixing this requires migrating Kubernetes objects for all previously created connectors,
// or making Dex reading both tags and act accordingly.
Config []byte `json:"email"`
}