Skip to content

Commit

Permalink
[WIP] First stab at changing to a pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
d34dh0r53 committed Nov 25, 2024
1 parent 5e74798 commit a521cd9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 15 deletions.
5 changes: 0 additions & 5 deletions api/bases/keystone.openstack.org_keystoneapis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ spec:
files. Those get added to the service config dir in /etc/<service>
. TODO: -> implement'
type: object
enableFederation:
default: false
description: Enablement of Federation configuration
type: boolean
enableSecureRBAC:
default: true
description: EnableSecureRBAC - Enable Consistent and Secure RBAC
Expand Down Expand Up @@ -524,7 +520,6 @@ spec:
required:
- containerImage
- databaseInstance
- enableFederation
- memcachedInstance
- rabbitMqClusterName
- secret
Expand Down
2 changes: 1 addition & 1 deletion api/v1beta1/keystoneapi_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ type KeystoneAPISpecCore struct {

// +kubebuilder:validation:Optional
// +OIDCFederation - parameters to configure keystone for OIDC federation
OIDCFederation KeystoneFederationSpec `json:"oidcFederation,omitempty"`
OIDCFederation *KeystoneFederationSpec `json:"oidcFederation,omitempty"`
}

// APIOverrideSpec to override the generated manifest of several child resources.
Expand Down
6 changes: 5 additions & 1 deletion api/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions config/crd/bases/keystone.openstack.org_keystoneapis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,6 @@ spec:
files. Those get added to the service config dir in /etc/<service>
. TODO: -> implement'
type: object
enableFederation:
default: false
description: Enablement of Federation configuration
type: boolean
enableSecureRBAC:
default: true
description: EnableSecureRBAC - Enable Consistent and Secure RBAC
Expand Down Expand Up @@ -524,7 +520,6 @@ spec:
required:
- containerImage
- databaseInstance
- enableFederation
- memcachedInstance
- rabbitMqClusterName
- secret
Expand Down
3 changes: 0 additions & 3 deletions controllers/keystoneapi_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -1188,9 +1188,6 @@ func (r *KeystoneAPIReconciler) generateServiceConfigMaps(
dbSecret := db.GetSecret()

enableFederation := false
if &instance.Spec.OIDCFederation != nil {
enableFederation = true
}

templateParameters := map[string]interface{}{
"memcachedServers": mc.GetMemcachedServerListString(),
Expand Down

0 comments on commit a521cd9

Please sign in to comment.