mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-07-29 01:58:34 -04:00
fix .helmignore load rule with file in subdirectory
This commit is contained in:
parent
d6e9ee361a
commit
7fcf7e15c6
7 changed files with 459 additions and 19 deletions
|
@ -51,12 +51,12 @@ func TestLoad(t *testing.T) {
|
|||
assert.NotNil(chart.Dependencies())
|
||||
}
|
||||
|
||||
func TestLoadDeploy(t *testing.T) {
|
||||
chart, err := loadChartsDir(helmFS, constellationServicesInfo.path) // helmFS, "./charts/edgeless/constellation-services/charts/aws-load-balancer-controller") //
|
||||
func TestIgnoreFilesInSubdirectory(t *testing.T) {
|
||||
fileToIgnore := "crds/kustomization.yaml"
|
||||
chart, err := loadChartsDir(helmFS, awsInfo.path)
|
||||
require.NoError(t, err)
|
||||
for _, f := range chart.Raw {
|
||||
// fmt.Println("UNFILTERED", f.Name)
|
||||
if strings.Contains(f.Name, "charts/aws-load-balancer-controller/crds/kustomization.yaml") {
|
||||
if strings.Contains(f.Name, fileToIgnore) {
|
||||
t.Error("helmignore should have filtered it out", f.Name)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue