1
0
mirror of synced 2026-02-13 13:06:56 +00:00

Generate image pull secret at install

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2024-04-06 11:37:54 +03:00
parent 05903e2171
commit 0672c8add2
2 changed files with 44 additions and 0 deletions

View File

@@ -42,6 +42,11 @@ func TestInstall(t *testing.T) {
args: "install unexpectedPosArg --namespace=example",
assert: assertError(`unknown command "unexpectedPosArg" for "flux install"`),
},
{
name: "missing image pull secret",
args: "install --registry-creds=fluxcd:test",
assert: assertError(`--registry-creds requires --image-pull-secret to be set`),
},
}
for _, tt := range tests {