-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: create root level HelmConfig struct which applies to all HelmReleases #345
Changes from all commits
8607c7a
1815eea
aa6afe6
6c33789
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,9 @@ import ( | |
|
||
// ValidatorConfigSpec defines the desired state of ValidatorConfig. | ||
type ValidatorConfigSpec struct { | ||
// HelmConfig defines the configuration for the Helm repository. | ||
HelmConfig HelmConfig `json:"helmConfig" yaml:"helmConfig"` | ||
|
||
// Plugins defines the configuration for the validator plugins. | ||
Plugins []HelmRelease `json:"plugins,omitempty" yaml:"plugins,omitempty"` | ||
|
||
|
@@ -42,24 +45,21 @@ type Sink struct { | |
|
||
// HelmRelease defines the configuration for a Helm chart release. | ||
type HelmRelease struct { | ||
// Chart defines the Helm chart to be installed. | ||
Chart HelmChart `json:"chart" yaml:"chart"` | ||
// Name of the Helm chart. | ||
Name string `json:"name" yaml:"name"` | ||
|
||
// Version of the Helm chart. | ||
Version string `json:"version" yaml:"version"` | ||
|
||
// Values defines the values to be passed to the Helm chart. | ||
Values string `json:"values" yaml:"values"` | ||
} | ||
|
||
// HelmChart defines the configuration for a Helm chart. | ||
type HelmChart struct { | ||
// Name of the Helm chart. | ||
Name string `json:"name" yaml:"name"` | ||
|
||
// HelmConfig defines the configuration for a Helm repository. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Repository refers to the name of a chart within a registry. So this should say "for a Helm registry". |
||
type HelmConfig struct { | ||
// Repository URL of the Helm chart. | ||
Repository string `json:"repository" yaml:"repository"` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Propose to rename this Registry w/ comment: "Registry is the URL of a Helm registry" There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because repository can't be configured globally - it varies for each chart. |
||
|
||
// Version of the Helm chart. | ||
Version string `json:"version" yaml:"version"` | ||
|
||
// CAFile is the path to the CA certificate for the Helm repository. | ||
CAFile string `json:"caFile,omitempty" yaml:"caFile,omitempty"` | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to track repository here in addition to the name:
Structure of Helm URI:
<registry>/<repository>/<chart>