Add Conditions to LDAPIdentityProvider's Status and start to fill them

- The ldap_upstream_watcher.go controller validates the bind secret and
  uses the Conditions to report errors. Shares some condition reporting
  logic with its sibling controller oidc_upstream_watcher.go, to the
  extent which is convenient without generics in golang.
This commit is contained in:
Ryan Richard
2021-04-12 13:53:21 -07:00
parent 05571abb74
commit 25c1f0d523
24 changed files with 732 additions and 82 deletions

View File

@@ -26,6 +26,13 @@ type LDAPIdentityProviderStatus struct {
// +kubebuilder:default=Pending
// +kubebuilder:validation:Enum=Pending;Ready;Error
Phase LDAPIdentityProviderPhase `json:"phase,omitempty"`
// Represents the observations of an identity provider's current state.
// +patchMergeKey=type
// +patchStrategy=merge
// +listType=map
// +listMapKey=type
Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type"`
}
type LDAPIdentityProviderTLSSpec struct {