Skip to content

Commit

Permalink
fix: improve type names for api
Browse files Browse the repository at this point in the history
Signed-off-by: David van der Spek <[email protected]>
  • Loading branch information
davidspek committed Jul 13, 2023
1 parent 42b2c90 commit 50e4a4d
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 78 deletions.
12 changes: 6 additions & 6 deletions api/observability/v1alpha1/loki_limit_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -239,23 +239,23 @@ type RulerAlertManagerConfig struct {

type NotifierConfig struct {
// +kubebuilder:validation:Optional
TLS *TLSClientConfig `yaml:",inline,omitempty" json:",inline,omitempty"`
TLS *NotifierTLSClientConfig `yaml:",inline,omitempty" json:",inline,omitempty"`
// +kubebuilder:validation:Optional
BasicAuth *NotifBasicAuth `yaml:",inline,omitempty" json:",inline,omitempty"`
BasicAuth *NotifierBasicAuth `yaml:",inline,omitempty" json:",inline,omitempty"`
// +kubebuilder:validation:Optional
HeaderAuth *HeaderAuth `yaml:",inline,omitempty" json:",inline,omitempty"`
HeaderAuth *NotifierHeaderAuth `yaml:",inline,omitempty" json:",inline,omitempty"`
}

// NotifBasicAuth configures basic authentication for HTTP clients.
type NotifBasicAuth struct {
type NotifierBasicAuth struct {
// +kubebuilder:validation:Optional
Username string `yaml:"basic_auth_username,omitempty" json:"basic_auth_username,omitempty"`
// +kubebuilder:validation:Optional
Password string `yaml:"basic_auth_password,omitempty" json:"basic_auth_password,omitempty"`
}

// HeaderAuth condigures header based authorization for HTTP clients.
type HeaderAuth struct {
type NotifierHeaderAuth struct {
// +kubebuilder:validation:Optional
Type string `yaml:"type,omitempty" json:"type,omitempty"`
// +kubebuilder:validation:Optional
Expand All @@ -265,7 +265,7 @@ type HeaderAuth struct {
}

// ClientConfig is the config for client TLS.
type TLSClientConfig struct {
type NotifierTLSClientConfig struct {
// +kubebuilder:validation:Optional
CertPath *string `yaml:"tls_cert_path,omitempty" json:"tls_cert_path,omitempty" category:"advanced"`
// +kubebuilder:validation:Optional
Expand Down
144 changes: 72 additions & 72 deletions api/observability/v1alpha1/zz_generated.deepcopy.go

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

0 comments on commit 50e4a4d

Please sign in to comment.