@@ -19,12 +19,12 @@ package v1beta1
1919import (
2020 "strings"
2121
22+ topologyv1 "github.com/openstack-k8s-operators/infra-operator/apis/topology/v1beta1"
2223 "github.com/openstack-k8s-operators/lib-common/modules/common/service"
2324 "github.com/openstack-k8s-operators/lib-common/modules/common/tls"
2425 "github.com/openstack-k8s-operators/lib-common/modules/common/util"
25- topologyv1 "github.com/openstack-k8s-operators/infra-operator/apis/topology/v1beta1"
26- "k8s.io/apimachinery/pkg/util/validation/field"
2726 corev1 "k8s.io/api/core/v1"
27+ "k8s.io/apimachinery/pkg/util/validation/field"
2828)
2929
3030const (
@@ -100,6 +100,11 @@ type GlanceAPITemplate struct {
100100 // TLS - Parameters related to the TLS
101101 TLS tls.API `json:"tls,omitempty"`
102102
103+ // +kubebuilder:validation:Optional
104+ // +operator-sdk:csv:customresourcedefinitions:type=spec
105+ // Auth - Parameters related to authentication
106+ Auth AuthSpec `json:"auth,omitempty"`
107+
103108 // ImageCache - It represents the struct to expose the ImageCache related
104109 // parameters (size of the PVC and cronJob schedule)
105110 // +kubebuilder:validation:Optional
@@ -147,6 +152,14 @@ type APIOverrideSpec struct {
147152 Service map [service.Endpoint ]service.RoutedOverrideSpec `json:"service,omitempty"`
148153}
149154
155+ // AuthSpec defines authentication parameters
156+ type AuthSpec struct {
157+ // +kubebuilder:validation:Optional
158+ // +operator-sdk:csv:customresourcedefinitions:type=spec
159+ // ApplicationCredentialSecret - Secret containing Application Credential ID and Secret
160+ ApplicationCredentialSecret string `json:"applicationCredentialSecret,omitempty"`
161+ }
162+
150163// SetupDefaults - initializes any CRD field defaults based on environment variables (the defaulting mechanism itself is implemented via webhooks)
151164func SetupDefaults () {
152165 // Acquire environmental defaults and initialize Glance defaults with them
0 commit comments