-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Prepare 0.14.0 release #4413
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
Merged
+271
−71
Merged
Prepare 0.14.0 release #4413
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
83c67e9
Prepare 0.14.0 release
nikola-jokic b55fb3e
update tests
nikola-jokic cf3dd4f
Ease version checS
nikola-jokic 02a8c96
forgot cut
nikola-jokic c4e4017
Apply suggestions from code review
nikola-jokic 4facdd1
Potential fix for pull request finding
nikola-jokic File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
charts/gha-runner-scale-set-controller-experimental/tests/template_test.go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| package tests | ||
|
|
||
| import ( | ||
| "os" | ||
| "path/filepath" | ||
| "strings" | ||
| "testing" | ||
|
|
||
| "github.com/gruntwork-io/terratest/modules/helm" | ||
| "github.com/gruntwork-io/terratest/modules/k8s" | ||
| "github.com/gruntwork-io/terratest/modules/logger" | ||
| "github.com/gruntwork-io/terratest/modules/random" | ||
| "github.com/stretchr/testify/assert" | ||
| "github.com/stretchr/testify/require" | ||
| "gopkg.in/yaml.v2" | ||
| appsv1 "k8s.io/api/apps/v1" | ||
| ) | ||
|
|
||
| type Chart struct { | ||
| Version string `yaml:"version"` | ||
| AppVersion string `yaml:"appVersion"` | ||
| } | ||
|
|
||
| func TestTemplate_RenderedDeployment_UsesChartMetadataLabels(t *testing.T) { | ||
| t.Parallel() | ||
|
|
||
| helmChartPath, err := filepath.Abs("../../gha-runner-scale-set-controller-experimental") | ||
| require.NoError(t, err) | ||
|
|
||
| chartContent, err := os.ReadFile(filepath.Join(helmChartPath, "Chart.yaml")) | ||
| require.NoError(t, err) | ||
|
|
||
| chart := new(Chart) | ||
| err = yaml.Unmarshal(chartContent, chart) | ||
| require.NoError(t, err) | ||
|
|
||
| releaseName := "test-arc" | ||
| namespaceName := "test-" + strings.ToLower(random.UniqueId()) | ||
|
|
||
| options := &helm.Options{ | ||
| Logger: logger.Discard, | ||
| KubectlOptions: k8s.NewKubectlOptions("", "", namespaceName), | ||
| } | ||
|
|
||
| output := helm.RenderTemplate(t, options, helmChartPath, releaseName, []string{"templates/deployment.yaml"}) | ||
|
|
||
| var deployment appsv1.Deployment | ||
| helm.UnmarshalK8SYaml(t, output, &deployment) | ||
|
|
||
| assert.Equal(t, "gha-rs-controller-"+chart.Version, deployment.Labels["helm.sh/chart"]) | ||
| assert.Equal(t, chart.AppVersion, deployment.Labels["app.kubernetes.io/version"]) | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.