-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Localize HelmChartInflationGenerator #5007
Changes from all commits
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 |
---|---|---|
|
@@ -452,13 +452,11 @@ func TestResourcesRepoNotFile(t *testing.T) { | |
|
||
err := localizer.Run(fsActual, testDir.String(), "", testDir.Join("dst")) | ||
|
||
const readmeErr = `mapping values are not allowed in this context` | ||
fileErr := fmt.Sprintf(`invalid resource at file "%s": MalformedYAMLError:`, repo) | ||
fileErr := fmt.Sprintf(`invalid resource at file "%s": MalformedYAMLError`, repo) | ||
rootErr := fmt.Sprintf(`unable to localize root "%s": unable to find one of 'kustomization.yaml', 'kustomization.yml' or 'Kustomization'`, repo) | ||
var actualErr PathLocalizeError | ||
require.ErrorAs(t, err, &actualErr) | ||
require.Equal(t, repo, actualErr.Path) | ||
require.ErrorContains(t, actualErr.FileError, readmeErr) | ||
require.ErrorContains(t, actualErr.FileError, fileErr) | ||
require.ErrorContains(t, actualErr.RootError, rootErr) | ||
Comment on lines
-455
to
461
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. I removed the The over-specificity of this test previously failed the ci pipeline on master: https://github.com/kubernetes-sigs/kustomize/actions/runs/4018832421/jobs/6904935339 |
||
|
||
|
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.
Does
localize
currently handle generators defined inline? This is not required for alpha imo, but if it already handled, can we add a test? If not, can we add a TODO?Adding an example in case it's unclear what I'm referring to:
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.
Done. Yes, we handle inline generators and I added a test.