Skip to content

Commit

Permalink
conditionally create crds in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
corymurphy committed Oct 12, 2024
1 parent d415bfa commit 6deee27
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
cluster_name: kind
- run: helm dependency update ./charts/argocd
- run: go mod download
- run: go test ./test/integration/
- run: go test ./test/integration/ --create-crds "true"
2 changes: 1 addition & 1 deletion test/integration/install_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func TestTemplateBase(t *testing.T) {
argocd := &helm.Options{
KubectlOptions: kubectlOptions,
ValuesFiles: []string{argoCdChartPath + "/values.yaml"},
SetValues: map[string]string{"argo-cd.crds.install": "false"},
SetValues: map[string]string{"argo-cd.crds.install": *createCrds},
ExtraArgs: map[string][]string{
"upgrade": {"--timeout", "60s", "--install", "--wait-for-jobs", "--wait", "--create-namespace", "--namespace", *kubeNamespace},
},
Expand Down
1 change: 1 addition & 0 deletions test/integration/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ var kubeContext = flag.String("kubecontext", "kind-kind", "kubernetes context to
var kubeNamespace = flag.String("kubenamespace", "bienhoa", "kubernetes namespace to run tests against")
var appName = flag.String("appname", "argobot", "application to deploy")
var appVersion = flag.String("appversion", "60a4727c6c", "application version to deploy")
var createCrds = flag.String("create-crds", "false", "create crds")

0 comments on commit 6deee27

Please sign in to comment.