Skip to content
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

Feature/add yaml annotations #2

Merged
merged 3 commits into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added go.sum
Empty file.
12 changes: 6 additions & 6 deletions helm/chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ package helm
// Chart item of the helm chart, equals to Chart.yaml
type Chart struct {
// ApiVersion represents the version of the helm chart schema
ApiVersion string
ApiVersion string `yaml:"apiVersion"`
// Name of the helm chart
Name string
Name string `yaml:"name"`
// Description describes what the helm chart is for
Description string
Description string `yaml:"description"`
// Type of the helm chart, application or library
Type string
Type string `yaml:"type"`
// Version of the helm chart
Version string
Version string `yaml:"version"`
// AppVersion is the version of the app to be installed
AppVersion string
AppVersion string `yaml:"appVersion"`
}

// NewChart creates an empty helm chart
Expand Down
6 changes: 3 additions & 3 deletions helm/helm.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package helm
// Helm chart components
type Helm struct {
// Chart of the helm chart
Chart Chart
Chart Chart `yaml:"chart"`
// Values of the helm chart
Values Values
Values Values `yaml:"values"`
// Template of the helm chart
Template Template
Template Template `yaml:"template"`
}
4 changes: 2 additions & 2 deletions helm/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ package helm
// Template elements of the helm chart
type Template struct {
// Notes content for the Template
Notes Notes
Notes Notes `yaml:"notes"`
}

// Notes for the helm chart functionality
type Notes struct {
// Content describes the text which gets written to Notes
Content string
Content string `yaml:"content"`
}

// NewTemplate creates an empty template
Expand Down
2 changes: 1 addition & 1 deletion helm/values.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package helm

// Values of the helm chart, equals to a values.yaml file
type Values struct {
Key string
Values []string `yaml:"values"`
}

// NewValues returns a new, empty Values object
Expand Down