This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change --registry-scanning to --registry-disable-scanning
- Loading branch information
Showing
13 changed files
with
56 additions
and
66 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -48,8 +48,8 @@ fluxctl install --git-url '[email protected]:<your username>/flux-get-started' --gi | |
"whether to enable manifest generation") | ||
cmd.Flags().StringVar(&opts.Namespace, "namespace", "", | ||
"cluster namespace where to install flux") | ||
cmd.Flags().BoolVar(&opts.RegistryScanning, "registry-scanning", true, | ||
"scan container image registries to fill in the registry cache") | ||
cmd.Flags().BoolVar(&opts.RegistryDisableScanning, "registry-disable-scanning", false, | ||
"do not scan container image registries to fill in the registry cache") | ||
cmd.Flags().StringVarP(&opts.outputDir, "output-dir", "o", "", "a directory in which to write individual manifests, rather than printing to stdout") | ||
cmd.Flags().BoolVar(&opts.AddSecurityContext, "add-security-context", true, "Ensure security context information is added to the pod specs. Defaults to 'true'") | ||
|
||
|
This file contains 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 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 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 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 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 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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 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 |
---|---|---|
|
@@ -58,35 +58,27 @@ func TestFillInTemplatesAllParameters(t *testing.T) { | |
GitReadOnly: false, | ||
ManifestGeneration: true, | ||
AdditionalFluxArgs: []string{"arg1=foo", "arg2=bar"}, | ||
RegistryScanning: true, | ||
AddSecurityContext: true, | ||
}) | ||
} | ||
|
||
func TestFillInTemplatesMissingValues(t *testing.T) { | ||
testFillInTemplates(t, 5, TemplateParameters{ | ||
GitURL: "[email protected]:fluxcd/flux-get-started", | ||
GitBranch: "branch", | ||
GitPaths: []string{}, | ||
GitLabel: "label", | ||
RegistryScanning: true, | ||
GitURL: "[email protected]:fluxcd/flux-get-started", | ||
GitBranch: "branch", | ||
GitPaths: []string{}, | ||
GitLabel: "label", | ||
RegistryDisableScanning: true, | ||
}) | ||
} | ||
|
||
func TestFillInTemplatesNoMemcached(t *testing.T) { | ||
testFillInTemplates(t, 3, TemplateParameters{ | ||
GitURL: "[email protected]:fluxcd/flux-get-started", | ||
GitBranch: "branch", | ||
GitPaths: []string{}, | ||
GitLabel: "label", | ||
RegistryScanning: false, | ||
}) | ||
testFillInTemplates(t, 3, TemplateParameters{ | ||
GitURL: "[email protected]:fluxcd/flux-get-started", | ||
GitBranch: "branch", | ||
GitPaths: []string{}, | ||
GitLabel: "label", | ||
GitReadOnly: false, | ||
GitURL: "[email protected]:fluxcd/flux-get-started", | ||
GitBranch: "branch", | ||
GitPaths: []string{}, | ||
GitLabel: "label", | ||
RegistryDisableScanning: true, | ||
}) | ||
} | ||
|
||
|
@@ -102,7 +94,6 @@ func TestTestFillInTemplatesAddSecurityContext(t *testing.T) { | |
GitReadOnly: false, | ||
ManifestGeneration: true, | ||
AdditionalFluxArgs: []string{"arg1=foo", "arg2=bar"}, | ||
RegistryScanning: true, | ||
AddSecurityContext: true, | ||
} | ||
|
||
|
@@ -129,7 +120,6 @@ func TestFillInTemplatesNoSecurityContext(t *testing.T) { | |
GitReadOnly: false, | ||
ManifestGeneration: true, | ||
AdditionalFluxArgs: []string{"arg1=foo", "arg2=bar"}, | ||
RegistryScanning: true, | ||
AddSecurityContext: false, | ||
} | ||
|
||
|
This file contains 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
2 changes: 1 addition & 1 deletion
2
test/e2e/fixtures/kustom/14_release_image/release_image_patch.yaml
This file contains 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 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