@@ -17,14 +17,14 @@ limitations under the License.
1717package v1beta1
1818
1919import (
20+ topologyv1 "github.com/openstack-k8s-operators/infra-operator/apis/topology/v1beta1"
2021 condition "github.com/openstack-k8s-operators/lib-common/modules/common/condition"
2122 "github.com/openstack-k8s-operators/lib-common/modules/common/service"
2223 "github.com/openstack-k8s-operators/lib-common/modules/common/tls"
2324 "github.com/openstack-k8s-operators/lib-common/modules/common/util"
24- topologyv1 "github.com/openstack-k8s-operators/infra-operator/apis/topology/v1beta1"
25- "k8s.io/apimachinery/pkg/util/validation/field"
2625 corev1 "k8s.io/api/core/v1"
2726 metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
27+ "k8s.io/apimachinery/pkg/util/validation/field"
2828)
2929
3030const (
@@ -126,6 +126,11 @@ type PlacementAPISpecCore struct {
126126 // TLS - Parameters related to the TLS
127127 TLS tls.API `json:"tls,omitempty"`
128128
129+ // +kubebuilder:validation:Optional
130+ // +operator-sdk:csv:customresourcedefinitions:type=spec
131+ // Auth - Parameters related to authentication
132+ Auth AuthSpec `json:"auth,omitempty"`
133+
129134 // +kubebuilder:validation:Optional
130135 // TopologyRef to apply the Topology defined by the associated CR referenced
131136 // by name
@@ -139,6 +144,14 @@ type APIOverrideSpec struct {
139144 Service map [service.Endpoint ]service.RoutedOverrideSpec `json:"service,omitempty"`
140145}
141146
147+ // AuthSpec defines authentication parameters
148+ type AuthSpec struct {
149+ // +kubebuilder:validation:Optional
150+ // +operator-sdk:csv:customresourcedefinitions:type=spec
151+ // ApplicationCredentialSecret - Secret containing Application Credential ID and Secret
152+ ApplicationCredentialSecret string `json:"applicationCredentialSecret,omitempty"`
153+ }
154+
142155// PasswordSelector to identify the DB and AdminUser password from the Secret
143156type PasswordSelector struct {
144157 // +kubebuilder:validation:Optional
0 commit comments