Add domain settings and smpt
[ZITADOPER-1]
This commit is contained in:
@@ -30,13 +30,39 @@ type Image struct {
|
||||
Tag string `json:"tag"`
|
||||
}
|
||||
|
||||
type Password struct {
|
||||
SecretKeyRef corev1.SecretKeySelector `json:"secretRef"`
|
||||
}
|
||||
|
||||
type SMTPConfig struct {
|
||||
SenderAddress string `json:"senderAddress"`
|
||||
SenderName string `json:"senderName"`
|
||||
// +kubebuilder:default=true
|
||||
TLS bool `json:"tls"`
|
||||
Host string `json:"host"`
|
||||
User *string `json:"user,omitempty"`
|
||||
Password *Password `json:"password,omitempty"`
|
||||
ReplyToAddress string `json:"replyToAddress"`
|
||||
}
|
||||
|
||||
type DomainSettings struct {
|
||||
// +kubebuilder:default=true
|
||||
UserLoginMustBeDomain bool `json:"userLoginMustBeDomain"`
|
||||
// +kubebuilder:default=true
|
||||
ValidateOrgDomains bool `json:"validateOrgDomains"`
|
||||
// +kubebuilder:default=true
|
||||
SMTPSenderAddressMatchesInstanceDomain bool `json:"smtpSenderAddressMatchesInstanceDomain"`
|
||||
}
|
||||
|
||||
// ZitadelClusterSpec defines the desired state of ZitadelCluster
|
||||
type ZitadelClusterSpec struct {
|
||||
// INSERT ADDITIONAL SPEC FIELDS - desired state of cluster
|
||||
// Important: Run "make" to regenerate code after modifying this file
|
||||
// +kubebuilder:default="DEFAULT"
|
||||
FirstOrgName string `json:"firstOrgName"`
|
||||
Host string `json:"host"`
|
||||
FirstOrgName string `json:"firstOrgName"`
|
||||
DomainSettings DomainSettings `json:"domainSettings"`
|
||||
SMTPConfig SMTPConfig `json:"smtpConfig"`
|
||||
Host string `json:"host"`
|
||||
// +kubebuilder:default=443
|
||||
ExternalPort int64 `json:"externalPort"`
|
||||
// +kubebuilder:default=true
|
||||
|
||||
@@ -139,6 +139,21 @@ func (in *CrdbClusterRef) DeepCopy() *CrdbClusterRef {
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *DomainSettings) DeepCopyInto(out *DomainSettings) {
|
||||
*out = *in
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DomainSettings.
|
||||
func (in *DomainSettings) DeepCopy() *DomainSettings {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(DomainSettings)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *Image) DeepCopyInto(out *Image) {
|
||||
*out = *in
|
||||
@@ -491,6 +506,22 @@ func (in *OrganizationStatus) DeepCopy() *OrganizationStatus {
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *Password) DeepCopyInto(out *Password) {
|
||||
*out = *in
|
||||
in.SecretKeyRef.DeepCopyInto(&out.SecretKeyRef)
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Password.
|
||||
func (in *Password) DeepCopy() *Password {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(Password)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *Project) DeepCopyInto(out *Project) {
|
||||
*out = *in
|
||||
@@ -624,6 +655,31 @@ func (in *Role) DeepCopy() *Role {
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *SMTPConfig) DeepCopyInto(out *SMTPConfig) {
|
||||
*out = *in
|
||||
if in.User != nil {
|
||||
in, out := &in.User, &out.User
|
||||
*out = new(string)
|
||||
**out = **in
|
||||
}
|
||||
if in.Password != nil {
|
||||
in, out := &in.Password, &out.Password
|
||||
*out = new(Password)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SMTPConfig.
|
||||
func (in *SMTPConfig) DeepCopy() *SMTPConfig {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(SMTPConfig)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ZitadelCluster) DeepCopyInto(out *ZitadelCluster) {
|
||||
*out = *in
|
||||
@@ -702,6 +758,8 @@ func (in *ZitadelClusterRef) DeepCopy() *ZitadelClusterRef {
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ZitadelClusterSpec) DeepCopyInto(out *ZitadelClusterSpec) {
|
||||
*out = *in
|
||||
out.DomainSettings = in.DomainSettings
|
||||
in.SMTPConfig.DeepCopyInto(&out.SMTPConfig)
|
||||
out.Image = in.Image
|
||||
in.Resources.DeepCopyInto(&out.Resources)
|
||||
out.CrdbClusterRef = in.CrdbClusterRef
|
||||
|
||||
Reference in New Issue
Block a user