@@ -130,14 +130,14 @@ func (v *GatheredResource) UnmarshalJSON(data []byte) error {
130130 return nil
131131}
132132
133- // DynamicData is the DataReading.Data returned by the k8s .DataGathererDynamic
133+ // DynamicData is the DataReading.Data returned by the k8sdynamic .DataGathererDynamic
134134// gatherer
135135type DynamicData struct {
136136 // Items is a list of GatheredResource
137137 Items []* GatheredResource `json:"items"`
138138}
139139
140- // DiscoveryData is the DataReading.Data returned by the k8s.ConfigDiscovery
140+ // DiscoveryData is the DataReading.Data returned by the k8sdiscovery.DataGathererDiscovery
141141// gatherer
142142type DiscoveryData struct {
143143 // ClusterID is the unique ID of the Kubernetes cluster which this snapshot was taken from.
@@ -149,3 +149,18 @@ type DiscoveryData struct {
149149 // See https://godoc.org/k8s.io/apimachinery/pkg/version#Info
150150 ServerVersion * version.Info `json:"server_version"`
151151}
152+
153+ // OIDCDiscoveryData is the DataReading.Data returned by the oidc.OIDCDiscovery
154+ // gatherer
155+ type OIDCDiscoveryData struct {
156+ // OIDCConfig contains OIDC configuration data from the API server's
157+ // `/.well-known/openid-configuration` endpoint
158+ OIDCConfig map [string ]any `json:"openid_configuration,omitempty"`
159+ // OIDCConfigError contains any error encountered while fetching the OIDC configuration
160+ OIDCConfigError string `json:"openid_configuration_error,omitempty"`
161+
162+ // JWKS contains JWKS data from the API server's `/openid/v1/jwks` endpoint
163+ JWKS map [string ]any `json:"jwks,omitempty"`
164+ // JWKSError contains any error encountered while fetching the JWKS
165+ JWKSError string `json:"jwks_error,omitempty"`
166+ }
0 commit comments