SSOSettings: Add api:s (#92018)

* apis: add sso setting resource

* Implement Storage for sso

* Rename packages

* Merge identity and sso package

* Update table format and expose GetNestedBool

* Restructure identity api package
This commit is contained in:
Karl Persson
2024-08-21 09:16:47 +02:00
committed by GitHub
parent 80a69319b0
commit b6540e2a18
22 changed files with 938 additions and 435 deletions
@@ -101,6 +101,14 @@ func (u *Unstructured) GetNestedString(fields ...string) string {
return val
}
func (u *Unstructured) GetNestedBool(fields ...string) bool {
val, found, err := unstructured.NestedBool(u.Object, fields...)
if !found || err != nil {
return false
}
return val
}
func (u *Unstructured) GetNestedStringSlice(fields ...string) []string {
val, found, err := unstructured.NestedStringSlice(u.Object, fields...)
if !found || err != nil {