Browse Source

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

Signed-off-by: m.nabokikh <maksim.nabokikh@flant.com>
pull/2832/head
Maksim Nabokikh 3 years ago committed by GitHub
parent
commit
e2ce0b6fca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      storage/storage.go

4
storage/storage.go

@ -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"`
}

Loading…
Cancel
Save