Skip to content

Commit

Permalink
fix: add yaml tags to ValidatorConfig types
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gillson <tyler.gillson@gmail.com>
  • Loading branch information
TylerGillson committed Nov 28, 2023
1 parent c569524 commit 63afc70
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions api/v1alpha1/validatorconfig_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,28 @@ import (

// ValidatorConfigSpec defines the desired state of ValidatorConfig
type ValidatorConfigSpec struct {
Plugins []HelmRelease `json:"plugins,omitempty"`
Sink *Sink `json:"sink,omitempty"`
Plugins []HelmRelease `json:"plugins,omitempty" yaml:"plugins,omitempty"`
Sink *Sink `json:"sink,omitempty" yaml:"sink,omitempty"`
}

type Sink struct {
// +kubebuilder:validation:Enum=alertmanager;slack
Type string `json:"type"`
Type string `json:"type" yaml:"type"`
// Name of a K8s secret containing configuration details for the sink
SecretName string `json:"secretName"`
SecretName string `json:"secretName" yaml:"secretName"`
}

type HelmRelease struct {
Chart HelmChart `json:"chart"`
Values string `json:"values"`
Chart HelmChart `json:"chart" yaml:"chart"`
Values string `json:"values" yaml:"values"`
}

type HelmChart struct {
Name string `json:"name"`
Repository string `json:"repository"`
Version string `json:"version"`
InsecureSkipTlsVerify bool `json:"insecureSkipVerify,omitempty"`
AuthSecretName string `json:"authSecretName,omitempty"`
Name string `json:"name" yaml:"name"`
Repository string `json:"repository" yaml:"repository"`
Version string `json:"version" yaml:"version"`
InsecureSkipTlsVerify bool `json:"insecureSkipVerify,omitempty" yaml:"insecureSkipVerify,omitempty"`
AuthSecretName string `json:"authSecretName,omitempty" yaml:"authSecretName,omitempty"`
}

// ValidatorConfigStatus defines the observed state of ValidatorConfig
Expand Down

0 comments on commit 63afc70

Please sign in to comment.