├── .dependabot └── config.yml ├── .dockerignore ├── .gcloudignore ├── .github └── workflows │ ├── codeql-analysis.yml │ └── plugins-pr.yaml ├── .gitignore ├── .golangci.yml ├── .goreleaser.yml ├── .helmignore ├── .jx └── updatebot.yaml ├── .lighthouse └── jenkins-x │ ├── lint.yaml │ ├── pullrequest.yaml │ ├── release.yaml │ └── triggers.yaml ├── .stignore ├── DCO ├── Dockerfile ├── Dockerfile-preview ├── LICENSE ├── Makefile ├── Makefile.docker ├── OWNERS ├── OWNERS_ALIASES ├── README.md ├── SECURITY.md ├── build.sh ├── cloudbuild.yaml ├── cmd ├── app │ ├── main-win.go │ └── main.go ├── convert │ └── main.go ├── docs │ ├── main.go │ ├── man_docs.go │ └── md_docs.go └── main.go ├── docs ├── cmd │ ├── jx-gitops.md │ ├── jx-gitops_annotate.md │ ├── jx-gitops_apply.md │ ├── jx-gitops_condition.md │ ├── jx-gitops_copy.md │ ├── jx-gitops_gc.md │ ├── jx-gitops_gc_activities.md │ ├── jx-gitops_gc_jobs.md │ ├── jx-gitops_gc_pods.md │ ├── jx-gitops_git.md │ ├── jx-gitops_git_clone.md │ ├── jx-gitops_git_get.md │ ├── jx-gitops_git_merge.md │ ├── jx-gitops_git_setup.md │ ├── jx-gitops_hash.md │ ├── jx-gitops_helm.md │ ├── jx-gitops_helm_build.md │ ├── jx-gitops_helm_escape.md │ ├── jx-gitops_helm_mirror.md │ ├── jx-gitops_helm_release.md │ ├── jx-gitops_helm_stream.md │ ├── jx-gitops_helm_template.md │ ├── jx-gitops_helmfile.md │ ├── jx-gitops_helmfile_add.md │ ├── jx-gitops_helmfile_delete.md │ ├── jx-gitops_helmfile_move.md │ ├── jx-gitops_helmfile_report.md │ ├── jx-gitops_helmfile_resolve.md │ ├── jx-gitops_helmfile_status.md │ ├── jx-gitops_helmfile_structure.md │ ├── jx-gitops_helmfile_validate.md │ ├── jx-gitops_image.md │ ├── jx-gitops_ingress.md │ ├── jx-gitops_jenkins.md │ ├── jx-gitops_jenkins_add.md │ ├── jx-gitops_jenkins_jobs.md │ ├── jx-gitops_kpt.md │ ├── jx-gitops_kpt_recreate.md │ ├── jx-gitops_kpt_update.md │ ├── jx-gitops_kustomize.md │ ├── jx-gitops_label.md │ ├── jx-gitops_lint.md │ ├── jx-gitops_namespace.md │ ├── jx-gitops_patch.md │ ├── jx-gitops_plugin.md │ ├── jx-gitops_plugin_get.md │ ├── jx-gitops_plugin_upgrade.md │ ├── jx-gitops_postprocess.md │ ├── jx-gitops_pr.md │ ├── jx-gitops_pr_comment.md │ ├── jx-gitops_pr_get.md │ ├── jx-gitops_pr_label.md │ ├── jx-gitops_pr_push.md │ ├── jx-gitops_pr_variables.md │ ├── jx-gitops_rename.md │ ├── jx-gitops_repository.md │ ├── jx-gitops_repository_add.md │ ├── jx-gitops_repository_create.md │ ├── jx-gitops_repository_delete.md │ ├── jx-gitops_repository_export.md │ ├── jx-gitops_repository_resolve.md │ ├── jx-gitops_requirement.md │ ├── jx-gitops_requirement_edit.md │ ├── jx-gitops_requirement_merge.md │ ├── jx-gitops_requirement_publish.md │ ├── jx-gitops_requirement_resolve.md │ ├── jx-gitops_sa.md │ ├── jx-gitops_sa_secret.md │ ├── jx-gitops_scheduler.md │ ├── jx-gitops_split.md │ ├── jx-gitops_upgrade.md │ ├── jx-gitops_variables.md │ ├── jx-gitops_version.md │ ├── jx-gitops_versionstream.md │ ├── jx-gitops_webhook.md │ ├── jx-gitops_webhook_delete.md │ ├── jx-gitops_webhook_update.md │ └── jx-gitops_yset.md ├── config.md ├── git_layout.md ├── kind_filters.md ├── man │ └── man1 │ │ ├── jx-gitops-annotate.1 │ │ ├── jx-gitops-apply.1 │ │ ├── jx-gitops-condition.1 │ │ ├── jx-gitops-copy.1 │ │ ├── jx-gitops-extsecret.1 │ │ ├── jx-gitops-gc-activities.1 │ │ ├── jx-gitops-gc-jobs.1 │ │ ├── jx-gitops-gc-pods.1 │ │ ├── jx-gitops-gc.1 │ │ ├── jx-gitops-git-clone.1 │ │ ├── jx-gitops-git-get.1 │ │ ├── jx-gitops-git-merge.1 │ │ ├── jx-gitops-git-setup.1 │ │ ├── jx-gitops-git.1 │ │ ├── jx-gitops-hash.1 │ │ ├── jx-gitops-helm-build.1 │ │ ├── jx-gitops-helm-escape.1 │ │ ├── jx-gitops-helm-mirror.1 │ │ ├── jx-gitops-helm-release.1 │ │ ├── jx-gitops-helm-stream.1 │ │ ├── jx-gitops-helm-template.1 │ │ ├── jx-gitops-helm.1 │ │ ├── jx-gitops-helmfile-add.1 │ │ ├── jx-gitops-helmfile-delete.1 │ │ ├── jx-gitops-helmfile-move.1 │ │ ├── jx-gitops-helmfile-report.1 │ │ ├── jx-gitops-helmfile-resolve.1 │ │ ├── jx-gitops-helmfile-status.1 │ │ ├── jx-gitops-helmfile-structure.1 │ │ ├── jx-gitops-helmfile-validate.1 │ │ ├── jx-gitops-helmfile.1 │ │ ├── jx-gitops-image.1 │ │ ├── jx-gitops-ingress.1 │ │ ├── jx-gitops-jenkins-add.1 │ │ ├── jx-gitops-jenkins-jobs.1 │ │ ├── jx-gitops-jenkins.1 │ │ ├── jx-gitops-kpt-recreate.1 │ │ ├── jx-gitops-kpt-update.1 │ │ ├── jx-gitops-kpt.1 │ │ ├── jx-gitops-kustomize.1 │ │ ├── jx-gitops-label.1 │ │ ├── jx-gitops-lint.1 │ │ ├── jx-gitops-namespace.1 │ │ ├── jx-gitops-patch.1 │ │ ├── jx-gitops-plugin-get.1 │ │ ├── jx-gitops-plugin-upgrade.1 │ │ ├── jx-gitops-plugin.1 │ │ ├── jx-gitops-postprocess.1 │ │ ├── jx-gitops-pr-comment.1 │ │ ├── jx-gitops-pr-get.1 │ │ ├── jx-gitops-pr-label.1 │ │ ├── jx-gitops-pr-push.1 │ │ ├── jx-gitops-pr-variables.1 │ │ ├── jx-gitops-pr.1 │ │ ├── jx-gitops-rename.1 │ │ ├── jx-gitops-repository-add.1 │ │ ├── jx-gitops-repository-create.1 │ │ ├── jx-gitops-repository-delete.1 │ │ ├── jx-gitops-repository-export.1 │ │ ├── jx-gitops-repository-resolve.1 │ │ ├── jx-gitops-repository.1 │ │ ├── jx-gitops-requirement-edit.1 │ │ ├── jx-gitops-requirement-merge.1 │ │ ├── jx-gitops-requirement-publish.1 │ │ ├── jx-gitops-requirement-resolve.1 │ │ ├── jx-gitops-requirement.1 │ │ ├── jx-gitops-sa-secret.1 │ │ ├── jx-gitops-sa.1 │ │ ├── jx-gitops-scheduler.1 │ │ ├── jx-gitops-split.1 │ │ ├── jx-gitops-upgrade.1 │ │ ├── jx-gitops-variables.1 │ │ ├── jx-gitops-version.1 │ │ ├── jx-gitops-versionstream.1 │ │ ├── jx-gitops-webhook-delete.1 │ │ ├── jx-gitops-webhook-update.1 │ │ ├── jx-gitops-webhook.1 │ │ ├── jx-gitops-yset.1 │ │ └── jx-gitops.1 └── scheduler-config.md ├── go.mod ├── go.sum ├── hack ├── changelog-header.md ├── configdocs │ ├── config.json │ └── templates │ │ ├── .gitignore │ │ ├── members.tpl │ │ ├── pkg.tpl │ │ └── type.tpl ├── ensure-test-classification.sh ├── generate.sh ├── gofmt.sh ├── install_golint.sh ├── linter.sh └── upload_plugin.sh ├── jx ├── bdd │ ├── boot-lh-ghe │ │ ├── README.md │ │ ├── ci.sh │ │ ├── cluster.yaml │ │ ├── jx-requirements.yml │ │ └── parameters.yaml │ ├── boot-vault │ │ ├── README.md │ │ ├── ci.sh │ │ ├── cluster.yaml │ │ ├── jx-requirements.yml │ │ └── parameters.yaml │ ├── static │ │ ├── README.md │ │ ├── ci.sh │ │ └── cluster.yaml │ └── tekton │ │ ├── README.md │ │ ├── ci.sh │ │ └── cluster.yaml └── scripts │ └── ci.sh ├── pkg ├── apis │ ├── gitops │ │ └── v1alpha1 │ │ │ ├── constants.go │ │ │ ├── doc.go │ │ │ ├── kpt_strategy_types.go │ │ │ ├── pipeline_catalog_types.go │ │ │ ├── quickstart_types.go │ │ │ ├── secret_mapping_types.go │ │ │ └── source_config_types.go │ └── scheduler │ │ └── v1alpha1 │ │ ├── doc.go │ │ └── types.go ├── chart │ └── chart.go ├── cmd │ ├── annotate │ │ ├── annotate.go │ │ ├── annotate_test.go │ │ ├── testdata │ │ │ ├── cert-manager-bug │ │ │ │ ├── expected.yaml │ │ │ │ └── source.yaml │ │ │ ├── cluster-role-binding │ │ │ │ ├── expected.yaml │ │ │ │ └── source.yaml │ │ │ └── svc │ │ │ │ ├── expected.yaml │ │ │ │ └── source.yaml │ │ └── testpodspec │ │ │ ├── cronjob │ │ │ ├── expected.yaml │ │ │ └── source.yaml │ │ │ └── deploy │ │ │ ├── expected.yaml │ │ │ └── source.yaml │ ├── apply │ │ ├── apply.go │ │ ├── apply_test.go │ │ └── testdata │ │ │ └── repo.tgz │ ├── condition │ │ ├── condition.go │ │ └── condition_test.go │ ├── copy │ │ ├── copy.go │ │ └── copy_test.go │ ├── gc │ │ ├── activities │ │ │ ├── activities.go │ │ │ └── activities_test.go │ │ ├── gc.go │ │ ├── jobs │ │ │ └── jobs.go │ │ └── pods │ │ │ └── pods.go │ ├── git │ │ ├── clone │ │ │ ├── clone.go │ │ │ ├── clone_test.go │ │ │ └── testdata │ │ │ │ └── expected.txt │ │ ├── get │ │ │ ├── get.go │ │ │ ├── get_test.go │ │ │ └── testdata │ │ │ │ └── myorg │ │ │ │ └── myrepo │ │ │ │ └── expected.txt │ │ ├── git.go │ │ ├── merge │ │ │ ├── merge.go │ │ │ ├── merge_shas.go │ │ │ ├── merge_test.go │ │ │ ├── pull_refs.go │ │ │ └── pull_refs_test.go │ │ └── setup │ │ │ ├── setup.go │ │ │ ├── setup_test.go │ │ │ └── testdata │ │ │ ├── expected.txt │ │ │ └── expected2.txt │ ├── hash │ │ ├── hash.go │ │ ├── hash_test.go │ │ └── testdata │ │ │ ├── configs │ │ │ ├── config.yaml │ │ │ └── plugins.yaml │ │ │ └── deployments │ │ │ └── mydeploy.yaml │ ├── helm │ │ ├── bitnami │ │ │ └── external-dns │ │ │ │ └── template-values.yaml │ │ ├── build │ │ │ ├── build.go │ │ │ ├── build_test.go │ │ │ └── testdata │ │ │ │ ├── VERSION │ │ │ │ ├── has_charts │ │ │ │ ├── README.md │ │ │ │ └── charts │ │ │ │ │ └── myapp │ │ │ │ │ ├── .helmignore │ │ │ │ │ ├── Chart.yaml │ │ │ │ │ ├── templates │ │ │ │ │ ├── NOTES.txt │ │ │ │ │ ├── _helpers.tpl │ │ │ │ │ ├── deployment.yaml │ │ │ │ │ ├── ingress.yaml │ │ │ │ │ └── service.yaml │ │ │ │ │ └── values.yaml │ │ │ │ └── no_charts │ │ │ │ └── README.md │ │ ├── escape │ │ │ ├── escape.go │ │ │ ├── escape_test.go │ │ │ └── testdata │ │ │ │ ├── expected │ │ │ │ └── config-observability-cm.yaml │ │ │ │ └── src │ │ │ │ └── config-observability-cm.yaml │ │ ├── helm.go │ │ ├── mirror │ │ │ ├── mirror.go │ │ │ ├── mirror_test.go │ │ │ └── testdata │ │ │ │ └── versionStream │ │ │ │ └── charts │ │ │ │ └── repositories.yml │ │ ├── release │ │ │ ├── release.go │ │ │ ├── release_test.go │ │ │ └── testdata │ │ │ │ ├── VERSION │ │ │ │ ├── charts │ │ │ │ ├── myapp │ │ │ │ │ ├── .helmignore │ │ │ │ │ ├── Chart.yaml │ │ │ │ │ ├── templates │ │ │ │ │ │ ├── NOTES.txt │ │ │ │ │ │ ├── _helpers.tpl │ │ │ │ │ │ ├── deployment.yaml │ │ │ │ │ │ ├── ingress.yaml │ │ │ │ │ │ └── service.yaml │ │ │ │ │ └── values.yaml │ │ │ │ └── preview │ │ │ │ │ └── Chart.yaml │ │ │ │ ├── helmregistry │ │ │ │ └── config.json │ │ │ │ └── pages │ │ │ │ └── README.md │ │ ├── step_helm_template.go │ │ ├── step_helm_template_test.go │ │ └── testdata │ │ │ ├── mychart │ │ │ ├── Chart.yaml │ │ │ ├── templates │ │ │ │ ├── NOTES.txt │ │ │ │ ├── _helpers.tpl │ │ │ │ ├── deployment.yaml │ │ │ │ ├── ingress.yaml │ │ │ │ └── service.yaml │ │ │ └── values.yaml │ │ │ └── versionstream │ │ │ └── charts │ │ │ ├── banzaicloud-stable │ │ │ └── vault-operator.yml │ │ │ ├── bitnami │ │ │ └── external-dns.yml │ │ │ ├── external-secrets │ │ │ └── kubernetes-external-secrets.yml │ │ │ ├── jenkins-x │ │ │ └── lighthouse.yml │ │ │ ├── repositories.yml │ │ │ └── stable │ │ │ └── cert-manager.yml │ ├── helmfile │ │ ├── add │ │ │ ├── add.go │ │ │ ├── add_test.go │ │ │ └── testdata │ │ │ │ ├── expected │ │ │ │ ├── helmfile.yaml │ │ │ │ └── helmfiles │ │ │ │ │ ├── cheese │ │ │ │ │ └── helmfile.yaml │ │ │ │ │ ├── jx │ │ │ │ │ └── helmfile.yaml │ │ │ │ │ └── nginx │ │ │ │ │ └── helmfile.yaml │ │ │ │ └── input │ │ │ │ ├── .jx │ │ │ │ └── gitops │ │ │ │ │ └── secret-mappings.yaml │ │ │ │ ├── helmfile.yaml │ │ │ │ ├── helmfiles │ │ │ │ └── nginx │ │ │ │ │ └── helmfile.yaml │ │ │ │ ├── jx-requirements.yml │ │ │ │ └── versionStream │ │ │ │ └── charts │ │ │ │ ├── banzaicloud-stable │ │ │ │ └── vault-operator │ │ │ │ │ └── defaults.yaml │ │ │ │ ├── bitnami │ │ │ │ └── external-dns │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ └── template-values.yaml │ │ │ │ ├── external-secrets │ │ │ │ └── kubernetes-external-secrets │ │ │ │ │ └── defaults.yaml │ │ │ │ ├── jenkins-x │ │ │ │ ├── jxboot-helmfile-resources │ │ │ │ │ └── defaults.yaml │ │ │ │ ├── lighthouse │ │ │ │ │ └── defaults.yaml │ │ │ │ └── tekton │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ ├── repositories.yml │ │ │ │ ├── repositories │ │ │ │ └── defaults.yaml │ │ │ │ └── stable │ │ │ │ └── cert-manager │ │ │ │ └── defaults.yaml │ │ ├── deletecmd │ │ │ ├── delete.go │ │ │ ├── delete_test.go │ │ │ └── testdata │ │ │ │ ├── all │ │ │ │ ├── expected │ │ │ │ │ ├── helmfile.yaml │ │ │ │ │ └── helmfiles │ │ │ │ │ │ ├── jx-production │ │ │ │ │ │ └── helmfile.yaml │ │ │ │ │ │ ├── jx-staging │ │ │ │ │ │ └── helmfile.yaml │ │ │ │ │ │ └── nginx │ │ │ │ │ │ └── helmfile.yaml │ │ │ │ └── input │ │ │ │ │ ├── helmfile.yaml │ │ │ │ │ └── helmfiles │ │ │ │ │ ├── jx-production │ │ │ │ │ ├── helmfile.yaml │ │ │ │ │ └── jx-values.yaml │ │ │ │ │ ├── jx-staging │ │ │ │ │ ├── helmfile.yaml │ │ │ │ │ └── jx-values.yaml │ │ │ │ │ └── nginx │ │ │ │ │ └── helmfile.yaml │ │ │ │ ├── fullname │ │ │ │ ├── expected │ │ │ │ │ ├── helmfile.yaml │ │ │ │ │ └── helmfiles │ │ │ │ │ │ └── nginx │ │ │ │ │ │ └── helmfile.yaml │ │ │ │ └── input │ │ │ │ │ ├── helmfile.yaml │ │ │ │ │ └── helmfiles │ │ │ │ │ └── nginx │ │ │ │ │ └── helmfile.yaml │ │ │ │ ├── local │ │ │ │ ├── expected │ │ │ │ │ ├── helmfile.yaml │ │ │ │ │ └── helmfiles │ │ │ │ │ │ └── nginx │ │ │ │ │ │ └── helmfile.yaml │ │ │ │ └── input │ │ │ │ │ ├── helmfile.yaml │ │ │ │ │ └── helmfiles │ │ │ │ │ └── nginx │ │ │ │ │ └── helmfile.yaml │ │ │ │ ├── nochange │ │ │ │ ├── expected │ │ │ │ │ ├── helmfile.yaml │ │ │ │ │ └── helmfiles │ │ │ │ │ │ └── nginx │ │ │ │ │ │ └── helmfile.yaml │ │ │ │ └── input │ │ │ │ │ ├── helmfile.yaml │ │ │ │ │ └── helmfiles │ │ │ │ │ └── nginx │ │ │ │ │ └── helmfile.yaml │ │ │ │ └── prod │ │ │ │ ├── expected │ │ │ │ ├── helmfile.yaml │ │ │ │ └── helmfiles │ │ │ │ │ ├── jx-production │ │ │ │ │ └── helmfile.yaml │ │ │ │ │ ├── jx-staging │ │ │ │ │ └── helmfile.yaml │ │ │ │ │ └── nginx │ │ │ │ │ └── helmfile.yaml │ │ │ │ └── input │ │ │ │ ├── helmfile.yaml │ │ │ │ └── helmfiles │ │ │ │ ├── jx-production │ │ │ │ ├── helmfile.yaml │ │ │ │ └── jx-values.yaml │ │ │ │ ├── jx-staging │ │ │ │ ├── helmfile.yaml │ │ │ │ └── jx-values.yaml │ │ │ │ └── nginx │ │ │ │ └── helmfile.yaml │ │ ├── helmfile.go │ │ ├── move │ │ │ ├── move.go │ │ │ ├── move_test.go │ │ │ └── testdata │ │ │ │ ├── dirIncludesReleaseName │ │ │ │ ├── jx │ │ │ │ │ ├── lighthouse-2 │ │ │ │ │ │ └── lighthouse │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ ├── lighthouse-foghorn-deploy.yaml │ │ │ │ │ │ │ └── lighthousejobs.lighthouse.jenkins.io-crd.yaml │ │ │ │ │ ├── lighthouse │ │ │ │ │ │ └── lighthouse │ │ │ │ │ │ │ └── templates │ │ │ │ │ │ │ ├── lighthouse-foghorn-deploy.yaml │ │ │ │ │ │ │ └── lighthousejobs.lighthouse.jenkins.io-crd.yaml │ │ │ │ │ └── release │ │ │ │ │ │ └── chart │ │ │ │ │ │ └── templates │ │ │ │ │ │ └── example.yaml │ │ │ │ └── nginx │ │ │ │ │ ├── nginx-ingress-2 │ │ │ │ │ └── nginx-ingress │ │ │ │ │ │ └── templates │ │ │ │ │ │ └── nginx-ingress-clusterrole.yaml │ │ │ │ │ └── nginx-ingress │ │ │ │ │ └── nginx-ingress │ │ │ │ │ └── templates │ │ │ │ │ └── nginx-ingress-clusterrole.yaml │ │ │ │ ├── nonStandardNamespace │ │ │ │ └── selenium-grid │ │ │ │ │ └── selenium │ │ │ │ │ └── keda │ │ │ │ │ └── templates │ │ │ │ │ └── keda-operator-auth-reader-rb.yaml │ │ │ │ └── output │ │ │ │ ├── jx │ │ │ │ └── lighthouse │ │ │ │ │ └── templates │ │ │ │ │ ├── lighthouse-foghorn-deploy.yaml │ │ │ │ │ └── lighthousejobs.lighthouse.jenkins.io-crd.yaml │ │ │ │ └── nginx │ │ │ │ └── nginx-ingress │ │ │ │ └── templates │ │ │ │ └── nginx-ingress-clusterrole.yaml │ │ ├── report │ │ │ ├── logs.go │ │ │ ├── markdown.go │ │ │ ├── markdown_test.go │ │ │ ├── report.go │ │ │ └── testdata │ │ │ │ ├── expected.README.md │ │ │ │ └── releases.yaml │ │ ├── resolve │ │ │ ├── resolve.go │ │ │ ├── resolve_test.go │ │ │ └── testdata │ │ │ │ ├── bucketrepo-svc │ │ │ │ ├── .jx │ │ │ │ │ └── gitops │ │ │ │ │ │ └── secret-mappings.yaml │ │ │ │ ├── expected-helmfile.yaml │ │ │ │ ├── expected-jx-helmfile.yaml │ │ │ │ ├── expected-tekton-pipelines-helmfile.yaml │ │ │ │ ├── helmfile.yaml │ │ │ │ ├── jx-requirements.yml │ │ │ │ ├── values │ │ │ │ │ ├── external-dns │ │ │ │ │ │ └── values.yaml │ │ │ │ │ └── kubernetes-external-secrets │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ └── versionStream │ │ │ │ │ └── charts │ │ │ │ │ ├── banzaicloud-stable │ │ │ │ │ └── vault-operator │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ ├── bitnami │ │ │ │ │ └── external-dns │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ └── template-values.yaml │ │ │ │ │ ├── cdf │ │ │ │ │ └── tekton-pipeline │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ ├── external-secrets │ │ │ │ │ └── kubernetes-external-secrets │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ ├── jenkins-x │ │ │ │ │ ├── jxboot-helmfile-resources │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ ├── lighthouse │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ └── tekton │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ ├── repositories.yml │ │ │ │ │ ├── repositories │ │ │ │ │ └── defaults.yaml │ │ │ │ │ └── stable │ │ │ │ │ └── cert-manager │ │ │ │ │ └── defaults.yaml │ │ │ │ ├── custom-env-ingress │ │ │ │ ├── .jx │ │ │ │ │ └── gitops │ │ │ │ │ │ └── secret-mappings.yaml │ │ │ │ ├── expected-foo-helmfile.yaml │ │ │ │ ├── expected-helmfile.yaml │ │ │ │ ├── expected-jx-helmfile.yaml │ │ │ │ ├── expected-jx-staging-helmfile.yaml │ │ │ │ ├── expected-nginx-helmfile.yaml │ │ │ │ ├── expected-secret-infra-helmfile.yaml │ │ │ │ ├── expected-tekton-pipelines-helmfile.yaml │ │ │ │ ├── extensions │ │ │ │ │ ├── pipeline-catalog.yaml │ │ │ │ │ └── quickstarts.yaml │ │ │ │ ├── helmfile.yaml │ │ │ │ ├── imagePullSecrets.yaml │ │ │ │ ├── jx-requirements.yml │ │ │ │ ├── values │ │ │ │ │ ├── external-dns │ │ │ │ │ │ └── values.yaml │ │ │ │ │ └── kubernetes-external-secrets │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ └── versionStream │ │ │ │ │ ├── charts │ │ │ │ │ ├── banzaicloud-stable │ │ │ │ │ │ └── vault-operator │ │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ ├── bitnami │ │ │ │ │ │ └── external-dns │ │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ │ └── template-values.yaml │ │ │ │ │ ├── cdf │ │ │ │ │ │ └── tekton-pipeline │ │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ ├── external-secrets │ │ │ │ │ │ └── kubernetes-external-secrets │ │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ ├── ingress-nginx │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ ├── jenkins-x │ │ │ │ │ │ ├── jxboot-helmfile-resources │ │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ │ ├── lighthouse │ │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ │ └── tekton │ │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ ├── jx3 │ │ │ │ │ │ └── jxboot-helmfile-resources │ │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ ├── repositories.yml │ │ │ │ │ ├── repositories │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ └── stable │ │ │ │ │ │ ├── cert-manager │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ │ └── chartmuseum │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ ├── secret-schema.yaml │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ └── git │ │ │ │ │ └── github.com │ │ │ │ │ ├── jenkins-x │ │ │ │ │ └── jx3-pipeline-catalog.yml │ │ │ │ │ └── jstrachan │ │ │ │ │ └── jx3-pipeline-catalog.yml │ │ │ │ ├── helmfile_multi_subfolder │ │ │ │ ├── .jx │ │ │ │ │ └── gitops │ │ │ │ │ │ └── secret-mappings.yaml │ │ │ │ ├── expected-helmfile.yaml │ │ │ │ ├── expected-kuberhealthy-helmfile.yaml │ │ │ │ ├── expected-secret-infra-helmfile.yaml │ │ │ │ ├── extensions │ │ │ │ │ ├── pipeline-catalog.yaml │ │ │ │ │ └── quickstarts.yaml │ │ │ │ ├── helmfile.yaml │ │ │ │ ├── helmfiles │ │ │ │ │ ├── helmfile.yaml │ │ │ │ │ ├── kuberhealthy │ │ │ │ │ │ └── helmfile.yaml │ │ │ │ │ └── secret-infra │ │ │ │ │ │ └── helmfile.yaml │ │ │ │ ├── imagePullSecrets.yaml │ │ │ │ ├── jx-requirements.yml │ │ │ │ ├── values │ │ │ │ │ ├── external-dns │ │ │ │ │ │ └── values.yaml │ │ │ │ │ └── kubernetes-external-secrets │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ └── versionStream │ │ │ │ │ ├── charts │ │ │ │ │ ├── external-secrets │ │ │ │ │ │ └── kubernetes-external-secrets │ │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ ├── jxgh │ │ │ │ │ │ ├── jx-kh-check │ │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ │ └── kh-tls-check │ │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ └── repositories.yml │ │ │ │ │ └── git │ │ │ │ │ └── github.com │ │ │ │ │ ├── jenkins-x │ │ │ │ │ └── jx3-pipeline-catalog.yml │ │ │ │ │ └── jstrachan │ │ │ │ │ └── jx3-pipeline-catalog.yml │ │ │ │ ├── helmfile_remote │ │ │ │ ├── expected-helmfile.yaml │ │ │ │ ├── expected-jx-helmfile.yaml │ │ │ │ ├── expected-secret-infra-helmfile.yaml │ │ │ │ ├── helmfiles │ │ │ │ │ ├── helmfile.yaml │ │ │ │ │ ├── jx │ │ │ │ │ │ ├── helmfile.yaml │ │ │ │ │ │ └── jx-values.yaml │ │ │ │ │ └── secret-infra │ │ │ │ │ │ └── helmfile.yaml │ │ │ │ ├── imagePullSecrets.yaml │ │ │ │ ├── jx-requirements.yml │ │ │ │ └── versionStream │ │ │ │ │ ├── charts │ │ │ │ │ ├── external-secrets │ │ │ │ │ │ └── kubernetes-external-secrets │ │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ ├── jxgh │ │ │ │ │ │ ├── jx-build-controller │ │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ │ └── lighthouse │ │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ │ ├── secret-schema.yaml │ │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ └── repositories.yml │ │ │ │ │ └── git │ │ │ │ │ └── github.com │ │ │ │ │ ├── jenkins-x │ │ │ │ │ └── jx3-pipeline-catalog.yml │ │ │ │ │ └── jstrachan │ │ │ │ │ └── jx3-pipeline-catalog.yml │ │ │ │ ├── helmfile_subfolder │ │ │ │ ├── .jx │ │ │ │ │ └── gitops │ │ │ │ │ │ └── secret-mappings.yaml │ │ │ │ ├── expected-helmfile.yaml │ │ │ │ ├── expected-jx-helmfile.yaml │ │ │ │ ├── expected-secret-infra-helmfile.yaml │ │ │ │ ├── extensions │ │ │ │ │ ├── pipeline-catalog.yaml │ │ │ │ │ └── quickstarts.yaml │ │ │ │ ├── helmfiles │ │ │ │ │ ├── helmfile.yaml │ │ │ │ │ ├── jx │ │ │ │ │ │ ├── helmfile.yaml │ │ │ │ │ │ └── jx-values.yaml │ │ │ │ │ └── secret-infra │ │ │ │ │ │ └── helmfile.yaml │ │ │ │ ├── imagePullSecrets.yaml │ │ │ │ ├── jx-requirements.yml │ │ │ │ ├── values │ │ │ │ │ ├── external-dns │ │ │ │ │ │ └── values.yaml │ │ │ │ │ └── kubernetes-external-secrets │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ └── versionStream │ │ │ │ │ ├── charts │ │ │ │ │ ├── external-secrets │ │ │ │ │ │ └── kubernetes-external-secrets │ │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ ├── jxgh │ │ │ │ │ │ ├── jx-build-controller │ │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ │ └── lighthouse │ │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ │ ├── secret-schema.yaml │ │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ └── repositories.yml │ │ │ │ │ └── git │ │ │ │ │ └── github.com │ │ │ │ │ ├── jenkins-x │ │ │ │ │ └── jx3-pipeline-catalog.yml │ │ │ │ │ └── jstrachan │ │ │ │ │ └── jx3-pipeline-catalog.yml │ │ │ │ ├── input │ │ │ │ ├── .jx │ │ │ │ │ └── gitops │ │ │ │ │ │ └── secret-mappings.yaml │ │ │ │ ├── expected-foo-helmfile.yaml │ │ │ │ ├── expected-helmfile.yaml │ │ │ │ ├── expected-jx-helmfile.yaml │ │ │ │ ├── expected-nginx-helmfile.yaml │ │ │ │ ├── expected-secret-infra-helmfile.yaml │ │ │ │ ├── expected-tekton-pipelines-helmfile.yaml │ │ │ │ ├── extensions │ │ │ │ │ └── pipeline-catalog.yaml │ │ │ │ ├── helmfile.yaml │ │ │ │ ├── imagePullSecrets.yaml │ │ │ │ ├── jx-requirements.yml │ │ │ │ ├── values │ │ │ │ │ ├── external-dns │ │ │ │ │ │ └── values.yaml │ │ │ │ │ └── kubernetes-external-secrets │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ └── versionStream │ │ │ │ │ ├── charts │ │ │ │ │ ├── banzaicloud-stable │ │ │ │ │ │ └── vault-operator │ │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ ├── bitnami │ │ │ │ │ │ └── external-dns │ │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ │ └── template-values.yaml │ │ │ │ │ ├── cdf │ │ │ │ │ │ └── tekton-pipeline │ │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ ├── external-secrets │ │ │ │ │ │ └── kubernetes-external-secrets │ │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ ├── ingress-nginx │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ ├── jenkins-x │ │ │ │ │ │ ├── jxboot-helmfile-resources │ │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ │ ├── lighthouse │ │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ │ └── tekton │ │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ ├── repositories.yml │ │ │ │ │ ├── repositories │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ └── stable │ │ │ │ │ │ ├── cert-manager │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ │ └── chartmuseum │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ ├── secret-schema.yaml │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ └── git │ │ │ │ │ └── github.com │ │ │ │ │ ├── jenkins-x │ │ │ │ │ └── jx3-pipeline-catalog.yml │ │ │ │ │ └── jstrachan │ │ │ │ │ └── jx3-pipeline-catalog.yml │ │ │ │ ├── local-secrets │ │ │ │ ├── .jx │ │ │ │ │ └── gitops │ │ │ │ │ │ └── secret-mappings.yaml │ │ │ │ ├── expected-helmfile.yaml │ │ │ │ ├── expected-jx-helmfile.yaml │ │ │ │ ├── expected-secret-infra-helmfile.yaml │ │ │ │ ├── expected-tekton-pipelines-helmfile.yaml │ │ │ │ ├── helmfile.yaml │ │ │ │ ├── jx-requirements.yml │ │ │ │ ├── values │ │ │ │ │ ├── external-dns │ │ │ │ │ │ └── values.yaml │ │ │ │ │ └── kubernetes-external-secrets │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ └── versionStream │ │ │ │ │ └── charts │ │ │ │ │ ├── banzaicloud-stable │ │ │ │ │ └── vault-operator │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ ├── bitnami │ │ │ │ │ └── external-dns │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ └── template-values.yaml │ │ │ │ │ ├── cdf │ │ │ │ │ └── tekton-pipeline │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ ├── external-secrets │ │ │ │ │ └── kubernetes-external-secrets │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ ├── jenkins-x │ │ │ │ │ ├── jxboot-helmfile-resources │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ ├── lighthouse │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ └── tekton │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ ├── jx3 │ │ │ │ │ ├── jenkins-x-crds │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ ├── jxboot-helmfile-resources │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ └── local-external-secrets │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ ├── repositories.yml │ │ │ │ │ ├── repositories │ │ │ │ │ └── defaults.yaml │ │ │ │ │ └── stable │ │ │ │ │ ├── cert-manager │ │ │ │ │ └── defaults.yaml │ │ │ │ │ └── chartmuseum │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ ├── secret-schema.yaml │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ ├── no-jx-values │ │ │ │ ├── expected-cert-manager-helmfile.yaml │ │ │ │ ├── expected-helmfile.yaml │ │ │ │ ├── helmfile.yaml │ │ │ │ ├── jx-requirements.yml │ │ │ │ └── versionStream │ │ │ │ │ └── charts │ │ │ │ │ ├── jetstack │ │ │ │ │ └── cert-manager │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ └── repositories.yml │ │ │ │ ├── no-versionstream │ │ │ │ ├── .jx │ │ │ │ │ └── gitops │ │ │ │ │ │ └── secret-mappings.yaml │ │ │ │ ├── expected-external-secrets-helmfile.yaml │ │ │ │ ├── expected-foo-helmfile.yaml │ │ │ │ ├── expected-helmfile.yaml │ │ │ │ ├── expected-jx-helmfile.yaml │ │ │ │ ├── expected-tekton-pipelines-helmfile.yaml │ │ │ │ ├── helmfile.yaml │ │ │ │ ├── jx-requirements.yml │ │ │ │ └── values │ │ │ │ │ ├── external-dns │ │ │ │ │ └── values.yaml │ │ │ │ │ └── kubernetes-external-secrets │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ ├── remote-chart │ │ │ │ ├── .jx │ │ │ │ │ └── gitops │ │ │ │ │ │ └── secret-mappings.yaml │ │ │ │ ├── expected-foo-helmfile.yaml │ │ │ │ ├── expected-helmfile.yaml │ │ │ │ ├── expected-jx-helmfile.yaml │ │ │ │ ├── expected-nginx-helmfile.yaml │ │ │ │ ├── expected-secret-infra-helmfile.yaml │ │ │ │ ├── expected-tekton-pipelines-helmfile.yaml │ │ │ │ ├── extensions │ │ │ │ │ └── pipeline-catalog.yaml │ │ │ │ ├── helmfile.yaml │ │ │ │ ├── imagePullSecrets.yaml │ │ │ │ ├── jx-requirements.yml │ │ │ │ ├── values │ │ │ │ │ ├── external-dns │ │ │ │ │ │ └── values.yaml │ │ │ │ │ └── kubernetes-external-secrets │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ └── versionStream │ │ │ │ │ ├── charts │ │ │ │ │ ├── banzaicloud-stable │ │ │ │ │ │ └── vault-operator │ │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ ├── bitnami │ │ │ │ │ │ └── external-dns │ │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ │ └── template-values.yaml │ │ │ │ │ ├── cdf │ │ │ │ │ │ └── tekton-pipeline │ │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ ├── external-secrets │ │ │ │ │ │ └── kubernetes-external-secrets │ │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ ├── ingress-nginx │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ ├── jenkins-x │ │ │ │ │ │ ├── jxboot-helmfile-resources │ │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ │ ├── lighthouse │ │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ │ └── tekton │ │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ ├── repositories.yml │ │ │ │ │ ├── repositories │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ └── stable │ │ │ │ │ │ ├── cert-manager │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ │ └── chartmuseum │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ ├── secret-schema.yaml │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ └── git │ │ │ │ │ └── github.com │ │ │ │ │ ├── jenkins-x │ │ │ │ │ └── jx3-pipeline-catalog.yml │ │ │ │ │ └── jstrachan │ │ │ │ │ └── jx3-pipeline-catalog.yml │ │ │ │ ├── remote-cluster │ │ │ │ ├── .jx │ │ │ │ │ └── gitops │ │ │ │ │ │ └── secret-mappings.yaml │ │ │ │ ├── expected-helmfile.yaml │ │ │ │ ├── expected-nginx-helmfile.yaml │ │ │ │ ├── extensions │ │ │ │ │ ├── pipeline-catalog.yaml │ │ │ │ │ └── quickstarts.yaml │ │ │ │ ├── helmfile.yaml │ │ │ │ ├── imagePullSecrets.yaml │ │ │ │ ├── jx-requirements.yml │ │ │ │ └── versionStream │ │ │ │ │ ├── charts │ │ │ │ │ ├── ingress-nginx │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ ├── jenkins-x │ │ │ │ │ │ ├── jxboot-helmfile-resources │ │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ │ ├── lighthouse │ │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ │ └── tekton │ │ │ │ │ │ │ ├── defaults.yaml │ │ │ │ │ │ │ └── values.yaml.gotmpl │ │ │ │ │ └── repositories.yml │ │ │ │ │ └── git │ │ │ │ │ └── github.com │ │ │ │ │ ├── jenkins-x │ │ │ │ │ └── jx3-pipeline-catalog.yml │ │ │ │ │ └── jstrachan │ │ │ │ │ └── jx3-pipeline-catalog.yml │ │ │ │ ├── replace-chart-oci │ │ │ │ ├── expected-helmfile.yaml │ │ │ │ ├── expected-secret-infra-helmfile.yaml │ │ │ │ ├── helmfile.yaml │ │ │ │ ├── jx-requirements.yml │ │ │ │ └── versionStream │ │ │ │ │ └── charts │ │ │ │ │ ├── bank-vaults │ │ │ │ │ └── vault-operator │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ ├── banzaicloud-stable │ │ │ │ │ └── vault-operator │ │ │ │ │ │ └── defaults.yaml │ │ │ │ │ └── repositories.yml │ │ │ │ └── replace-chart │ │ │ │ ├── expected-helmfile.yaml │ │ │ │ ├── expected-secret-infra-helmfile.yaml │ │ │ │ ├── helmfile.yaml │ │ │ │ ├── jx-requirements.yml │ │ │ │ └── versionStream │ │ │ │ └── charts │ │ │ │ ├── jxgh │ │ │ │ └── pusher-wave │ │ │ │ │ └── defaults.yaml │ │ │ │ ├── repositories.yml │ │ │ │ └── wave-k8s │ │ │ │ └── wave │ │ │ │ └── defaults.yaml │ │ ├── status │ │ │ ├── status.go │ │ │ ├── status_test.go │ │ │ └── testdata │ │ │ │ ├── .jx │ │ │ │ └── gitops │ │ │ │ │ └── source-config.yaml │ │ │ │ ├── docs │ │ │ │ └── releases.yaml │ │ │ │ └── jx-requirements.yml │ │ ├── structure │ │ │ ├── structure.go │ │ │ ├── structure_test.go │ │ │ └── testdata │ │ │ │ ├── expected-helmfile.yaml │ │ │ │ ├── helmfile.yaml │ │ │ │ └── helmfiles │ │ │ │ ├── jx │ │ │ │ └── expected-helmfile.yaml │ │ │ │ └── tekton-pipelines │ │ │ │ └── expected-helmfile.yaml │ │ └── validate │ │ │ ├── testdata │ │ │ ├── absolute_path │ │ │ │ └── helmfile.yaml │ │ │ ├── input │ │ │ │ ├── helmfile.yaml │ │ │ │ └── helmfiles │ │ │ │ │ └── jx │ │ │ │ │ └── helmfile.yaml │ │ │ ├── missing │ │ │ │ └── helmfile.yaml │ │ │ ├── missing_repo │ │ │ │ ├── helmfile.yaml │ │ │ │ └── helmfiles │ │ │ │ │ └── jx │ │ │ │ │ └── helmfile.yaml │ │ │ ├── over_nested │ │ │ │ ├── helmfile.yaml │ │ │ │ └── helmfiles │ │ │ │ │ └── over │ │ │ │ │ └── nested │ │ │ │ │ └── helmfile.yaml │ │ │ ├── under_nested │ │ │ │ ├── helmfile.yaml │ │ │ │ └── helmfiles │ │ │ │ │ └── helmfile.yaml │ │ │ └── wrong_namespace │ │ │ │ ├── helmfile.yaml │ │ │ │ └── helmfiles │ │ │ │ └── jx │ │ │ │ └── helmfile.yaml │ │ │ ├── validate.go │ │ │ └── validate_test.go │ ├── image │ │ ├── image.go │ │ ├── image_test.go │ │ └── testdata │ │ │ ├── expected │ │ │ ├── jx-requirements.yml │ │ │ └── src │ │ │ │ ├── deployment.yaml │ │ │ │ ├── job.yaml │ │ │ │ ├── pipelinerun-with-task.yml │ │ │ │ └── tasks.yaml │ │ │ └── input │ │ │ ├── jx-requirements.yml │ │ │ ├── src │ │ │ ├── deployment.yaml │ │ │ ├── job.yaml │ │ │ ├── pipelinerun-with-task.yml │ │ │ └── tasks.yaml │ │ │ └── versionStream │ │ │ ├── charts │ │ │ └── README.md │ │ │ └── docker │ │ │ ├── gcr.io │ │ │ ├── jenkinsxio │ │ │ │ └── jx-cli.yml │ │ │ └── tekton-releases │ │ │ │ └── github.com │ │ │ │ └── tektoncd │ │ │ │ └── pipeline │ │ │ │ └── cmd │ │ │ │ └── git-init.yml │ │ │ └── ubuntu.yml │ ├── ingress │ │ ├── ingress.go │ │ ├── ingress_test.go │ │ └── testdata │ │ │ ├── notls │ │ │ ├── expected │ │ │ │ └── namespaces │ │ │ │ │ └── myapps │ │ │ │ │ ├── modify-ingress.yaml │ │ │ │ │ ├── modify-old-ingress.yaml │ │ │ │ │ ├── not-modify-ingress.yaml │ │ │ │ │ └── service.yaml │ │ │ └── source │ │ │ │ ├── config-root │ │ │ │ └── namespaces │ │ │ │ │ └── myapps │ │ │ │ │ ├── modify-ingress.yaml │ │ │ │ │ ├── modify-old-ingress.yaml │ │ │ │ │ ├── not-modify-ingress.yaml │ │ │ │ │ └── service.yaml │ │ │ │ └── jx-requirements.yml │ │ │ └── tls │ │ │ ├── expected │ │ │ └── namespaces │ │ │ │ └── myapps │ │ │ │ ├── modify-ingress.yaml │ │ │ │ ├── modify-old-ingress.yaml │ │ │ │ ├── not-modify-ingress.yaml │ │ │ │ └── service.yaml │ │ │ └── source │ │ │ ├── config-root │ │ │ └── namespaces │ │ │ │ └── myapps │ │ │ │ ├── modify-ingress.yaml │ │ │ │ ├── modify-old-ingress.yaml │ │ │ │ ├── not-modify-ingress.yaml │ │ │ │ └── service.yaml │ │ │ └── jx-requirements.yml │ ├── jenkins │ │ ├── add │ │ │ ├── add.go │ │ │ ├── add_test.go │ │ │ └── testdata │ │ │ │ ├── helmfile.yaml │ │ │ │ ├── jx-requirements.yml │ │ │ │ └── versionStream │ │ │ │ └── charts │ │ │ │ └── repositories.yml │ │ ├── jenkins.go │ │ └── jobs │ │ │ ├── jobs.go │ │ │ ├── jobs_test.go │ │ │ └── testdata │ │ │ ├── hasjobs │ │ │ ├── .jx │ │ │ │ └── gitops │ │ │ │ │ └── source-config.yaml │ │ │ ├── helmfile.yaml │ │ │ ├── jenkins │ │ │ │ └── templates │ │ │ │ │ ├── folder.gotmpl │ │ │ │ │ └── job.gotmpl │ │ │ ├── jx-requirements.yml │ │ │ └── versionStream │ │ │ │ └── charts │ │ │ │ └── repositories.yml │ │ │ └── nojobs │ │ │ └── .jx │ │ │ └── gitops │ │ │ └── source-config.yaml │ ├── kpt │ │ ├── kpt.go │ │ ├── recreate │ │ │ ├── recreate.go │ │ │ ├── recreate_test.go │ │ │ └── testdata │ │ │ │ └── config-root │ │ │ │ └── namespaces │ │ │ │ ├── app2 │ │ │ │ └── app2 │ │ │ │ │ ├── Kptfile │ │ │ │ │ └── service.yaml │ │ │ │ └── myapps │ │ │ │ └── app1 │ │ │ │ ├── Kptfile │ │ │ │ └── service.yaml │ │ └── update │ │ │ ├── rlimit.go │ │ │ ├── rlimit_win.go │ │ │ ├── testdata │ │ │ ├── config-root │ │ │ │ └── namespaces │ │ │ │ │ ├── app1 │ │ │ │ │ ├── Kptfile │ │ │ │ │ └── service.yaml │ │ │ │ │ └── app2 │ │ │ │ │ ├── Kptfile │ │ │ │ │ └── service.yaml │ │ │ ├── validate_fail │ │ │ │ └── .jx │ │ │ │ │ └── gitops │ │ │ │ │ └── kpt-strategy.yaml │ │ │ └── validate_pass │ │ │ │ └── .jx │ │ │ │ └── gitops │ │ │ │ └── kpt-strategy.yaml │ │ │ ├── update.go │ │ │ └── update_test.go │ ├── kustomize │ │ ├── kustomize.go │ │ ├── kustomize_test.go │ │ └── testdata │ │ │ ├── expected │ │ │ └── myapp │ │ │ │ ├── deployment.yaml │ │ │ │ └── ingress.yaml │ │ │ ├── source │ │ │ ├── godemo48 │ │ │ │ ├── deployment.yaml │ │ │ │ └── service.yaml │ │ │ ├── kustomization.yaml │ │ │ └── myapp │ │ │ │ ├── Kptfile │ │ │ │ ├── README.md │ │ │ │ ├── deployment.yaml │ │ │ │ ├── ingress.yaml │ │ │ │ └── service.yaml │ │ │ └── target │ │ │ ├── godemo48 │ │ │ ├── deployment.yaml │ │ │ └── service.yaml │ │ │ └── myapp │ │ │ ├── Kptfile │ │ │ ├── README.md │ │ │ ├── deployment.yaml │ │ │ ├── ingress.yaml │ │ │ └── service.yaml │ ├── label │ │ ├── label.go │ │ ├── label_test.go │ │ └── testdata │ │ │ ├── cluster-role-binding │ │ │ ├── expected.yaml │ │ │ ├── expectednotoverride.yaml │ │ │ └── source.yaml │ │ │ ├── deploy │ │ │ ├── expected.yaml │ │ │ ├── expectednotoverride.yaml │ │ │ └── source.yaml │ │ │ └── svc │ │ │ ├── expected.yaml │ │ │ ├── expectednotoverride.yaml │ │ │ └── source.yaml │ ├── lint │ │ ├── lint.go │ │ ├── lint_test.go │ │ └── testdata │ │ │ ├── extensions │ │ │ └── pipeline-catalog.yaml │ │ │ ├── helmfile.yaml │ │ │ └── jx-requirements.yml │ ├── namespace │ │ ├── namespace.go │ │ ├── namespace_test.go │ │ └── testdata │ │ │ ├── dirmode │ │ │ ├── jx │ │ │ │ └── foo-svc.yaml │ │ │ └── something │ │ │ │ └── cheese-svc.yaml │ │ │ └── regular │ │ │ ├── cluster │ │ │ ├── expected.yaml │ │ │ └── source.yaml │ │ │ ├── hasns │ │ │ ├── expected.yaml │ │ │ └── source.yaml │ │ │ ├── isns │ │ │ ├── expected.yaml │ │ │ └── source.yaml │ │ │ └── nons │ │ │ ├── expected.yaml │ │ │ └── source.yaml │ ├── patch │ │ ├── patch.go │ │ ├── patch_test.go │ │ └── testdata │ │ │ ├── cert-manager-bug │ │ │ ├── expected.yaml │ │ │ └── source.yaml │ │ │ ├── cluster-role-binding │ │ │ ├── expected.yaml │ │ │ └── source.yaml │ │ │ └── svc │ │ │ ├── expected.yaml │ │ │ └── source.yaml │ ├── plugin │ │ ├── get │ │ │ └── get.go │ │ ├── plugin.go │ │ └── upgrade │ │ │ └── upgrade.go │ ├── postprocess │ │ ├── postprocess.go │ │ └── postprocess_test.go │ ├── pr │ │ ├── comment │ │ │ ├── comment.go │ │ │ └── comment_test.go │ │ ├── get │ │ │ ├── get.go │ │ │ └── get_test.go │ │ ├── label │ │ │ ├── label.go │ │ │ └── label_test.go │ │ ├── pr.go │ │ ├── push │ │ │ ├── push.go │ │ │ └── push_test.go │ │ └── variables │ │ │ ├── testdata │ │ │ ├── comments │ │ │ │ └── expected.sh │ │ │ ├── empty │ │ │ │ └── expected.sh │ │ │ └── existing │ │ │ │ ├── .jx │ │ │ │ └── variables.sh │ │ │ │ └── expected.sh │ │ │ ├── variables.go │ │ │ └── variables_test.go │ ├── rename │ │ ├── rename.go │ │ ├── rename_test.go │ │ └── testdata │ │ │ ├── bad-name.yaml │ │ │ ├── resource-with-helm-templates.yaml │ │ │ ├── resource.yaml │ │ │ ├── resource10.yaml │ │ │ ├── resource100.yaml │ │ │ ├── resource101.yaml │ │ │ ├── resource11.yaml │ │ │ ├── resource12.yaml │ │ │ ├── resource13.yaml │ │ │ ├── resource14.yaml │ │ │ ├── resource15.yaml │ │ │ ├── resource16.yaml │ │ │ ├── resource17.yaml │ │ │ ├── resource18.yaml │ │ │ ├── resource19.yaml │ │ │ ├── resource2.yaml │ │ │ ├── resource20.yaml │ │ │ ├── resource21.yaml │ │ │ ├── resource22.yaml │ │ │ ├── resource23.yaml │ │ │ ├── resource24.yaml │ │ │ ├── resource25.yaml │ │ │ ├── resource26.yaml │ │ │ ├── resource27.yaml │ │ │ ├── resource28.yaml │ │ │ ├── resource29.yaml │ │ │ ├── resource3.yaml │ │ │ ├── resource30.yaml │ │ │ ├── resource31.yaml │ │ │ ├── resource32.yaml │ │ │ ├── resource33.yaml │ │ │ ├── resource34.yaml │ │ │ ├── resource35.yaml │ │ │ ├── resource36.yaml │ │ │ ├── resource37.yaml │ │ │ ├── resource38.yaml │ │ │ ├── resource39.yaml │ │ │ ├── resource4.yaml │ │ │ ├── resource40.yaml │ │ │ ├── resource41.yaml │ │ │ ├── resource42.yaml │ │ │ ├── resource43.yaml │ │ │ ├── resource5.yaml │ │ │ ├── resource6.yaml │ │ │ ├── resource7.yaml │ │ │ ├── resource8.yaml │ │ │ └── resource9.yaml │ ├── repository │ │ ├── add │ │ │ ├── add.go │ │ │ ├── add_test.go │ │ │ └── testdata │ │ │ │ ├── anewthingy │ │ │ │ ├── .jx │ │ │ │ │ └── gitops │ │ │ │ │ │ └── source-config.yaml │ │ │ │ ├── expected.yaml │ │ │ │ └── jx-requirements.yml │ │ │ │ ├── mygitlab │ │ │ │ ├── .jx │ │ │ │ │ └── gitops │ │ │ │ │ │ └── source-config.yaml │ │ │ │ ├── expected.yaml │ │ │ │ └── jx-requirements.yml │ │ │ │ └── myjenkins │ │ │ │ ├── .jx │ │ │ │ └── gitops │ │ │ │ │ └── source-config.yaml │ │ │ │ ├── expected.yaml │ │ │ │ └── jx-requirements.yml │ │ ├── create │ │ │ ├── create.go │ │ │ ├── create_test.go │ │ │ └── testdata │ │ │ │ ├── expected │ │ │ │ └── config-root │ │ │ │ │ └── namespaces │ │ │ │ │ └── jx │ │ │ │ │ └── source-repositories │ │ │ │ │ ├── jenkins-x-jx-cli.yaml │ │ │ │ │ ├── jenkins-x-jx-gitops.yaml │ │ │ │ │ ├── jx-gitlab-test-cluster-gitlab-import-test-1.yaml │ │ │ │ │ └── mygitlaborg-somegitlab.yaml │ │ │ │ └── input │ │ │ │ ├── .jx │ │ │ │ └── gitops │ │ │ │ │ └── source-config.yaml │ │ │ │ └── jx-requirements.yml │ │ ├── deletecmd │ │ │ ├── delete.go │ │ │ ├── delete_test.go │ │ │ └── testdata │ │ │ │ ├── simple-owner │ │ │ │ ├── .jx │ │ │ │ │ └── gitops │ │ │ │ │ │ └── source-config.yaml │ │ │ │ └── expected.yaml │ │ │ │ └── simple │ │ │ │ ├── .jx │ │ │ │ └── gitops │ │ │ │ │ └── source-config.yaml │ │ │ │ └── expected.yaml │ │ ├── export │ │ │ ├── export.go │ │ │ ├── export_test.go │ │ │ └── testdata │ │ │ │ └── expected.yaml │ │ ├── repository.go │ │ └── resolve │ │ │ ├── resolve.go │ │ │ ├── resolve_test.go │ │ │ └── testdata │ │ │ ├── requirements │ │ │ └── jx-requirements.yml │ │ │ └── sourcedir │ │ │ ├── environment │ │ │ ├── expected.yaml │ │ │ └── source.yaml │ │ │ └── repository │ │ │ ├── expected.yaml │ │ │ └── source.yaml │ ├── requirement │ │ ├── edit │ │ │ ├── edit.go │ │ │ ├── edit_test.go │ │ │ └── testdata │ │ │ │ └── gitops-enabled.yml │ │ ├── merge │ │ │ ├── merge.go │ │ │ ├── merge_test.go │ │ │ └── testdata │ │ │ │ ├── azure │ │ │ │ ├── changes.yml │ │ │ │ ├── expected.yml │ │ │ │ └── jx-requirements.yml │ │ │ │ ├── domain │ │ │ │ ├── changes.yml │ │ │ │ ├── expected.yml │ │ │ │ └── jx-requirements.yml │ │ │ │ ├── eks │ │ │ │ ├── changes.yml │ │ │ │ ├── expected.yml │ │ │ │ └── jx-requirements.yml │ │ │ │ ├── gke-ignore-env │ │ │ │ ├── changes.yml │ │ │ │ ├── expected.yml │ │ │ │ └── jx-requirements.yml │ │ │ │ ├── gke-no-domain │ │ │ │ ├── changes.yml │ │ │ │ ├── expected.yml │ │ │ │ └── jx-requirements.yml │ │ │ │ ├── gke-no-secret │ │ │ │ ├── changes.yml │ │ │ │ ├── expected.yml │ │ │ │ └── jx-requirements.yml │ │ │ │ ├── gke-old-buckets │ │ │ │ ├── changes.yml │ │ │ │ ├── expected.yml │ │ │ │ └── jx-requirements.yml │ │ │ │ ├── gke-v3 │ │ │ │ ├── changes.yml │ │ │ │ ├── expected.yml │ │ │ │ └── jx-requirements.yml │ │ │ │ ├── gke │ │ │ │ ├── changes.yml │ │ │ │ ├── expected.yml │ │ │ │ └── jx-requirements.yml │ │ │ │ └── sample │ │ │ │ ├── changes.yml │ │ │ │ ├── expected.yml │ │ │ │ └── jx-requirements.yml │ │ ├── publish │ │ │ ├── publish.go │ │ │ ├── publish_test.go │ │ │ └── testdata │ │ │ │ ├── config-root │ │ │ │ └── namespaces │ │ │ │ │ └── jx │ │ │ │ │ └── jxboot-helmfile-resources │ │ │ │ │ └── dev-environment.yaml │ │ │ │ └── jx-requirements.yml │ │ ├── requirement.go │ │ └── resolve │ │ │ ├── gke.go │ │ │ ├── resolve.go │ │ │ ├── resolve_test.go │ │ │ └── testdata │ │ │ ├── backwards_compatible_requirements_file │ │ │ ├── new │ │ │ │ └── jx-requirements.yml │ │ │ └── old │ │ │ │ └── jx-requirements.yml │ │ │ ├── eks │ │ │ └── jx-requirements.yml │ │ │ ├── get_req_team_settings │ │ │ └── boot_requirements.yaml │ │ │ └── gke │ │ │ └── jx-requirements.yml │ ├── root.go │ ├── sa │ │ ├── sa.go │ │ └── secret │ │ │ ├── secret.go │ │ │ ├── secret_test.go │ │ │ └── testdata │ │ │ └── sa.yaml │ ├── scheduler │ │ ├── scheduler.go │ │ ├── scheduler_test.go │ │ ├── templater.go │ │ └── testdata │ │ │ ├── config-root │ │ │ └── namespaces │ │ │ │ └── jx │ │ │ │ └── jxboot-helmfile-resources │ │ │ │ ├── another-in-repo-sr.yaml │ │ │ │ ├── bbs-in-repo-sr.yaml │ │ │ │ ├── default-sr.yaml │ │ │ │ ├── dev-env-sr.yaml │ │ │ │ ├── devenv.yaml │ │ │ │ └── in-repo-sr.yaml │ │ │ ├── jx-requirements.yml │ │ │ └── versionStream │ │ │ └── schedulers │ │ │ ├── another-in-repo.yaml │ │ │ ├── default.yaml │ │ │ ├── environment.yaml │ │ │ ├── in-repo.yaml │ │ │ └── jx-meta-pipeline.yaml │ ├── split │ │ ├── split.go │ │ ├── split_test.go │ │ └── testdata │ │ │ ├── cert-manager │ │ │ └── cainjector-rbac.yaml │ │ │ ├── comment │ │ │ └── foo-svc.yaml │ │ │ ├── empty │ │ │ └── empty-svc.yaml │ │ │ ├── helm │ │ │ └── tekton.yaml │ │ │ ├── no-separator │ │ │ └── cheese-svc.yaml │ │ │ ├── separator-in-crd │ │ │ └── crd.yaml │ │ │ ├── separator │ │ │ └── cheese-svc.yaml │ │ │ └── two │ │ │ └── foo-svc.yaml │ ├── upgrade │ │ └── upgrade.go │ ├── variables │ │ ├── testdata │ │ │ ├── has_preview_dockerfile │ │ │ │ ├── Dockerfile │ │ │ │ └── Dockerfile-preview │ │ │ ├── just_dockerfile │ │ │ │ └── Dockerfile │ │ │ └── tests │ │ │ │ ├── app_name_override │ │ │ │ └── expected.sh │ │ │ │ ├── empty │ │ │ │ └── expected.sh │ │ │ │ ├── existing │ │ │ │ ├── .jx │ │ │ │ │ └── variables.sh │ │ │ │ └── expected.sh │ │ │ │ ├── nested │ │ │ │ └── expected.sh │ │ │ │ └── nokube │ │ │ │ └── expected.sh │ │ ├── variables.go │ │ └── variables_test.go │ ├── version │ │ └── version.go │ ├── versionstream │ │ ├── testdata │ │ │ ├── custom │ │ │ │ ├── expected │ │ │ │ └── versionStream │ │ │ │ │ └── Kptfile │ │ │ ├── latest │ │ │ │ ├── expected │ │ │ │ └── versionStream │ │ │ │ │ └── Kptfile │ │ │ └── lts │ │ │ │ ├── expected │ │ │ │ └── versionStream │ │ │ │ └── Kptfile │ │ ├── versionstream.go │ │ └── versionstream_test.go │ ├── webhook │ │ ├── delete │ │ │ ├── delete.go │ │ │ └── delete_test.go │ │ ├── update │ │ │ ├── constants.go │ │ │ ├── update.go │ │ │ └── update_test.go │ │ └── webhook.go │ └── yset │ │ ├── testdata │ │ ├── image_tag │ │ │ ├── expected.yaml │ │ │ └── source.yaml │ │ ├── missing_top_level │ │ │ ├── expected.yaml │ │ │ └── source.yaml │ │ └── top_level │ │ │ ├── expected.yaml │ │ │ └── source.yaml │ │ ├── yset.go │ │ └── yset_test.go ├── fakekpt │ └── fakekpt.go ├── fakerunners │ └── git_cloner.go ├── filters │ ├── string_filter.go │ └── string_filter_test.go ├── ghpages │ └── ghpages.go ├── helmfiles │ ├── add.go │ ├── add_test.go │ ├── editor.go │ ├── helpers.go │ ├── helpers_test.go │ ├── helpers_test_data │ │ ├── helmfile.yaml │ │ └── helmfiles │ │ │ ├── cert-manager │ │ │ └── helmfile.yaml │ │ │ ├── jx │ │ │ ├── helmfile.yaml │ │ │ └── helmfiles │ │ │ │ └── nested │ │ │ │ └── helmfile.yaml │ │ │ └── nginx │ │ │ └── helmfile.yaml │ └── testhelmfile │ │ └── helpers.go ├── helmhelpers │ ├── constants.go │ ├── helpers.go │ └── helpers_test.go ├── jxtmpl │ ├── reqvalues │ │ ├── requirements_values.go │ │ ├── requirements_values_test.go │ │ └── testdata │ │ │ ├── jx-global-values-expected.yaml │ │ │ └── jx-global-values.yaml │ └── templater │ │ ├── functions.go │ │ ├── templater.go │ │ ├── templater_test.go │ │ └── testdata │ │ ├── jx-requirements.yml │ │ ├── secrets.yaml │ │ ├── values.yaml │ │ └── values.yaml.gotmpl ├── kustomizes │ └── files.go ├── matcher │ └── matcher.go ├── pipelinecatalogs │ └── pipelinecatalogs.go ├── pipelinescheduler │ ├── builder.go │ ├── builder_test.go │ ├── config_builder.go │ ├── config_builder_test.go │ ├── generator.go │ ├── leaf.go │ ├── prow_config.go │ ├── source_repositories.go │ ├── testdata │ │ ├── merger_with_mergemethod │ │ │ ├── config.yaml │ │ │ ├── parent.yaml │ │ │ ├── plugins.yaml │ │ │ └── repo.yaml │ │ ├── merger_with_parent │ │ │ ├── config.yaml │ │ │ ├── parent.yaml │ │ │ ├── plugins.yaml │ │ │ └── repo.yaml │ │ ├── multiple_contexts │ │ │ ├── config.yaml │ │ │ ├── plugins.yaml │ │ │ └── repo.yaml │ │ ├── no_postsubmits_with_parent │ │ │ ├── config.yaml │ │ │ ├── parent.yaml │ │ │ ├── plugins.yaml │ │ │ └── repo.yaml │ │ ├── only_plugins │ │ │ ├── parent.yaml │ │ │ ├── plugins.yaml │ │ │ └── repo.yaml │ │ ├── only_plugins_from_parent │ │ │ ├── parent.yaml │ │ │ ├── plugins.yaml │ │ │ └── repo.yaml │ │ ├── only_plugins_from_repo │ │ │ ├── parent.yaml │ │ │ ├── plugins.yaml │ │ │ └── repo.yaml │ │ ├── only_with_parent │ │ │ ├── config.yaml │ │ │ ├── parent.yaml │ │ │ └── plugins.yaml │ │ ├── policy_with_parent │ │ │ ├── config.yaml │ │ │ ├── parent.yaml │ │ │ ├── plugins.yaml │ │ │ └── repo.yaml │ │ ├── repo │ │ │ ├── config.yaml │ │ │ ├── plugins.yaml │ │ │ └── repo.yaml │ │ └── with_parent │ │ │ ├── config.yaml │ │ │ ├── parent.yaml │ │ │ ├── plugins.yaml │ │ │ └── repo.yaml │ └── testhelpers │ │ └── helpers.go ├── plugins │ ├── helpers.go │ ├── helpers_test.go │ └── versions.go ├── quickstarthelpers │ └── load.go ├── releasereport │ ├── helpers.go │ └── types.go ├── rootcmd │ └── helpers.go ├── sourceconfigs │ ├── helpers.go │ └── helpers_test.go ├── tagging │ └── base.go ├── tfupgrade │ ├── testdata │ │ ├── azure │ │ │ ├── expected.tf │ │ │ ├── main.tf │ │ │ └── versionStream │ │ │ │ └── git │ │ │ │ └── github.com │ │ │ │ └── jenkins-x-terraform │ │ │ │ └── terraform-jx-azure.yml │ │ ├── eks │ │ │ ├── expected.tf │ │ │ ├── main.tf │ │ │ └── versionStream │ │ │ │ └── git │ │ │ │ └── github.com │ │ │ │ └── jenkins-x │ │ │ │ └── terraform-aws-eks-jx.yml │ │ └── gke │ │ │ ├── expected.tf │ │ │ ├── main.tf │ │ │ └── versionStream │ │ │ └── git │ │ │ └── github.com │ │ │ └── jenkins-x │ │ │ └── terraform-google-jx.yml │ ├── tfupgrade.go │ └── tfupgrade_test.go ├── variablefinders │ ├── helpers.go │ ├── pipeline_kind.go │ ├── repo_url.go │ ├── requirements.go │ ├── requirements_test.go │ ├── testdata │ │ ├── all │ │ │ ├── .jx │ │ │ │ └── settings.yaml │ │ │ ├── dev-env │ │ │ │ └── jx-requirements.yml │ │ │ └── expected.yml │ │ ├── chart_repo │ │ │ ├── .jx │ │ │ │ └── settings.yaml │ │ │ ├── dev-env │ │ │ │ └── jx-requirements.yml │ │ │ └── expected.yml │ │ ├── disable_env │ │ │ ├── .jx │ │ │ │ └── settings.yaml │ │ │ ├── dev-env │ │ │ │ └── jx-requirements.yml │ │ │ └── expected.yml │ │ ├── group_and_local_settings │ │ │ ├── .jx │ │ │ │ └── settings.yaml │ │ │ ├── dev-env │ │ │ │ ├── .jx │ │ │ │ │ └── gitops │ │ │ │ │ │ └── source-config.yaml │ │ │ │ └── jx-requirements.yml │ │ │ └── expected.yml │ │ ├── group_settings │ │ │ ├── dev-env │ │ │ │ ├── .jx │ │ │ │ │ └── gitops │ │ │ │ │ │ └── source-config.yaml │ │ │ │ └── jx-requirements.yml │ │ │ └── expected.yml │ │ └── no_settings │ │ │ ├── dev-env │ │ │ └── jx-requirements.yml │ │ │ └── expected.yml │ └── version.go └── versionstreamer │ ├── helpers.go │ └── versionstreamer.go └── promote.sh /.dependabot/config.yml: -------------------------------------------------------------------------------- 1 | version: 1 2 | update_configs: 3 | - package_manager: "go:modules" 4 | directory: "/" 5 | update_schedule: "daily" 6 | -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | draft.toml 2 | target/classes 3 | target/generated-sources 4 | target/generated-test-sources 5 | target/maven-archiver 6 | target/maven-status 7 | target/surefire-reports 8 | target/test-classes 9 | target/*.original 10 | charts/ 11 | NOTICE 12 | LICENSE 13 | README.md -------------------------------------------------------------------------------- /.gcloudignore: -------------------------------------------------------------------------------- 1 | .github 2 | .idea 3 | .git 4 | jenkins-x.yml 5 | skaffold.yaml 6 | *.md 7 | build.sh 8 | build 9 | bin 10 | -------------------------------------------------------------------------------- /.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | *.png 23 | 24 | # known compile time folders 25 | target/ 26 | node_modules/ 27 | vendor/ -------------------------------------------------------------------------------- /.jx/updatebot.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: updatebot.jenkins-x.io/v1alpha1 2 | kind: UpdateConfig 3 | spec: 4 | rules: 5 | - urls: 6 | - https://github.com/jenkins-x/jx 7 | changes: 8 | - regex: 9 | pattern: | 10 | \s+GitOpsVersion = "(.*)" 11 | files: 12 | - "pkg/plugins/versions.go" 13 | -------------------------------------------------------------------------------- /.stignore: -------------------------------------------------------------------------------- 1 | .git 2 | .idea 3 | .settings 4 | .vscode 5 | bin 6 | build 7 | target 8 | node_modules 9 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/jenkins-x/jx-boot:latest 2 | 3 | ENTRYPOINT ["jx-gitops"] 4 | 5 | COPY ./build/linux/jx-gitops /usr/bin/jx-gitops -------------------------------------------------------------------------------- /Dockerfile-preview: -------------------------------------------------------------------------------- 1 | FROM ghcr.io/jenkins-x/jx-boot:latest 2 | 3 | ENTRYPOINT ["jx-gitops"] 4 | 5 | COPY ./build/linux/jx-gitops /usr/bin/jx-gitops -------------------------------------------------------------------------------- /OWNERS: -------------------------------------------------------------------------------- 1 | approvers: 2 | - maintainers 3 | reviewers: 4 | - maintainers -------------------------------------------------------------------------------- /OWNERS_ALIASES: -------------------------------------------------------------------------------- 1 | foreignAliases: 2 | - name: jx-community 3 | org: jenkins-x 4 | -------------------------------------------------------------------------------- /build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if [ -z "$GCP_SA" ] 4 | then 5 | echo "no GCP SA specified" 6 | else 7 | echo "enabling GCP Service Account from $GCP_SA" 8 | gcloud auth activate-service-account --key-file $GCP_SA 9 | fi 10 | 11 | 12 | echo "building container image version: $VERSION" 13 | 14 | gcloud builds submit --config cloudbuild.yaml --project jenkinsxio-labs-private --substitutions=_VERSION="$VERSION" 15 | 16 | -------------------------------------------------------------------------------- /cloudbuild.yaml: -------------------------------------------------------------------------------- 1 | steps: 2 | - name: 'golang:1.13-stretch' 3 | args: ['make', 'label'] 4 | - name: 'gcr.io/cloud-builders/docker' 5 | args: ['build', '-f', 'fns/label/Dockerfile', '-t', 'gcr.io/jenkinsxio-labs-private/jx-fn-label:${_VERSION}', '.'] 6 | substitutions: 7 | _VERSION: 0.0.0-JR6 8 | timeout: 3600s 9 | options: 10 | machineType: 'N1_HIGHCPU_8' 11 | logsBucket: gs://jenkinsxio-labs-private 12 | images: 13 | - 'gcr.io/jenkinsxio-labs-private/jx-fn-label:${_VERSION}' 14 | -------------------------------------------------------------------------------- /cmd/app/main.go: -------------------------------------------------------------------------------- 1 | //nolint 2 | //go:build !windows 3 | 4 | package app 5 | 6 | import "github.com/jenkins-x-plugins/jx-gitops/pkg/cmd" 7 | 8 | // Run runs the command, if args are not nil they will be set on the command 9 | func Run(args []string) error { 10 | command := cmd.Main() 11 | if args != nil { 12 | args = args[1:] 13 | command.SetArgs(args) 14 | } 15 | return command.Execute() 16 | } 17 | -------------------------------------------------------------------------------- /cmd/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "os" 5 | 6 | "github.com/jenkins-x-plugins/jx-gitops/cmd/app" 7 | ) 8 | 9 | // Entrypoint for the command 10 | func main() { 11 | if err := app.Run(nil); err != nil { 12 | os.Exit(1) 13 | } 14 | os.Exit(0) 15 | } 16 | -------------------------------------------------------------------------------- /docs/cmd/jx-gitops_plugin_get.md: -------------------------------------------------------------------------------- 1 | ## jx-gitops plugin get 2 | 3 | Display the binary plugins 4 | 5 | ***Aliases**: list,ls* 6 | 7 | ### Usage 8 | 9 | ``` 10 | jx-gitops plugin get 11 | ``` 12 | 13 | ### Synopsis 14 | 15 | Display the binary plugins 16 | 17 | ### Examples 18 | 19 | # list all binary plugins 20 | jx plugin get 21 | 22 | ### Options 23 | 24 | ``` 25 | -h, --help help for get 26 | ``` 27 | 28 | ### SEE ALSO 29 | 30 | * [jx-gitops plugin](jx-gitops_plugin.md) - Commands for working with plugins 31 | 32 | ###### Auto generated by spf13/cobra on 5-Oct-2022 33 | -------------------------------------------------------------------------------- /docs/cmd/jx-gitops_version.md: -------------------------------------------------------------------------------- 1 | ## jx-gitops version 2 | 3 | Displays the version of this command 4 | 5 | ### Usage 6 | 7 | ``` 8 | jx-gitops version 9 | ``` 10 | 11 | ### Synopsis 12 | 13 | Displays the version of this command 14 | 15 | ### Options 16 | 17 | ``` 18 | -h, --help help for version 19 | ``` 20 | 21 | ### SEE ALSO 22 | 23 | * [jx-gitops](jx-gitops.md) - commands for working with GitOps based git repositories 24 | 25 | ###### Auto generated by spf13/cobra on 5-Oct-2022 26 | -------------------------------------------------------------------------------- /docs/man/man1/jx-gitops-version.1: -------------------------------------------------------------------------------- 1 | .TH "JX-GITOPS\-VERSION" "1" "" "Auto generated by spf13/cobra" "" 2 | .nh 3 | .ad l 4 | 5 | 6 | .SH NAME 7 | .PP 8 | jx\-gitops\-version \- Displays the version of this command 9 | 10 | 11 | .SH SYNOPSIS 12 | .PP 13 | \fBjx\-gitops version\fP 14 | 15 | 16 | .SH DESCRIPTION 17 | .PP 18 | Displays the version of this command 19 | 20 | 21 | .SH OPTIONS 22 | .PP 23 | \fB\-h\fP, \fB\-\-help\fP[=false] 24 | help for version 25 | 26 | 27 | .SH SEE ALSO 28 | .PP 29 | \fBjx\-gitops(1)\fP 30 | 31 | 32 | .SH HISTORY 33 | .PP 34 | Auto generated by spf13/cobra 35 | -------------------------------------------------------------------------------- /hack/changelog-header.md: -------------------------------------------------------------------------------- 1 | ### Linux 2 | 3 | ```shell 4 | curl -L https://github.com/jenkins-x-plugins/jx-gitops/releases/download/v{{.Version}}/jx-gitops-linux-amd64.tar.gz | tar xzv 5 | sudo mv jx-gitops /usr/local/bin 6 | ``` 7 | 8 | ### macOS 9 | 10 | ```shell 11 | curl -L https://github.com/jenkins-x-plugins/jx-gitops/releases/download/v{{.Version}}/jx-gitops-darwin-amd64.tar.gz | tar xzv 12 | sudo mv jx-gitops /usr/local/bin 13 | ``` 14 | 15 | -------------------------------------------------------------------------------- /hack/configdocs/templates/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkins-x-plugins/jx-gitops/537756a131e4aee8b462a82143e4d45808d5cb00/hack/configdocs/templates/.gitignore -------------------------------------------------------------------------------- /hack/gofmt.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | files=$(find . -name "*.go" | grep -v vendor/ | grep -v ./pkg/client/openapi/all | grep -v Dockerfile | xargs gofmt -l -s) 4 | if [[ $files ]]; then 5 | echo "Gofmt errors in files:" 6 | echo "$files" 7 | diff=$(find . -name "*.go" | grep -v vendor/ | grep -v ./pkg/client/openapi/all | grep -v Dockerfile | xargs gofmt -d -s) 8 | echo "$diff" 9 | exit 1 10 | fi 11 | -------------------------------------------------------------------------------- /hack/linter.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e -o pipefail 4 | 5 | if [ "$DISABLE_LINTER" == "true" ] 6 | then 7 | exit 0 8 | fi 9 | 10 | DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" 11 | 12 | if ! [ -x "$(command -v golangci-lint)" ]; then 13 | echo "Installing GolangCI-Lint" 14 | ${DIR}/install_golint.sh -b $GOPATH/bin v1.46.2 15 | fi 16 | 17 | export GO111MODULE=on 18 | golangci-lint run \ 19 | --verbose \ 20 | --build-tags build 21 | -------------------------------------------------------------------------------- /jx/bdd/boot-lh-ghe/README.md: -------------------------------------------------------------------------------- 1 | ## BDD test using JX Boot with Local secrets -------------------------------------------------------------------------------- /jx/bdd/boot-lh-ghe/cluster.yaml: -------------------------------------------------------------------------------- 1 | clusters: 2 | - name: boot-lh-ghe 3 | args: 4 | - create 5 | - cluster 6 | - gke 7 | - --project-id=jenkins-x-bdd3 8 | - -m=n1-standard-2 9 | - --min-num-nodes=3 10 | - --max-num-nodes=5 11 | - -z=europe-west1-c 12 | - --skip-login 13 | - --skip-installation 14 | commands: 15 | - command: jx 16 | args: 17 | - boot 18 | - -b 19 | -------------------------------------------------------------------------------- /jx/bdd/boot-lh-ghe/parameters.yaml: -------------------------------------------------------------------------------- 1 | adminUser: 2 | username: admin 3 | enableDocker: false 4 | gpg: {} 5 | pipelineUser: 6 | username: dev1 7 | email: jenkins-x@googlegroups.com 8 | -------------------------------------------------------------------------------- /jx/bdd/boot-vault/README.md: -------------------------------------------------------------------------------- 1 | ## BDD test using JX Boot with Local secrets -------------------------------------------------------------------------------- /jx/bdd/boot-vault/cluster.yaml: -------------------------------------------------------------------------------- 1 | clusters: 2 | - name: boot-vault 3 | args: 4 | - create 5 | - cluster 6 | - gke 7 | - --project-id=jenkins-x-bdd3 8 | - -m=n1-standard-2 9 | - --min-num-nodes=3 10 | - --max-num-nodes=5 11 | - -z=europe-west1-c 12 | - --skip-login 13 | - --skip-installation 14 | commands: 15 | - command: jx 16 | args: 17 | - boot 18 | - -b 19 | -------------------------------------------------------------------------------- /jx/bdd/boot-vault/parameters.yaml: -------------------------------------------------------------------------------- 1 | adminUser: 2 | username: admin 3 | enableDocker: false 4 | gitProvider: github 5 | gpg: {} 6 | pipelineUser: 7 | github: 8 | host: github.com 9 | username: jenkins-x-bot-test 10 | email: jenkins-x@googlegroups.com 11 | -------------------------------------------------------------------------------- /jx/bdd/static/README.md: -------------------------------------------------------------------------------- 1 | ## BDD test for Jenkins X Pipelines with static master 2 | -------------------------------------------------------------------------------- /jx/bdd/static/cluster.yaml: -------------------------------------------------------------------------------- 1 | clusters: 2 | - name: static-gkebdd 3 | args: 4 | - create 5 | - cluster 6 | - gke 7 | - --project-id=jenkins-x-bdd3 8 | - --no-tiller 9 | - -m=n1-standard-2 10 | - --min-num-nodes=3 11 | - --max-num-nodes=5 12 | - -z=europe-west1-c 13 | - --skip-login 14 | -------------------------------------------------------------------------------- /jx/bdd/tekton/README.md: -------------------------------------------------------------------------------- 1 | ## BDD test for Jenkins X Pipelines with Tekton -------------------------------------------------------------------------------- /jx/bdd/tekton/cluster.yaml: -------------------------------------------------------------------------------- 1 | clusters: 2 | - name: tekton-gkebdd 3 | args: 4 | - create 5 | - cluster 6 | - gke 7 | - --tekton 8 | - --project-id=jenkins-x-bdd3 9 | - -m=n1-standard-2 10 | - --min-num-nodes=3 11 | - --max-num-nodes=5 12 | - -z=europe-west1-c 13 | - --skip-login 14 | commands: 15 | - command: jx 16 | args: 17 | - step 18 | - git 19 | - credentials 20 | -------------------------------------------------------------------------------- /pkg/apis/gitops/v1alpha1/constants.go: -------------------------------------------------------------------------------- 1 | package v1alpha1 2 | 3 | const ( 4 | // APIVersion the api version 5 | APIVersion = "gitops.jenkins-x.io/v1alpha1" 6 | 7 | // KindSecretMapping the kind 8 | KindSecretMapping = "SecretMapping" 9 | 10 | // KindSourceConfig the kind 11 | KindSourceConfig = "SourceConfig" 12 | 13 | // DomainPlaceholder what is the default domain value used as a place holder until 14 | // the real domain name can be discovered which is usually after the first apply 15 | // of kubernetes resources as we need to discover the LoadBalancer Service in the nginx namespace 16 | DomainPlaceholder = "change.me" 17 | ) 18 | -------------------------------------------------------------------------------- /pkg/apis/gitops/v1alpha1/doc.go: -------------------------------------------------------------------------------- 1 | // +k8s:deepcopy-gen=package 2 | // +k8s:openapi-gen=true 3 | // Package v1alpha1 is the v1alpha1 version of the API. 4 | // +groupName=gitops.jenkins-x.io 5 | package v1alpha1 6 | -------------------------------------------------------------------------------- /pkg/apis/scheduler/v1alpha1/doc.go: -------------------------------------------------------------------------------- 1 | // +k8s:deepcopy-gen=package 2 | // +k8s:openapi-gen=true 3 | // Package v1alpha1 is the v1alpha1 version of the API. 4 | // +groupName=scheduler.jenkins-x.io 5 | package v1alpha1 6 | -------------------------------------------------------------------------------- /pkg/chart/chart.go: -------------------------------------------------------------------------------- 1 | package chart 2 | 3 | type Chart struct { 4 | Dependencies []*Dependencies `json:"dependencies"` 5 | } 6 | 7 | type Dependencies struct { 8 | Name string `json:"name"` 9 | Version string `json:"version"` 10 | Repository string `json:"repository"` 11 | } 12 | -------------------------------------------------------------------------------- /pkg/cmd/annotate/annotate.go: -------------------------------------------------------------------------------- 1 | package annotate 2 | 3 | import ( 4 | "github.com/jenkins-x-plugins/jx-gitops/pkg/tagging" 5 | "github.com/spf13/cobra" 6 | ) 7 | 8 | // NewCmdUpdateAnnotate creates a command object for the command annotate 9 | func NewCmdUpdateAnnotate() (*cobra.Command, *tagging.Options) { 10 | return tagging.NewCmdUpdateTag("annotate", "annotation") 11 | } 12 | -------------------------------------------------------------------------------- /pkg/cmd/annotate/testdata/cluster-role-binding/expected.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: jx-jx 5 | namespace: jx 6 | annotations: 7 | beer: 'stella' 8 | wine: 'merlot' 9 | roleRef: 10 | apiGroup: rbac.authorization.k8s.io 11 | kind: ClusterRole 12 | name: jx-jx 13 | subjects: 14 | - kind: ServiceAccount 15 | name: jx 16 | namespace: jx 17 | -------------------------------------------------------------------------------- /pkg/cmd/annotate/testdata/cluster-role-binding/source.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: jx-jx 5 | namespace: jx 6 | roleRef: 7 | apiGroup: rbac.authorization.k8s.io 8 | kind: ClusterRole 9 | name: jx-jx 10 | subjects: 11 | - kind: ServiceAccount 12 | name: jx 13 | namespace: jx 14 | -------------------------------------------------------------------------------- /pkg/cmd/annotate/testdata/svc/expected.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: cheese 5 | annotations: 6 | chart: cheese 7 | beer: 'stella' 8 | wine: 'merlot' 9 | spec: 10 | ports: 11 | - port: 80 12 | targetPort: 8080 13 | protocol: TCP 14 | name: http 15 | selector: 16 | app: cheese 17 | -------------------------------------------------------------------------------- /pkg/cmd/annotate/testdata/svc/source.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: cheese 5 | annotations: 6 | chart: cheese 7 | spec: 8 | ports: 9 | - port: 80 10 | targetPort: 8080 11 | protocol: TCP 12 | name: http 13 | selector: 14 | app: cheese 15 | -------------------------------------------------------------------------------- /pkg/cmd/apply/testdata/repo.tgz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkins-x-plugins/jx-gitops/537756a131e4aee8b462a82143e4d45808d5cb00/pkg/cmd/apply/testdata/repo.tgz -------------------------------------------------------------------------------- /pkg/cmd/git/clone/testdata/expected.txt: -------------------------------------------------------------------------------- 1 | https://myuser:mypwd@github.com -------------------------------------------------------------------------------- /pkg/cmd/git/get/testdata/myorg/myrepo/expected.txt: -------------------------------------------------------------------------------- 1 | hello world -------------------------------------------------------------------------------- /pkg/cmd/git/setup/testdata/expected.txt: -------------------------------------------------------------------------------- 1 | https://myuser:mypwd@github.com -------------------------------------------------------------------------------- /pkg/cmd/git/setup/testdata/expected2.txt: -------------------------------------------------------------------------------- 1 | https://myuser:my%2Fpwd@github.com -------------------------------------------------------------------------------- /pkg/cmd/helm/bitnami/external-dns/template-values.yaml: -------------------------------------------------------------------------------- 1 | jxRequirements: 2 | ingress: 3 | domain: cluster.local 4 | namespaceSubDomain: "." 5 | tls: 6 | enabled: true 7 | -------------------------------------------------------------------------------- /pkg/cmd/helm/build/testdata/VERSION: -------------------------------------------------------------------------------- 1 | 1.2.3 2 | -------------------------------------------------------------------------------- /pkg/cmd/helm/build/testdata/has_charts/README.md: -------------------------------------------------------------------------------- 1 | hello -------------------------------------------------------------------------------- /pkg/cmd/helm/build/testdata/has_charts/charts/myapp/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /pkg/cmd/helm/build/testdata/has_charts/charts/myapp/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v2 2 | description: A Helm chart for Kubernetes 3 | icon: https://raw.githubusercontent.com/jenkins-x/jenkins-x-platform/d273e09/images/nodejs.png 4 | name: myapp 5 | version: 0.1.0-SNAPSHOT 6 | dependencies: 7 | - name: myapp-common 8 | version: 0.1.0-SNAPSHOT 9 | repository: file://myapp-common 10 | - name: myapp-uncommon 11 | version: 0.1.0-SNAPSHOT 12 | repository: oci://myapp-uncommon 13 | -------------------------------------------------------------------------------- /pkg/cmd/helm/build/testdata/has_charts/charts/myapp/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | 2 | Get the application URL by running these commands: 3 | 4 | kubectl get ingress {{ template "fullname" . }} 5 | -------------------------------------------------------------------------------- /pkg/cmd/helm/build/testdata/no_charts/README.md: -------------------------------------------------------------------------------- 1 | hello -------------------------------------------------------------------------------- /pkg/cmd/helm/mirror/mirror_test.go: -------------------------------------------------------------------------------- 1 | package mirror_test 2 | 3 | import ( 4 | "path/filepath" 5 | "testing" 6 | 7 | "github.com/jenkins-x-plugins/jx-gitops/pkg/cmd/helm/mirror" 8 | "github.com/stretchr/testify/require" 9 | ) 10 | 11 | func TestHelmMirror(t *testing.T) { 12 | t.SkipNow() 13 | 14 | _, o := mirror.NewCmdMirror() 15 | o.Dir = filepath.Join("testdata", "versionStream") 16 | 17 | o.GitURL = "https://github.com/jenkins-x-test-projects/test-vertx-app" 18 | o.GitUsername = "jenkins-x-bot" 19 | o.GitToken = "dummy-token" 20 | o.NoPush = true 21 | err := o.Run() 22 | require.NoError(t, err, "failed to run") 23 | } 24 | -------------------------------------------------------------------------------- /pkg/cmd/helm/mirror/testdata/versionStream/charts/repositories.yml: -------------------------------------------------------------------------------- 1 | repositories: 2 | - prefix: cdf 3 | urls: 4 | - https://cdfoundation.github.io/tekton-helm-chart -------------------------------------------------------------------------------- /pkg/cmd/helm/release/testdata/VERSION: -------------------------------------------------------------------------------- 1 | 1.2.3 2 | -------------------------------------------------------------------------------- /pkg/cmd/helm/release/testdata/charts/myapp/.helmignore: -------------------------------------------------------------------------------- 1 | # Patterns to ignore when building packages. 2 | # This supports shell glob matching, relative path matching, and 3 | # negation (prefixed with !). Only one pattern per line. 4 | .DS_Store 5 | # Common VCS dirs 6 | .git/ 7 | .gitignore 8 | .bzr/ 9 | .bzrignore 10 | .hg/ 11 | .hgignore 12 | .svn/ 13 | # Common backup files 14 | *.swp 15 | *.bak 16 | *.tmp 17 | *~ 18 | # Various IDEs 19 | .project 20 | .idea/ 21 | *.tmproj 22 | -------------------------------------------------------------------------------- /pkg/cmd/helm/release/testdata/charts/myapp/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v2 2 | description: A Helm chart for Kubernetes 3 | name: myapp 4 | version: 0.1.0-SNAPSHOT 5 | dependencies: 6 | - name: myapp-common 7 | version: 0.1.0-SNAPSHOT 8 | repository: file://myapp-common 9 | - name: myapp-uncommon 10 | version: 0.1.0-SNAPSHOT 11 | repository: oci://myapp-uncommon 12 | -------------------------------------------------------------------------------- /pkg/cmd/helm/release/testdata/charts/myapp/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | 2 | Get the application URL by running these commands: 3 | 4 | kubectl get ingress {{ template "fullname" . }} 5 | -------------------------------------------------------------------------------- /pkg/cmd/helm/release/testdata/charts/myapp/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | */}} 13 | {{- define "fullname" -}} 14 | {{- $name := default .Chart.Name .Values.nameOverride -}} 15 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 16 | {{- end -}} 17 | -------------------------------------------------------------------------------- /pkg/cmd/helm/release/testdata/charts/preview/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | description: A Helm chart for Kubernetes 3 | name: preview 4 | icon: https://raw.githubusercontent.com/jenkins-x/jenkins-x-platform/master/images/java.png 5 | version: 0.1.0-SNAPSHOT -------------------------------------------------------------------------------- /pkg/cmd/helm/release/testdata/helmregistry/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "credsStore": "ecr-login" 3 | } 4 | -------------------------------------------------------------------------------- /pkg/cmd/helm/release/testdata/pages/README.md: -------------------------------------------------------------------------------- 1 | ## Chart Repository 2 | 3 | [Helm](https://helm.sh) must be installed to use the charts. 4 | Please refer to Helm's [documentation](https://helm.sh/docs/) to get started. 5 | 6 | ### Searching for charts 7 | 8 | Once Helm is set up properly, add the repo as follows: 9 | 10 | helm repo add myrepo http://bucketrepo.jx.svc.cluster.local/bucketrepo/pages 11 | 12 | you can search the charts via: 13 | 14 | helm search repo myfilter 15 | 16 | ## View the YAML 17 | 18 | You can have a look at the underlying charts YAML at: [index.yaml](index.yaml) 19 | -------------------------------------------------------------------------------- /pkg/cmd/helm/testdata/mychart/Chart.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | description: A Helm chart for Kubernetes 3 | icon: https://raw.githubusercontent.com/jenkins-x/jenkins-x-platform/d273e09/images/nodejs.png 4 | name: mychart 5 | version: 0.1.0-SNAPSHOT 6 | -------------------------------------------------------------------------------- /pkg/cmd/helm/testdata/mychart/templates/NOTES.txt: -------------------------------------------------------------------------------- 1 | 2 | Get the application URL by running these commands: 3 | 4 | kubectl get ingress {{ template "fullname" . }} 5 | -------------------------------------------------------------------------------- /pkg/cmd/helm/testdata/mychart/templates/_helpers.tpl: -------------------------------------------------------------------------------- 1 | {{/* vim: set filetype=mustache: */}} 2 | {{/* 3 | Expand the name of the chart. 4 | */}} 5 | {{- define "name" -}} 6 | {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}} 7 | {{- end -}} 8 | 9 | {{/* 10 | Create a default fully qualified app name. 11 | We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). 12 | */}} 13 | {{- define "fullname" -}} 14 | {{- $name := default .Chart.Name .Values.nameOverride -}} 15 | {{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}} 16 | {{- end -}} 17 | -------------------------------------------------------------------------------- /pkg/cmd/helm/testdata/versionstream/charts/banzaicloud-stable/vault-operator.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://banzaicloud.com/docs/bank-vaults/operator/ 2 | version: 1.3.0 3 | -------------------------------------------------------------------------------- /pkg/cmd/helm/testdata/versionstream/charts/bitnami/external-dns.yml: -------------------------------------------------------------------------------- 1 | version: 3.1.2 2 | -------------------------------------------------------------------------------- /pkg/cmd/helm/testdata/versionstream/charts/external-secrets/kubernetes-external-secrets.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/godaddy/kubernetes-external-secrets 2 | version: 4.0.0 3 | -------------------------------------------------------------------------------- /pkg/cmd/helm/testdata/versionstream/charts/jenkins-x/lighthouse.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/lighthouse 2 | version: 0.0.628 3 | -------------------------------------------------------------------------------- /pkg/cmd/helm/testdata/versionstream/charts/stable/cert-manager.yml: -------------------------------------------------------------------------------- 1 | version: v0.6.7 2 | gitUrl: https://github.com/helm/charts/tree/master/stable/cert-manager 3 | component: cert-manager 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/add/testdata/expected/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/cheese/helmfile.yaml 4 | - path: helmfiles/jx/helmfile.yaml 5 | - path: helmfiles/nginx/helmfile.yaml 6 | templates: {} 7 | renderedvalues: {} 8 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/add/testdata/expected/helmfiles/cheese/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | namespace: cheese 3 | repositories: 4 | - name: jenkins-x 5 | url: https://storage.googleapis.com/chartmuseum.jenkins-x.io 6 | releases: 7 | - chart: jenkins-x/new-cheese 8 | name: mythingy 9 | templates: {} 10 | renderedvalues: {} 11 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/add/testdata/expected/helmfiles/jx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | namespace: jx 3 | repositories: 4 | - name: jenkins-x 5 | url: https://storage.googleapis.com/chartmuseum.jenkins-x.io 6 | - name: jenkins 7 | url: https://raw.githubusercontent.com/jenkinsci/kubernetes-operator/master/chart 8 | releases: 9 | - chart: jenkins-x/jx-test-collector 10 | name: jx-test-collector 11 | - chart: jenkins/jenkins-operator 12 | name: jenkins-operator 13 | templates: {} 14 | renderedvalues: {} 15 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/add/testdata/expected/helmfiles/nginx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: nginx 7 | repositories: 8 | - name: stable 9 | url: https://charts.helm.sh/stable 10 | - name: ingress-nginx 11 | url: https://kubernetes.github.io/ingress-nginx 12 | releases: 13 | - chart: ingress-nginx/ingress-nginx 14 | version: "4.0" 15 | name: nginx-ingress 16 | values: 17 | - ../../versionStream/charts/ingress-nginx/ingress-nginx/values.yaml.gotmpl 18 | - jx-values.yaml 19 | templates: {} 20 | renderedvalues: {} 21 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/add/testdata/input/.jx/gitops/secret-mappings.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SecretMapping 3 | spec: 4 | secrets: 5 | - name: lighthouse-oauth-token1 6 | backendType: vault 7 | mappings: 8 | - name: oauth 9 | key: secret/data/jx/pipelineUser 10 | property: token 11 | - name: lighthouse-oauth-token2 12 | backendType: gsm 13 | mappings: 14 | - name: oauth 15 | key: secret/data/jx/pipelineUser 16 | property: token 17 | 18 | defaultBackendType: vault 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/add/testdata/input/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/nginx/helmfile.yaml 4 | templates: {} 5 | renderedvalues: {} 6 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/add/testdata/input/helmfiles/nginx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: nginx 7 | repositories: 8 | - name: stable 9 | url: https://charts.helm.sh/stable 10 | - name: ingress-nginx 11 | url: https://kubernetes.github.io/ingress-nginx 12 | releases: 13 | - chart: ingress-nginx/ingress-nginx 14 | version: 3.12.0 15 | name: nginx-ingress 16 | values: 17 | - ../../versionStream/charts/ingress-nginx/ingress-nginx/values.yaml.gotmpl 18 | - jx-values.yaml 19 | templates: {} 20 | renderedvalues: {} 21 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/add/testdata/input/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: 8 | clusterName: mycluster 9 | project: myproject 10 | provider: gke 11 | ingress: 12 | domain: "" 13 | externalDNS: false 14 | namespaceSubDomain: "" 15 | vault: {} 16 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/add/testdata/input/versionStream/charts/banzaicloud-stable/vault-operator/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://banzaicloud.com/docs/bank-vaults/operator/ 2 | version: 1.3.0 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/add/testdata/input/versionStream/charts/bitnami/external-dns/defaults.yaml: -------------------------------------------------------------------------------- 1 | version: 3.1.2 2 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/add/testdata/input/versionStream/charts/bitnami/external-dns/template-values.yaml: -------------------------------------------------------------------------------- 1 | cheese: wine -------------------------------------------------------------------------------- /pkg/cmd/helmfile/add/testdata/input/versionStream/charts/external-secrets/kubernetes-external-secrets/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/godaddy/kubernetes-external-secrets 2 | version: 4.0.0 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/add/testdata/input/versionStream/charts/jenkins-x/jxboot-helmfile-resources/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/jxboot-helmfile-resources 2 | version: 0.0.255 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/add/testdata/input/versionStream/charts/jenkins-x/lighthouse/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/lighthouse 2 | version: 0.0.628 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/add/testdata/input/versionStream/charts/jenkins-x/tekton/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/tekton 2 | version: 0.0.56 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/add/testdata/input/versionStream/charts/repositories/defaults.yaml: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/add/testdata/input/versionStream/charts/stable/cert-manager/defaults.yaml: -------------------------------------------------------------------------------- 1 | component: cert-manager 2 | gitUrl: https://github.com/helm/charts/tree/master/stable/cert-manager 3 | version: v0.6.7 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/all/expected/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/jx-production/helmfile.yaml 4 | - path: helmfiles/jx-staging/helmfile.yaml 5 | - path: helmfiles/nginx/helmfile.yaml 6 | templates: {} 7 | renderedvalues: {} 8 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/all/expected/helmfiles/jx-production/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: jx-production 7 | repositories: 8 | - name: dev 9 | url: http://chartmuseum-jx.35.242.181.72.nip.io/ 10 | releases: 11 | - chart: dev/another 12 | version: 0.0.1 13 | name: another 14 | values: 15 | - jx-values.yaml 16 | templates: {} 17 | renderedvalues: {} 18 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/all/expected/helmfiles/jx-staging/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: jx-staging 7 | repositories: 8 | - name: dev 9 | url: http://chartmuseum-jx.35.242.181.72.nip.io/ 10 | releases: 11 | - chart: dev/another 12 | version: 0.0.1 13 | name: another 14 | values: 15 | - jx-values.yaml 16 | templates: {} 17 | renderedvalues: {} 18 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/all/expected/helmfiles/nginx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: nginx 7 | repositories: 8 | - name: stable 9 | url: https://charts.helm.sh/stable 10 | - name: ingress-nginx 11 | url: https://kubernetes.github.io/ingress-nginx 12 | releases: 13 | - chart: ingress-nginx/ingress-nginx 14 | version: 3.12.0 15 | name: nginx-ingress 16 | values: 17 | - ../../versionStream/charts/ingress-nginx/ingress-nginx/values.yaml.gotmpl 18 | - jx-values.yaml 19 | templates: {} 20 | renderedvalues: {} 21 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/all/input/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/jx-production/helmfile.yaml 4 | - path: helmfiles/jx-staging/helmfile.yaml 5 | - path: helmfiles/nginx/helmfile.yaml 6 | templates: {} 7 | renderedvalues: {} 8 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/all/input/helmfiles/jx-production/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: jx-production 7 | repositories: 8 | - name: dev 9 | url: http://chartmuseum-jx.35.242.181.72.nip.io/ 10 | releases: 11 | - chart: dev/another 12 | version: 0.0.1 13 | name: another 14 | values: 15 | - jx-values.yaml 16 | - chart: dev/cheese 17 | version: 0.0.73 18 | name: cheese 19 | values: 20 | - jx-values.yaml 21 | templates: {} 22 | renderedvalues: {} 23 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/all/input/helmfiles/jx-staging/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: jx-staging 7 | repositories: 8 | - name: dev 9 | url: http://chartmuseum-jx.35.242.181.72.nip.io/ 10 | releases: 11 | - chart: dev/cheese 12 | version: 0.0.73 13 | name: cheese 14 | values: 15 | - jx-values.yaml 16 | - chart: dev/another 17 | version: 0.0.1 18 | name: another 19 | values: 20 | - jx-values.yaml 21 | templates: {} 22 | renderedvalues: {} 23 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/all/input/helmfiles/nginx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: nginx 7 | repositories: 8 | - name: stable 9 | url: https://charts.helm.sh/stable 10 | - name: ingress-nginx 11 | url: https://kubernetes.github.io/ingress-nginx 12 | releases: 13 | - chart: ingress-nginx/ingress-nginx 14 | version: 3.12.0 15 | name: nginx-ingress 16 | values: 17 | - ../../versionStream/charts/ingress-nginx/ingress-nginx/values.yaml.gotmpl 18 | - jx-values.yaml 19 | templates: {} 20 | renderedvalues: {} 21 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/fullname/expected/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/nginx/helmfile.yaml 4 | templates: {} 5 | renderedvalues: {} 6 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/fullname/expected/helmfiles/nginx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: nginx 7 | repositories: 8 | - name: stable 9 | url: https://charts.helm.sh/stable 10 | - name: ingress-nginx 11 | url: https://kubernetes.github.io/ingress-nginx 12 | templates: {} 13 | renderedvalues: {} 14 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/fullname/input/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/nginx/helmfile.yaml 4 | templates: {} 5 | renderedvalues: {} 6 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/fullname/input/helmfiles/nginx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: nginx 7 | repositories: 8 | - name: stable 9 | url: https://charts.helm.sh/stable 10 | - name: ingress-nginx 11 | url: https://kubernetes.github.io/ingress-nginx 12 | releases: 13 | - chart: ingress-nginx/ingress-nginx 14 | version: 3.12.0 15 | name: nginx-ingress 16 | values: 17 | - ../../versionStream/charts/ingress-nginx/ingress-nginx/values.yaml.gotmpl 18 | - jx-values.yaml 19 | templates: {} 20 | renderedvalues: {} 21 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/local/expected/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/nginx/helmfile.yaml 4 | templates: {} 5 | renderedvalues: {} 6 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/local/expected/helmfiles/nginx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: nginx 7 | repositories: 8 | - name: stable 9 | url: https://charts.helm.sh/stable 10 | - name: ingress-nginx 11 | url: https://kubernetes.github.io/ingress-nginx 12 | templates: {} 13 | renderedvalues: {} 14 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/local/input/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/nginx/helmfile.yaml 4 | templates: {} 5 | renderedvalues: {} 6 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/local/input/helmfiles/nginx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: nginx 7 | repositories: 8 | - name: stable 9 | url: https://charts.helm.sh/stable 10 | - name: ingress-nginx 11 | url: https://kubernetes.github.io/ingress-nginx 12 | releases: 13 | - chart: ingress-nginx/ingress-nginx 14 | version: 3.12.0 15 | name: nginx-ingress 16 | values: 17 | - ../../versionStream/charts/ingress-nginx/ingress-nginx/values.yaml.gotmpl 18 | - jx-values.yaml 19 | templates: {} 20 | renderedvalues: {} 21 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/nochange/expected/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/nginx/helmfile.yaml 4 | templates: {} 5 | renderedvalues: {} 6 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/nochange/expected/helmfiles/nginx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: nginx 7 | repositories: 8 | - name: stable 9 | url: https://charts.helm.sh/stable 10 | - name: ingress-nginx 11 | url: https://kubernetes.github.io/ingress-nginx 12 | releases: 13 | - chart: ingress-nginx/ingress-nginx 14 | version: 3.12.0 15 | name: nginx-ingress 16 | values: 17 | - ../../versionStream/charts/ingress-nginx/ingress-nginx/values.yaml.gotmpl 18 | - jx-values.yaml 19 | templates: {} 20 | renderedvalues: {} 21 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/nochange/input/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/nginx/helmfile.yaml 4 | templates: {} 5 | renderedvalues: {} 6 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/nochange/input/helmfiles/nginx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: nginx 7 | repositories: 8 | - name: stable 9 | url: https://charts.helm.sh/stable 10 | - name: ingress-nginx 11 | url: https://kubernetes.github.io/ingress-nginx 12 | releases: 13 | - chart: ingress-nginx/ingress-nginx 14 | version: 3.12.0 15 | name: nginx-ingress 16 | values: 17 | - ../../versionStream/charts/ingress-nginx/ingress-nginx/values.yaml.gotmpl 18 | - jx-values.yaml 19 | templates: {} 20 | renderedvalues: {} 21 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/prod/expected/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/jx-production/helmfile.yaml 4 | - path: helmfiles/jx-staging/helmfile.yaml 5 | - path: helmfiles/nginx/helmfile.yaml 6 | templates: {} 7 | renderedvalues: {} 8 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/prod/expected/helmfiles/jx-production/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: jx-production 7 | repositories: 8 | - name: dev 9 | url: http://chartmuseum-jx.35.242.181.72.nip.io/ 10 | releases: 11 | - chart: dev/another 12 | version: 0.0.1 13 | name: another 14 | values: 15 | - jx-values.yaml 16 | templates: {} 17 | renderedvalues: {} 18 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/prod/expected/helmfiles/jx-staging/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: jx-staging 7 | repositories: 8 | - name: dev 9 | url: http://chartmuseum-jx.35.242.181.72.nip.io/ 10 | releases: 11 | - chart: dev/cheese 12 | version: 0.0.73 13 | name: cheese 14 | values: 15 | - jx-values.yaml 16 | - chart: dev/another 17 | version: 0.0.1 18 | name: another 19 | values: 20 | - jx-values.yaml 21 | templates: {} 22 | renderedvalues: {} 23 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/prod/expected/helmfiles/nginx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: nginx 7 | repositories: 8 | - name: stable 9 | url: https://charts.helm.sh/stable 10 | - name: ingress-nginx 11 | url: https://kubernetes.github.io/ingress-nginx 12 | releases: 13 | - chart: ingress-nginx/ingress-nginx 14 | version: 3.12.0 15 | name: nginx-ingress 16 | values: 17 | - ../../versionStream/charts/ingress-nginx/ingress-nginx/values.yaml.gotmpl 18 | - jx-values.yaml 19 | templates: {} 20 | renderedvalues: {} 21 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/prod/input/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/jx-production/helmfile.yaml 4 | - path: helmfiles/jx-staging/helmfile.yaml 5 | - path: helmfiles/nginx/helmfile.yaml 6 | templates: {} 7 | renderedvalues: {} 8 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/prod/input/helmfiles/jx-production/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: jx-production 7 | repositories: 8 | - name: dev 9 | url: http://chartmuseum-jx.35.242.181.72.nip.io/ 10 | releases: 11 | - chart: dev/another 12 | version: 0.0.1 13 | name: another 14 | values: 15 | - jx-values.yaml 16 | - chart: dev/cheese 17 | version: 0.0.73 18 | name: cheese 19 | values: 20 | - jx-values.yaml 21 | templates: {} 22 | renderedvalues: {} 23 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/prod/input/helmfiles/jx-staging/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: jx-staging 7 | repositories: 8 | - name: dev 9 | url: http://chartmuseum-jx.35.242.181.72.nip.io/ 10 | releases: 11 | - chart: dev/cheese 12 | version: 0.0.73 13 | name: cheese 14 | values: 15 | - jx-values.yaml 16 | - chart: dev/another 17 | version: 0.0.1 18 | name: another 19 | values: 20 | - jx-values.yaml 21 | templates: {} 22 | renderedvalues: {} 23 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/deletecmd/testdata/prod/input/helmfiles/nginx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: nginx 7 | repositories: 8 | - name: stable 9 | url: https://charts.helm.sh/stable 10 | - name: ingress-nginx 11 | url: https://kubernetes.github.io/ingress-nginx 12 | releases: 13 | - chart: ingress-nginx/ingress-nginx 14 | version: 3.12.0 15 | name: nginx-ingress 16 | values: 17 | - ../../versionStream/charts/ingress-nginx/ingress-nginx/values.yaml.gotmpl 18 | - jx-values.yaml 19 | templates: {} 20 | renderedvalues: {} 21 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/move/testdata/dirIncludesReleaseName/jx/lighthouse-2/lighthouse/templates/lighthousejobs.lighthouse.jenkins.io-crd.yaml: -------------------------------------------------------------------------------- 1 | # Source: lighthouse/templates/lighthousejobs-crd.yaml 2 | apiVersion: apiextensions.k8s.io/v1beta2 3 | kind: CustomResourceDefinition 4 | metadata: 5 | name: lighthousejobs2.lighthouse.jenkins.io 6 | spec: 7 | group: lighthouse.jenkins.io 8 | names: 9 | kind: LighthouseJob 10 | singular: lighthousejob 11 | plural: lighthousejobs 12 | shortNames: 13 | - lhjob 14 | scope: Namespaced 15 | subresources: 16 | status: {} 17 | version: v1alpha1 18 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/move/testdata/dirIncludesReleaseName/jx/lighthouse/lighthouse/templates/lighthousejobs.lighthouse.jenkins.io-crd.yaml: -------------------------------------------------------------------------------- 1 | # Source: lighthouse/templates/lighthousejobs-crd.yaml 2 | apiVersion: apiextensions.k8s.io/v1beta1 3 | kind: CustomResourceDefinition 4 | metadata: 5 | name: lighthousejobs.lighthouse.jenkins.io 6 | spec: 7 | group: lighthouse.jenkins.io 8 | names: 9 | kind: LighthouseJob 10 | singular: lighthousejob 11 | plural: lighthousejobs 12 | shortNames: 13 | - lhjob 14 | scope: Namespaced 15 | subresources: 16 | status: {} 17 | version: v1alpha1 18 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/move/testdata/dirIncludesReleaseName/jx/release/chart/templates/example.yaml: -------------------------------------------------------------------------------- 1 | # Source: jx/templates/foo-bar.yaml 2 | apiVersion: example.io/v1 3 | kind: Example 4 | metadata: 5 | labels: 6 | app: example 7 | chart: chart-1.39.1 8 | heritage: Helm 9 | release: release 10 | name: example 11 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/move/testdata/output/jx/lighthouse/templates/lighthousejobs.lighthouse.jenkins.io-crd.yaml: -------------------------------------------------------------------------------- 1 | # Source: lighthouse/templates/lighthousejobs-crd.yaml 2 | apiVersion: apiextensions.k8s.io/v1beta1 3 | kind: CustomResourceDefinition 4 | metadata: 5 | name: lighthousejobs.lighthouse.jenkins.io 6 | spec: 7 | group: lighthouse.jenkins.io 8 | names: 9 | kind: LighthouseJob 10 | singular: lighthousejob 11 | plural: lighthousejobs 12 | shortNames: 13 | - lhjob 14 | scope: Namespaced 15 | subresources: 16 | status: {} 17 | version: v1alpha1 18 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/bucketrepo-svc/.jx/gitops/secret-mappings.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SecretMapping 3 | spec: 4 | secrets: 5 | - name: lighthouse-oauth-token1 6 | backendType: vault 7 | mappings: 8 | - name: oauth 9 | key: secret/data/jx/pipelineUser 10 | property: token 11 | - name: lighthouse-oauth-token2 12 | backendType: gsm 13 | mappings: 14 | - name: oauth 15 | key: secret/data/jx/pipelineUser 16 | property: token 17 | 18 | defaultBackendType: vault 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/bucketrepo-svc/expected-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/jx/helmfile.yaml 4 | - path: helmfiles/tekton-pipelines/helmfile.yaml 5 | templates: {} 6 | renderedvalues: {} 7 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/bucketrepo-svc/expected-tekton-pipelines-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: tekton-pipelines 7 | repositories: 8 | - name: cdf 9 | url: https://cdfoundation.github.io/tekton-helm-chart 10 | releases: 11 | - chart: cdf/tekton-pipeline 12 | version: 0.0.5 13 | name: tekton-pipeline 14 | values: 15 | - ../../versionStream/charts/cdf/tekton-pipeline/values.yaml.gotmpl 16 | - jx-values.yaml 17 | templates: {} 18 | renderedvalues: {} 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/bucketrepo-svc/helmfile.yaml: -------------------------------------------------------------------------------- 1 | releases: 2 | - chart: jenkins-x/tekton 3 | - chart: jenkins-x/bucketrepo 4 | - chart: jenkins-x/lighthouse 5 | - chart: dev/dummy 6 | version: 1.2.3 7 | repositories: 8 | - name: dev 9 | url: http://bucketrepo/bucketrepo/charts/ 10 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/bucketrepo-svc/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: 8 | clusterName: mycluster 9 | project: myproject 10 | provider: gke 11 | ingress: 12 | domain: "" 13 | externalDNS: false 14 | namespaceSubDomain: "" 15 | vault: {} 16 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/bucketrepo-svc/values/external-dns/values.yaml: -------------------------------------------------------------------------------- 1 | foo: bar -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/bucketrepo-svc/values/kubernetes-external-secrets/values.yaml.gotmpl: -------------------------------------------------------------------------------- 1 | serviceAccount: 2 | annotations: 3 | iam.gke.io/gcp-service-account: {{ .Values.jxRequirements.cluster.clusterName }}-es@{{ .Values.jxRequirements.cluster.project }}.iam.gserviceaccount.com -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/bucketrepo-svc/versionStream/charts/banzaicloud-stable/vault-operator/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://banzaicloud.com/docs/bank-vaults/operator/ 2 | namespace: secret-infra 3 | version: 1.3.0 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/bucketrepo-svc/versionStream/charts/bitnami/external-dns/defaults.yaml: -------------------------------------------------------------------------------- 1 | version: 3.1.2 2 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/bucketrepo-svc/versionStream/charts/bitnami/external-dns/template-values.yaml: -------------------------------------------------------------------------------- 1 | cheese: wine -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/bucketrepo-svc/versionStream/charts/cdf/tekton-pipeline/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/tekton 2 | version: 0.0.5 3 | namespace: tekton-pipelines 4 | 5 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/bucketrepo-svc/versionStream/charts/external-secrets/kubernetes-external-secrets/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/godaddy/kubernetes-external-secrets 2 | namespace: secret-infra 3 | version: 4.0.0 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/bucketrepo-svc/versionStream/charts/jenkins-x/jxboot-helmfile-resources/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/jxboot-helmfile-resources 2 | version: 0.0.255 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/bucketrepo-svc/versionStream/charts/jenkins-x/lighthouse/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/lighthouse 2 | version: 0.0.628 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/bucketrepo-svc/versionStream/charts/jenkins-x/tekton/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/tekton 2 | version: 0.0.56 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/bucketrepo-svc/versionStream/charts/repositories/defaults.yaml: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/bucketrepo-svc/versionStream/charts/stable/cert-manager/defaults.yaml: -------------------------------------------------------------------------------- 1 | component: cert-manager 2 | gitUrl: https://github.com/helm/charts/tree/master/stable/cert-manager 3 | version: v0.6.7 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/.jx/gitops/secret-mappings.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SecretMapping 3 | spec: 4 | secrets: 5 | - name: lighthouse-oauth-token1 6 | backendType: vault 7 | mappings: 8 | - name: oauth 9 | key: secret/data/jx/pipelineUser 10 | property: token 11 | - name: lighthouse-oauth-token2 12 | backendType: gsm 13 | mappings: 14 | - name: oauth 15 | key: secret/data/jx/pipelineUser 16 | property: token 17 | 18 | defaultBackendType: vault 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/expected-foo-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: foo 7 | repositories: 8 | - name: bitnami 9 | url: https://charts.bitnami.com/bitnami 10 | releases: 11 | - chart: bitnami/external-dns 12 | version: 3.1.2 13 | name: external-dns 14 | values: 15 | - ../../values/external-dns/values.yaml 16 | - jx-values.yaml 17 | templates: {} 18 | renderedvalues: {} 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/expected-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/custom1/helmfile.yaml 4 | - path: helmfiles/custom2/helmfile.yaml 5 | - path: helmfiles/foo/helmfile.yaml 6 | - path: helmfiles/jx/helmfile.yaml 7 | - path: helmfiles/jx-production/helmfile.yaml 8 | - path: helmfiles/jx-staging/helmfile.yaml 9 | - path: helmfiles/nginx/helmfile.yaml 10 | - path: helmfiles/secret-infra/helmfile.yaml 11 | - path: helmfiles/tekton-pipelines/helmfile.yaml 12 | templates: {} 13 | renderedvalues: {} 14 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/expected-jx-staging-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: jx-staging 7 | repositories: 8 | - name: doesnotexist 9 | url: https://storage.googleapis.com/chartmuseum.jenkins-x.io 10 | releases: 11 | - chart: doesnotexist/myapp 12 | name: myapp 13 | values: 14 | - jx-values.yaml 15 | templates: {} 16 | renderedvalues: {} 17 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/expected-nginx-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | namespace: nginx 3 | repositories: 4 | - name: ingress-nginx 5 | url: https://kubernetes.github.io/ingress-nginx 6 | releases: 7 | - chart: ingress-nginx/ingress-nginx 8 | name: nginx-ingress 9 | values: 10 | - ../../versionStream/charts/ingress-nginx/values.yaml.gotmpl 11 | templates: {} 12 | renderedvalues: {} 13 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/expected-secret-infra-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: secret-infra 7 | repositories: 8 | - name: external-secrets 9 | url: https://external-secrets.github.io/kubernetes-external-secrets 10 | releases: 11 | - chart: external-secrets/kubernetes-external-secrets 12 | version: 4.0.0 13 | name: kubernetes-external-secrets 14 | values: 15 | - ../../values/kubernetes-external-secrets/values.yaml.gotmpl 16 | - jx-values.yaml 17 | templates: {} 18 | renderedvalues: {} 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/expected-tekton-pipelines-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: tekton-pipelines 7 | repositories: 8 | - name: cdf 9 | url: https://cdfoundation.github.io/tekton-helm-chart 10 | releases: 11 | - chart: cdf/tekton-pipeline 12 | version: 0.0.5 13 | name: tekton-pipeline 14 | values: 15 | - ../../versionStream/charts/cdf/tekton-pipeline/values.yaml.gotmpl 16 | - jx-values.yaml 17 | templates: {} 18 | renderedvalues: {} 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/extensions/pipeline-catalog.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: project.jenkins-x.io/v1alpha1 2 | kind: PipelineCatalog 3 | spec: 4 | repositories: 5 | - label: JX3 Pipeline Catalog 6 | gitUrl: https://github.com/jstrachan/jx3-pipeline-catalog 7 | gitRef: myref 8 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/extensions/quickstarts.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: project.jenkins-x.io/v1alpha1 2 | kind: Quickstarts 3 | spec: 4 | # custom quickstarts 5 | quickstarts: [] 6 | 7 | # shared quickstarts 8 | imports: 9 | - file: versionStream/quickstarts.yml 10 | includes: 11 | - ".*" 12 | excludes: [] 13 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/imagePullSecrets.yaml: -------------------------------------------------------------------------------- 1 | jx: 2 | imagePullSecrets: [] 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/values/external-dns/values.yaml: -------------------------------------------------------------------------------- 1 | foo: bar -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/values/kubernetes-external-secrets/values.yaml.gotmpl: -------------------------------------------------------------------------------- 1 | serviceAccount: 2 | annotations: 3 | iam.gke.io/gcp-service-account: {{ .Values.jxRequirements.cluster.clusterName }}-es@{{ .Values.jxRequirements.cluster.project }}.iam.gserviceaccount.com -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/versionStream/charts/banzaicloud-stable/vault-operator/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://banzaicloud.com/docs/bank-vaults/operator/ 2 | namespace: secret-infra 3 | version: 1.3.0 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/versionStream/charts/bitnami/external-dns/defaults.yaml: -------------------------------------------------------------------------------- 1 | version: 3.1.2 2 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/versionStream/charts/bitnami/external-dns/template-values.yaml: -------------------------------------------------------------------------------- 1 | cheese: wine -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/versionStream/charts/cdf/tekton-pipeline/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/tekton 2 | version: 0.0.5 3 | namespace: tekton-pipelines 4 | 5 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/versionStream/charts/external-secrets/kubernetes-external-secrets/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/godaddy/kubernetes-external-secrets 2 | namespace: secret-infra 3 | version: 4.0.0 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/versionStream/charts/ingress-nginx/defaults.yaml: -------------------------------------------------------------------------------- 1 | component: ingress-nginx 2 | gitUrl: https://github.com/kubernetes/ingress-nginx/tree/master/charts/ingress-nginx 3 | namespace: nginx 4 | version: 3.12.0 5 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/versionStream/charts/jenkins-x/jxboot-helmfile-resources/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/jxboot-helmfile-resources 2 | version: 0.0.255 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/versionStream/charts/jenkins-x/lighthouse/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/lighthouse 2 | version: 0.0.628 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/versionStream/charts/jenkins-x/tekton/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/tekton 2 | version: 0.0.56 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/versionStream/charts/jx3/jxboot-helmfile-resources/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/jxboot-helmfile-resources 2 | version: 1.0.37 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/versionStream/charts/repositories/defaults.yaml: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/versionStream/charts/stable/cert-manager/defaults.yaml: -------------------------------------------------------------------------------- 1 | component: cert-manager 2 | gitUrl: https://github.com/helm/charts/tree/master/stable/cert-manager 3 | version: v0.6.7 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/versionStream/charts/stable/chartmuseum/defaults.yaml: -------------------------------------------------------------------------------- 1 | version: 2.4.1 2 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/versionStream/charts/stable/chartmuseum/values.yaml.gotmpl: -------------------------------------------------------------------------------- 1 | enabled: true 2 | 3 | fullnameOverride: jenkins-x-chartmuseum 4 | 5 | 6 | service: 7 | servicename: jenkins-x-chartmuseum 8 | 9 | persistence: 10 | enabled: true 11 | accessMode: ReadWriteOnce 12 | size: 8Gi 13 | 14 | env: 15 | open: 16 | AUTH_ANONYMOUS_GET: true 17 | DISABLE_API: false 18 | secret: 19 | BASIC_AUTH_USER: dummy 20 | BASIC_AUTH_PASS: dummy 21 | resources: 22 | limits: 23 | cpu: 200m 24 | memory: 256Mi 25 | requests: 26 | cpu: 160m 27 | memory: 128Mi -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/versionStream/git/github.com/jenkins-x/jx3-pipeline-catalog.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/jx3-pipeline-catalog.git 2 | version: beta 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/custom-env-ingress/versionStream/git/github.com/jstrachan/jx3-pipeline-catalog.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/jx3-pipeline-catalog.git 2 | version: beta 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_multi_subfolder/.jx/gitops/secret-mappings.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SecretMapping 3 | spec: 4 | secrets: 5 | - name: lighthouse-oauth-token1 6 | backendType: vault 7 | mappings: 8 | - name: oauth 9 | key: secret/data/jx/pipelineUser 10 | property: token 11 | - name: lighthouse-oauth-token2 12 | backendType: gsm 13 | mappings: 14 | - name: oauth 15 | key: secret/data/jx/pipelineUser 16 | property: token 17 | 18 | defaultBackendType: vault 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_multi_subfolder/expected-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/helmfile.yaml 4 | templates: {} 5 | renderedvalues: {} -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_multi_subfolder/extensions/pipeline-catalog.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: project.jenkins-x.io/v1alpha1 2 | kind: PipelineCatalog 3 | spec: 4 | repositories: 5 | - label: JX3 Pipeline Catalog 6 | gitUrl: https://github.com/jstrachan/jx3-pipeline-catalog 7 | gitRef: myref 8 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_multi_subfolder/extensions/quickstarts.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: project.jenkins-x.io/v1alpha1 2 | kind: Quickstarts 3 | spec: 4 | # custom quickstarts 5 | quickstarts: [] 6 | 7 | # shared quickstarts 8 | imports: 9 | - file: versionStream/quickstarts.yml 10 | includes: 11 | - ".*" 12 | excludes: [] 13 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_multi_subfolder/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/helmfile.yaml 4 | templates: {} 5 | renderedvalues: {} 6 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_multi_subfolder/helmfiles/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: kuberhealthy/helmfile.yaml 4 | - path: secret-infra/helmfile.yaml 5 | templates: {} 6 | renderedvalues: {} -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_multi_subfolder/imagePullSecrets.yaml: -------------------------------------------------------------------------------- 1 | jx: 2 | imagePullSecrets: [] 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_multi_subfolder/values/external-dns/values.yaml: -------------------------------------------------------------------------------- 1 | foo: bar -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_multi_subfolder/values/kubernetes-external-secrets/values.yaml.gotmpl: -------------------------------------------------------------------------------- 1 | serviceAccount: 2 | annotations: 3 | iam.gke.io/gcp-service-account: {{ .Values.jxRequirements.cluster.clusterName }}-es@{{ .Values.jxRequirements.cluster.project }}.iam.gserviceaccount.com -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_multi_subfolder/versionStream/charts/external-secrets/kubernetes-external-secrets/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/godaddy/kubernetes-external-secrets 2 | namespace: secret-infra 3 | version: 4.0.0 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_multi_subfolder/versionStream/charts/jxgh/jx-kh-check/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-plugins/jx-kh-check 2 | namespace: kuberhealthy 3 | version: 0.0.78 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_multi_subfolder/versionStream/charts/jxgh/jx-kh-check/values.yaml.gotmpl: -------------------------------------------------------------------------------- 1 | jxPodStatus: 2 | enabled: true 3 | cluster: 4 | enabled: true 5 | 6 | jxSecrets: 7 | enabled: true 8 | cluster: 9 | enabled: true 10 | 11 | jxWebhooks: 12 | enabled: false 13 | 14 | jxInstall: 15 | enabled: false 16 | 17 | jxBotToken: 18 | enabled: false -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_multi_subfolder/versionStream/charts/jxgh/kh-tls-check/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-plugins/kh-tls-check 2 | version: 0.0.10 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_multi_subfolder/versionStream/git/github.com/jenkins-x/jx3-pipeline-catalog.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/jx3-pipeline-catalog.git 2 | version: beta 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_multi_subfolder/versionStream/git/github.com/jstrachan/jx3-pipeline-catalog.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/jx3-pipeline-catalog.git 2 | version: beta 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_remote/expected-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | helmfiles: 7 | - path: jx/helmfile.yaml 8 | - path: secret-infra/helmfile.yaml 9 | templates: {} 10 | renderedvalues: {} -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_remote/expected-jx-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: jx 7 | repositories: 8 | - name: dev 9 | url: https://acme.com/something 10 | releases: 11 | - chart: dev/cheese 12 | version: 0.0.1 13 | name: cheese 14 | values: 15 | - jx-values.yaml 16 | templates: {} 17 | renderedvalues: {} 18 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_remote/helmfiles/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: jx/helmfile.yaml 4 | - path: secret-infra/helmfile.yaml 5 | templates: {} 6 | renderedvalues: {} -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_remote/helmfiles/jx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: jx 7 | repositories: 8 | - name: dev 9 | url: https://acme.com/something 10 | releases: 11 | - chart: dev/cheese 12 | version: 0.0.1 13 | name: cheese 14 | values: 15 | - jx-values.yaml 16 | templates: {} 17 | renderedvalues: {} 18 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_remote/imagePullSecrets.yaml: -------------------------------------------------------------------------------- 1 | jx: 2 | imagePullSecrets: [] 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_remote/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | cluster: 5 | clusterName: mycluster 6 | project: myproject 7 | provider: gke 8 | ingress: 9 | domain: "defaultdomain.com" 10 | externalDNS: false 11 | namespaceSubDomain: "" 12 | vault: {} 13 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_remote/versionStream/charts/external-secrets/kubernetes-external-secrets/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/godaddy/kubernetes-external-secrets 2 | namespace: secret-infra 3 | version: 4.0.0 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_remote/versionStream/charts/external-secrets/kubernetes-external-secrets/values.yaml.gotmpl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkins-x-plugins/jx-gitops/537756a131e4aee8b462a82143e4d45808d5cb00/pkg/cmd/helmfile/resolve/testdata/helmfile_remote/versionStream/charts/external-secrets/kubernetes-external-secrets/values.yaml.gotmpl -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_remote/versionStream/charts/jxgh/jx-build-controller/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-plugins/jx-build-controller 2 | version: 0.3.3 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_remote/versionStream/charts/jxgh/lighthouse/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/lighthouse 2 | version: 1.1.24 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_remote/versionStream/git/github.com/jenkins-x/jx3-pipeline-catalog.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/jx3-pipeline-catalog.git 2 | version: beta 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_remote/versionStream/git/github.com/jstrachan/jx3-pipeline-catalog.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/jx3-pipeline-catalog.git 2 | version: beta 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_subfolder/.jx/gitops/secret-mappings.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SecretMapping 3 | spec: 4 | secrets: 5 | - name: lighthouse-oauth-token1 6 | backendType: vault 7 | mappings: 8 | - name: oauth 9 | key: secret/data/jx/pipelineUser 10 | property: token 11 | - name: lighthouse-oauth-token2 12 | backendType: gsm 13 | mappings: 14 | - name: oauth 15 | key: secret/data/jx/pipelineUser 16 | property: token 17 | 18 | defaultBackendType: vault 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_subfolder/expected-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | helmfiles: 7 | - path: jx/helmfile.yaml 8 | - path: secret-infra/helmfile.yaml 9 | templates: {} 10 | renderedvalues: {} -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_subfolder/extensions/pipeline-catalog.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: project.jenkins-x.io/v1alpha1 2 | kind: PipelineCatalog 3 | spec: 4 | repositories: 5 | - label: JX3 Pipeline Catalog 6 | gitUrl: https://github.com/jstrachan/jx3-pipeline-catalog 7 | gitRef: myref 8 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_subfolder/extensions/quickstarts.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: project.jenkins-x.io/v1alpha1 2 | kind: Quickstarts 3 | spec: 4 | # custom quickstarts 5 | quickstarts: [] 6 | 7 | # shared quickstarts 8 | imports: 9 | - file: versionStream/quickstarts.yml 10 | includes: 11 | - ".*" 12 | excludes: [] 13 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_subfolder/helmfiles/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: jx/helmfile.yaml 4 | - path: secret-infra/helmfile.yaml 5 | templates: {} 6 | renderedvalues: {} -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_subfolder/imagePullSecrets.yaml: -------------------------------------------------------------------------------- 1 | jx: 2 | imagePullSecrets: [] 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_subfolder/values/external-dns/values.yaml: -------------------------------------------------------------------------------- 1 | foo: bar -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_subfolder/values/kubernetes-external-secrets/values.yaml.gotmpl: -------------------------------------------------------------------------------- 1 | serviceAccount: 2 | annotations: 3 | iam.gke.io/gcp-service-account: {{ .Values.jxRequirements.cluster.clusterName }}-es@{{ .Values.jxRequirements.cluster.project }}.iam.gserviceaccount.com -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_subfolder/versionStream/charts/external-secrets/kubernetes-external-secrets/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/godaddy/kubernetes-external-secrets 2 | namespace: secret-infra 3 | version: 4.0.0 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_subfolder/versionStream/charts/jxgh/jx-build-controller/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-plugins/jx-build-controller 2 | version: 0.3.3 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_subfolder/versionStream/charts/jxgh/lighthouse/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/lighthouse 2 | version: 1.1.24 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_subfolder/versionStream/git/github.com/jenkins-x/jx3-pipeline-catalog.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/jx3-pipeline-catalog.git 2 | version: beta 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/helmfile_subfolder/versionStream/git/github.com/jstrachan/jx3-pipeline-catalog.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/jx3-pipeline-catalog.git 2 | version: beta 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/.jx/gitops/secret-mappings.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SecretMapping 3 | spec: 4 | secrets: 5 | - name: lighthouse-oauth-token1 6 | backendType: vault 7 | mappings: 8 | - name: oauth 9 | key: secret/data/jx/pipelineUser 10 | property: token 11 | - name: lighthouse-oauth-token2 12 | backendType: gsm 13 | mappings: 14 | - name: oauth 15 | key: secret/data/jx/pipelineUser 16 | property: token 17 | 18 | defaultBackendType: vault 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/expected-foo-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: foo 7 | repositories: 8 | - name: bitnami 9 | url: https://charts.bitnami.com/bitnami 10 | releases: 11 | - chart: bitnami/external-dns 12 | version: 3.1.2 13 | name: external-dns 14 | values: 15 | - ../../values/external-dns/values.yaml 16 | - jx-values.yaml 17 | templates: {} 18 | renderedvalues: {} 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/expected-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/foo/helmfile.yaml 4 | - path: helmfiles/jx/helmfile.yaml 5 | - path: helmfiles/nginx/helmfile.yaml 6 | - path: helmfiles/secret-infra/helmfile.yaml 7 | - path: helmfiles/tekton-pipelines/helmfile.yaml 8 | templates: {} 9 | renderedvalues: {} 10 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/expected-nginx-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | namespace: nginx 3 | repositories: 4 | - name: ingress-nginx 5 | url: https://kubernetes.github.io/ingress-nginx 6 | releases: 7 | - chart: ingress-nginx/ingress-nginx 8 | name: nginx-ingress 9 | values: 10 | - ../../versionStream/charts/ingress-nginx/values.yaml.gotmpl 11 | templates: {} 12 | renderedvalues: {} 13 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/expected-secret-infra-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: secret-infra 7 | repositories: 8 | - name: external-secrets 9 | url: https://external-secrets.github.io/kubernetes-external-secrets 10 | releases: 11 | - chart: external-secrets/kubernetes-external-secrets 12 | version: 4.0.0 13 | name: kubernetes-external-secrets 14 | values: 15 | - ../../values/kubernetes-external-secrets/values.yaml.gotmpl 16 | - jx-values.yaml 17 | templates: {} 18 | renderedvalues: {} 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/expected-tekton-pipelines-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: tekton-pipelines 7 | repositories: 8 | - name: cdf 9 | url: https://cdfoundation.github.io/tekton-helm-chart 10 | releases: 11 | - chart: cdf/tekton-pipeline 12 | version: 0.0.5 13 | name: tekton-pipeline 14 | values: 15 | - ../../versionStream/charts/cdf/tekton-pipeline/values.yaml.gotmpl 16 | - jx-values.yaml 17 | templates: {} 18 | renderedvalues: {} 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/extensions/pipeline-catalog.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: project.jenkins-x.io/v1alpha1 2 | kind: PipelineCatalog 3 | spec: 4 | repositories: 5 | - label: JX3 Pipeline Catalog 6 | gitUrl: https://github.com/jstrachan/jx3-pipeline-catalog 7 | gitRef: myref 8 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/imagePullSecrets.yaml: -------------------------------------------------------------------------------- 1 | jx: 2 | imagePullSecrets: [] 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: 8 | clusterName: mycluster 9 | project: myproject 10 | provider: gke 11 | ingress: 12 | domain: "" 13 | externalDNS: false 14 | namespaceSubDomain: "" 15 | vault: {} 16 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/values/external-dns/values.yaml: -------------------------------------------------------------------------------- 1 | foo: bar -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/values/kubernetes-external-secrets/values.yaml.gotmpl: -------------------------------------------------------------------------------- 1 | serviceAccount: 2 | annotations: 3 | iam.gke.io/gcp-service-account: {{ .Values.jxRequirements.cluster.clusterName }}-es@{{ .Values.jxRequirements.cluster.project }}.iam.gserviceaccount.com -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/versionStream/charts/banzaicloud-stable/vault-operator/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://banzaicloud.com/docs/bank-vaults/operator/ 2 | namespace: secret-infra 3 | version: 1.3.0 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/versionStream/charts/bitnami/external-dns/defaults.yaml: -------------------------------------------------------------------------------- 1 | version: 3.1.2 2 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/versionStream/charts/bitnami/external-dns/template-values.yaml: -------------------------------------------------------------------------------- 1 | cheese: wine -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/versionStream/charts/cdf/tekton-pipeline/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/tekton 2 | version: 0.0.5 3 | namespace: tekton-pipelines 4 | 5 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/versionStream/charts/external-secrets/kubernetes-external-secrets/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/godaddy/kubernetes-external-secrets 2 | namespace: secret-infra 3 | version: 4.0.0 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/versionStream/charts/ingress-nginx/defaults.yaml: -------------------------------------------------------------------------------- 1 | component: ingress-nginx 2 | gitUrl: https://github.com/kubernetes/ingress-nginx/tree/master/charts/ingress-nginx 3 | namespace: nginx 4 | version: 3.12.0 5 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/versionStream/charts/jenkins-x/jxboot-helmfile-resources/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/jxboot-helmfile-resources 2 | version: 0.0.255 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/versionStream/charts/jenkins-x/lighthouse/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/lighthouse 2 | version: 0.0.628 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/versionStream/charts/jenkins-x/tekton/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/tekton 2 | version: 0.0.56 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/versionStream/charts/repositories/defaults.yaml: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/versionStream/charts/stable/cert-manager/defaults.yaml: -------------------------------------------------------------------------------- 1 | component: cert-manager 2 | gitUrl: https://github.com/helm/charts/tree/master/stable/cert-manager 3 | version: v0.6.7 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/versionStream/charts/stable/chartmuseum/defaults.yaml: -------------------------------------------------------------------------------- 1 | version: 2.4.1 2 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/versionStream/charts/stable/chartmuseum/values.yaml.gotmpl: -------------------------------------------------------------------------------- 1 | enabled: true 2 | 3 | fullnameOverride: jenkins-x-chartmuseum 4 | 5 | 6 | service: 7 | servicename: jenkins-x-chartmuseum 8 | 9 | persistence: 10 | enabled: true 11 | accessMode: ReadWriteOnce 12 | size: 8Gi 13 | 14 | env: 15 | open: 16 | AUTH_ANONYMOUS_GET: true 17 | DISABLE_API: false 18 | secret: 19 | BASIC_AUTH_USER: dummy 20 | BASIC_AUTH_PASS: dummy 21 | resources: 22 | limits: 23 | cpu: 200m 24 | memory: 256Mi 25 | requests: 26 | cpu: 160m 27 | memory: 128Mi -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/versionStream/git/github.com/jenkins-x/jx3-pipeline-catalog.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/jx3-pipeline-catalog.git 2 | version: beta 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/input/versionStream/git/github.com/jstrachan/jx3-pipeline-catalog.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/jx3-pipeline-catalog.git 2 | version: beta 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/.jx/gitops/secret-mappings.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SecretMapping 3 | spec: 4 | secrets: 5 | - name: lighthouse-oauth-token1 6 | backendType: vault 7 | mappings: 8 | - name: oauth 9 | key: secret/data/jx/pipelineUser 10 | property: token 11 | - name: lighthouse-oauth-token2 12 | backendType: gsm 13 | mappings: 14 | - name: oauth 15 | key: secret/data/jx/pipelineUser 16 | property: token 17 | 18 | defaultBackendType: vault 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/expected-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/jx/helmfile.yaml 4 | - path: helmfiles/secret-infra/helmfile.yaml 5 | - path: helmfiles/tekton-pipelines/helmfile.yaml 6 | templates: {} 7 | renderedvalues: {} 8 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/expected-secret-infra-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: secret-infra 7 | repositories: 8 | - name: jxgh 9 | url: https://jenkins-x-charts.github.io/repo 10 | releases: 11 | - chart: jxgh/vault-instance 12 | name: vault-instance 13 | values: 14 | - jx-values.yaml 15 | - chart: jxgh/pusher-wave 16 | name: pusher-wave 17 | values: 18 | - jx-values.yaml 19 | templates: {} 20 | renderedvalues: {} 21 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/expected-tekton-pipelines-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: tekton-pipelines 7 | repositories: 8 | - name: cdf 9 | url: https://cdfoundation.github.io/tekton-helm-chart 10 | releases: 11 | - chart: cdf/tekton-pipeline 12 | version: 0.0.5 13 | name: tekton-pipeline 14 | values: 15 | - ../../versionStream/charts/cdf/tekton-pipeline/values.yaml.gotmpl 16 | - jx-values.yaml 17 | templates: {} 18 | renderedvalues: {} 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: 8 | clusterName: mycluster 9 | project: myproject 10 | provider: gke 11 | ingress: 12 | domain: "" 13 | externalDNS: false 14 | namespaceSubDomain: "" 15 | secretStorage: local 16 | vault: {} 17 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/values/external-dns/values.yaml: -------------------------------------------------------------------------------- 1 | foo: bar -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/values/kubernetes-external-secrets/values.yaml.gotmpl: -------------------------------------------------------------------------------- 1 | serviceAccount: 2 | annotations: 3 | iam.gke.io/gcp-service-account: {{ .Values.jxRequirements.cluster.clusterName }}-es@{{ .Values.jxRequirements.cluster.project }}.iam.gserviceaccount.com -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/versionStream/charts/banzaicloud-stable/vault-operator/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://banzaicloud.com/docs/bank-vaults/operator/ 2 | namespace: secret-infra 3 | version: 1.3.0 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/versionStream/charts/bitnami/external-dns/defaults.yaml: -------------------------------------------------------------------------------- 1 | version: 3.1.2 2 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/versionStream/charts/bitnami/external-dns/template-values.yaml: -------------------------------------------------------------------------------- 1 | cheese: wine -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/versionStream/charts/cdf/tekton-pipeline/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/tekton 2 | version: 0.0.5 3 | namespace: tekton-pipelines 4 | 5 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/versionStream/charts/external-secrets/kubernetes-external-secrets/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/godaddy/kubernetes-external-secrets 2 | namespace: secret-infra 3 | version: 4.0.0 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/versionStream/charts/jenkins-x/jxboot-helmfile-resources/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/jxboot-helmfile-resources 2 | version: 0.0.255 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/versionStream/charts/jenkins-x/lighthouse/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/lighthouse 2 | version: 0.0.628 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/versionStream/charts/jenkins-x/tekton/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/tekton 2 | version: 0.0.56 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/versionStream/charts/jx3/jenkins-x-crds/defaults.yaml: -------------------------------------------------------------------------------- 1 | version: 1.0.7 2 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/versionStream/charts/jx3/jenkins-x-crds/values.yaml.gotmpl: -------------------------------------------------------------------------------- 1 | # disable by default as its often too big! 2 | enableSchedulerValidation: false 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/versionStream/charts/jx3/jxboot-helmfile-resources/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/jxboot-helmfile-resources 2 | version: 1.0.37 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/versionStream/charts/jx3/local-external-secrets/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/local-external-secrets 2 | version: 0.0.3 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/versionStream/charts/repositories/defaults.yaml: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/versionStream/charts/stable/cert-manager/defaults.yaml: -------------------------------------------------------------------------------- 1 | component: cert-manager 2 | gitUrl: https://github.com/helm/charts/tree/master/stable/cert-manager 3 | version: v0.6.7 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/versionStream/charts/stable/chartmuseum/defaults.yaml: -------------------------------------------------------------------------------- 1 | version: 2.4.1 2 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/local-secrets/versionStream/charts/stable/chartmuseum/values.yaml.gotmpl: -------------------------------------------------------------------------------- 1 | enabled: true 2 | 3 | fullnameOverride: jenkins-x-chartmuseum 4 | 5 | 6 | service: 7 | servicename: jenkins-x-chartmuseum 8 | 9 | persistence: 10 | enabled: true 11 | accessMode: ReadWriteOnce 12 | size: 8Gi 13 | 14 | env: 15 | open: 16 | AUTH_ANONYMOUS_GET: true 17 | DISABLE_API: false 18 | secret: 19 | BASIC_AUTH_USER: dummy 20 | BASIC_AUTH_PASS: dummy 21 | resources: 22 | limits: 23 | cpu: 200m 24 | memory: 256Mi 25 | requests: 26 | cpu: 160m 27 | memory: 128Mi -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/no-jx-values/expected-cert-manager-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: cert-manager 7 | repositories: 8 | - name: jetstack 9 | url: https://charts.jetstack.io 10 | releases: 11 | - chart: jetstack/cert-manager 12 | version: v1.16.0 13 | name: cert-manager 14 | labels: 15 | values.jenkins-x.io: no-jx-values 16 | values: 17 | - ../../versionStream/charts/jetstack/cert-manager/values.yaml.gotmpl 18 | templates: {} 19 | renderedvalues: {} -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/no-jx-values/expected-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/cert-manager/helmfile.yaml 4 | templates: {} 5 | renderedvalues: {} -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/no-jx-values/helmfile.yaml: -------------------------------------------------------------------------------- 1 | releases: 2 | - chart: jetstack/cert-manager 3 | name: cert-manager 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/no-jx-values/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: 8 | clusterName: mycluster 9 | project: myproject 10 | provider: gke 11 | ingress: 12 | domain: "" 13 | externalDNS: false 14 | namespaceSubDomain: "" 15 | vault: {} 16 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/no-jx-values/versionStream/charts/jetstack/cert-manager/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jetstack/cert-manager 2 | namespace: cert-manager 3 | version: v1.16.0 4 | labels: 5 | values.jenkins-x.io: no-jx-values 6 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/no-versionstream/.jx/gitops/secret-mappings.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SecretMapping 3 | spec: 4 | secrets: 5 | - name: lighthouse-oauth-token1 6 | backendType: vault 7 | mappings: 8 | - name: oauth 9 | key: secret/data/jx/pipelineUser 10 | property: token 11 | - name: lighthouse-oauth-token2 12 | backendType: gsm 13 | mappings: 14 | - name: oauth 15 | key: secret/data/jx/pipelineUser 16 | property: token 17 | 18 | defaultBackendType: vault 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/no-versionstream/expected-external-secrets-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: external-secrets 7 | repositories: 8 | - name: external-secrets 9 | url: https://external-secrets.github.io/kubernetes-external-secrets 10 | releases: 11 | - chart: external-secrets/kubernetes-external-secrets 12 | version: 4.0.0 13 | name: kubernetes-external-secrets 14 | values: 15 | - ../../values/kubernetes-external-secrets/values.yaml.gotmpl 16 | - jx-values.yaml 17 | templates: {} 18 | renderedvalues: {} 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/no-versionstream/expected-foo-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: foo 7 | repositories: 8 | - name: bitnami 9 | url: https://charts.bitnami.com/bitnami 10 | releases: 11 | - chart: bitnami/external-dns 12 | version: 3.1.2 13 | name: external-dns 14 | values: 15 | - ../../values/external-dns/values.yaml 16 | - jx-values.yaml 17 | templates: {} 18 | renderedvalues: {} 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/no-versionstream/expected-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/external-secrets/helmfile.yaml 4 | - path: helmfiles/foo/helmfile.yaml 5 | - path: helmfiles/jx/helmfile.yaml 6 | - path: helmfiles/tekton-pipelines/helmfile.yaml 7 | templates: {} 8 | renderedvalues: {} 9 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/no-versionstream/expected-tekton-pipelines-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: tekton-pipelines 7 | repositories: 8 | - name: cdf 9 | url: https://cdfoundation.github.io/tekton-helm-chart 10 | releases: 11 | - chart: cdf/tekton-pipeline 12 | version: 0.0.5 13 | name: tekton-pipeline 14 | values: 15 | - ../../versionStream/charts/cdf/tekton-pipeline/values.yaml.gotmpl 16 | - jx-values.yaml 17 | templates: {} 18 | renderedvalues: {} 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/no-versionstream/helmfile.yaml: -------------------------------------------------------------------------------- 1 | releases: 2 | - chart: jenkins-x/tekton 3 | - chart: jenkins-x/jxboot-helmfile-resources 4 | - chart: bitnami/external-dns 5 | namespace: foo 6 | - chart: external-secrets/kubernetes-external-secrets 7 | namespace: external-secrets 8 | # test using a local repo prefix and URL 9 | - chart: doesnotexist/bucketrepo 10 | repositories: 11 | - name: doesnotexist 12 | url: https://storage.googleapis.com/chartmuseum.jenkins-x.io -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/no-versionstream/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: 8 | clusterName: mycluster 9 | project: myproject 10 | provider: gke 11 | ingress: 12 | domain: "" 13 | externalDNS: false 14 | namespaceSubDomain: "" 15 | vault: {} 16 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/no-versionstream/values/external-dns/values.yaml: -------------------------------------------------------------------------------- 1 | foo: bar -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/no-versionstream/values/kubernetes-external-secrets/values.yaml.gotmpl: -------------------------------------------------------------------------------- 1 | serviceAccount: 2 | annotations: 3 | iam.gke.io/gcp-service-account: {{ .Values.jxRequirements.cluster.clusterName }}-es@{{ .Values.jxRequirements.cluster.project }}.iam.gserviceaccount.com -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/.jx/gitops/secret-mappings.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SecretMapping 3 | spec: 4 | secrets: 5 | - name: lighthouse-oauth-token1 6 | backendType: vault 7 | mappings: 8 | - name: oauth 9 | key: secret/data/jx/pipelineUser 10 | property: token 11 | - name: lighthouse-oauth-token2 12 | backendType: gsm 13 | mappings: 14 | - name: oauth 15 | key: secret/data/jx/pipelineUser 16 | property: token 17 | 18 | defaultBackendType: vault 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/expected-foo-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: foo 7 | repositories: 8 | - name: bitnami 9 | url: https://charts.bitnami.com/bitnami 10 | releases: 11 | - chart: git::https://github.com/myorg-ops/charts.git@openshift/templates/shared-resources/vault-operator?ref=master 12 | name: vault-operator 13 | - chart: bitnami/external-dns 14 | version: 3.1.2 15 | name: external-dns 16 | values: 17 | - ../../values/external-dns/values.yaml 18 | - jx-values.yaml 19 | templates: {} 20 | renderedvalues: {} 21 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/expected-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/foo/helmfile.yaml 4 | - path: helmfiles/jx/helmfile.yaml 5 | - path: helmfiles/nginx/helmfile.yaml 6 | - path: helmfiles/secret-infra/helmfile.yaml 7 | - path: helmfiles/tekton-pipelines/helmfile.yaml 8 | templates: {} 9 | renderedvalues: {} 10 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/expected-nginx-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | namespace: nginx 3 | repositories: 4 | - name: ingress-nginx 5 | url: https://kubernetes.github.io/ingress-nginx 6 | releases: 7 | - chart: ingress-nginx/ingress-nginx 8 | name: nginx-ingress 9 | values: 10 | templates: {} 11 | renderedvalues: {} 12 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/expected-secret-infra-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: secret-infra 7 | repositories: 8 | - name: external-secrets 9 | url: https://external-secrets.github.io/kubernetes-external-secrets 10 | releases: 11 | - chart: external-secrets/kubernetes-external-secrets 12 | version: 4.0.0 13 | name: kubernetes-external-secrets 14 | values: 15 | - ../../values/kubernetes-external-secrets/values.yaml.gotmpl 16 | - jx-values.yaml 17 | templates: {} 18 | renderedvalues: {} 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/expected-tekton-pipelines-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: tekton-pipelines 7 | repositories: 8 | - name: cdf 9 | url: https://cdfoundation.github.io/tekton-helm-chart 10 | releases: 11 | - chart: cdf/tekton-pipeline 12 | version: 0.0.5 13 | name: tekton-pipeline 14 | values: 15 | - ../../versionStream/charts/cdf/tekton-pipeline/values.yaml.gotmpl 16 | - jx-values.yaml 17 | templates: {} 18 | renderedvalues: {} 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/extensions/pipeline-catalog.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: project.jenkins-x.io/v1alpha1 2 | kind: PipelineCatalog 3 | spec: 4 | repositories: 5 | - label: JX3 Pipeline Catalog 6 | gitUrl: https://github.com/jstrachan/jx3-pipeline-catalog 7 | gitRef: myref 8 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/imagePullSecrets.yaml: -------------------------------------------------------------------------------- 1 | jx: 2 | imagePullSecrets: [] 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: 8 | clusterName: mycluster 9 | project: myproject 10 | provider: gke 11 | ingress: 12 | domain: "" 13 | externalDNS: false 14 | namespaceSubDomain: "" 15 | vault: {} 16 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/values/external-dns/values.yaml: -------------------------------------------------------------------------------- 1 | foo: bar -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/values/kubernetes-external-secrets/values.yaml.gotmpl: -------------------------------------------------------------------------------- 1 | serviceAccount: 2 | annotations: 3 | iam.gke.io/gcp-service-account: {{ .Values.jxRequirements.cluster.clusterName }}-es@{{ .Values.jxRequirements.cluster.project }}.iam.gserviceaccount.com -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/versionStream/charts/banzaicloud-stable/vault-operator/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://banzaicloud.com/docs/bank-vaults/operator/ 2 | namespace: secret-infra 3 | version: 1.3.0 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/versionStream/charts/bitnami/external-dns/defaults.yaml: -------------------------------------------------------------------------------- 1 | version: 3.1.2 2 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/versionStream/charts/bitnami/external-dns/template-values.yaml: -------------------------------------------------------------------------------- 1 | cheese: wine -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/versionStream/charts/cdf/tekton-pipeline/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/tekton 2 | version: 0.0.5 3 | namespace: tekton-pipelines 4 | 5 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/versionStream/charts/external-secrets/kubernetes-external-secrets/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/godaddy/kubernetes-external-secrets 2 | namespace: secret-infra 3 | version: 4.0.0 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/versionStream/charts/ingress-nginx/defaults.yaml: -------------------------------------------------------------------------------- 1 | component: ingress-nginx 2 | gitUrl: https://github.com/kubernetes/ingress-nginx/tree/master/charts/ingress-nginx 3 | namespace: nginx 4 | version: 3.12.0 5 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/versionStream/charts/jenkins-x/jxboot-helmfile-resources/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/jxboot-helmfile-resources 2 | version: 0.0.255 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/versionStream/charts/jenkins-x/lighthouse/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/lighthouse 2 | version: 0.0.628 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/versionStream/charts/jenkins-x/tekton/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/tekton 2 | version: 0.0.56 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/versionStream/charts/repositories/defaults.yaml: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/versionStream/charts/stable/cert-manager/defaults.yaml: -------------------------------------------------------------------------------- 1 | component: cert-manager 2 | gitUrl: https://github.com/helm/charts/tree/master/stable/cert-manager 3 | version: v0.6.7 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/versionStream/charts/stable/chartmuseum/defaults.yaml: -------------------------------------------------------------------------------- 1 | version: 2.4.1 2 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/versionStream/charts/stable/chartmuseum/values.yaml.gotmpl: -------------------------------------------------------------------------------- 1 | enabled: true 2 | 3 | fullnameOverride: jenkins-x-chartmuseum 4 | 5 | 6 | service: 7 | servicename: jenkins-x-chartmuseum 8 | 9 | persistence: 10 | enabled: true 11 | accessMode: ReadWriteOnce 12 | size: 8Gi 13 | 14 | env: 15 | open: 16 | AUTH_ANONYMOUS_GET: true 17 | DISABLE_API: false 18 | secret: 19 | BASIC_AUTH_USER: dummy 20 | BASIC_AUTH_PASS: dummy 21 | resources: 22 | limits: 23 | cpu: 200m 24 | memory: 256Mi 25 | requests: 26 | cpu: 160m 27 | memory: 128Mi -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/versionStream/git/github.com/jenkins-x/jx3-pipeline-catalog.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/jx3-pipeline-catalog.git 2 | version: beta 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-chart/versionStream/git/github.com/jstrachan/jx3-pipeline-catalog.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/jx3-pipeline-catalog.git 2 | version: beta 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-cluster/.jx/gitops/secret-mappings.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SecretMapping 3 | spec: 4 | secrets: 5 | - name: lighthouse-oauth-token1 6 | backendType: vault 7 | mappings: 8 | - name: oauth 9 | key: secret/data/jx/pipelineUser 10 | property: token 11 | - name: lighthouse-oauth-token2 12 | backendType: gsm 13 | mappings: 14 | - name: oauth 15 | key: secret/data/jx/pipelineUser 16 | property: token 17 | 18 | defaultBackendType: vault 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-cluster/expected-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/nginx/helmfile.yaml 4 | templates: {} 5 | renderedvalues: {} 6 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-cluster/expected-nginx-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: nginx 7 | repositories: 8 | - name: ingress-nginx 9 | url: https://kubernetes.github.io/ingress-nginx 10 | releases: 11 | - chart: ingress-nginx/ingress-nginx 12 | name: nginx-ingress 13 | values: 14 | - jx-values.yaml 15 | templates: {} 16 | renderedvalues: {} 17 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-cluster/extensions/pipeline-catalog.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: project.jenkins-x.io/v1alpha1 2 | kind: PipelineCatalog 3 | spec: 4 | repositories: 5 | - label: JX3 Pipeline Catalog 6 | gitUrl: https://github.com/jstrachan/jx3-pipeline-catalog 7 | gitRef: myref 8 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-cluster/extensions/quickstarts.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: project.jenkins-x.io/v1alpha1 2 | kind: Quickstarts 3 | spec: 4 | # custom quickstarts 5 | quickstarts: [] 6 | 7 | # shared quickstarts 8 | imports: 9 | - file: versionStream/quickstarts.yml 10 | includes: 11 | - ".*" 12 | excludes: [] 13 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-cluster/helmfile.yaml: -------------------------------------------------------------------------------- 1 | releases: 2 | - chart: stable/nginx-ingress 3 | version: 1.39.1 4 | name: nginx-ingress 5 | namespace: nginx 6 | values: 7 | - versionStream/charts/stable/nginx-ingress/values.yaml.gotmpl 8 | repositories: 9 | - name: doesnotexist 10 | url: https://storage.googleapis.com/chartmuseum.jenkins-x.io 11 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-cluster/imagePullSecrets.yaml: -------------------------------------------------------------------------------- 1 | jx: 2 | imagePullSecrets: [] 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-cluster/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: 8 | clusterName: mycluster 9 | project: myproject 10 | provider: gke 11 | ingress: 12 | domain: "defaultdomain.com" 13 | externalDNS: false 14 | namespaceSubDomain: "." 15 | vault: {} 16 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-cluster/versionStream/charts/ingress-nginx/defaults.yaml: -------------------------------------------------------------------------------- 1 | component: ingress-nginx 2 | gitUrl: https://github.com/kubernetes/ingress-nginx/tree/master/charts/ingress-nginx 3 | namespace: nginx 4 | version: 3.12.0 5 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-cluster/versionStream/charts/jenkins-x/jxboot-helmfile-resources/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/jxboot-helmfile-resources 2 | version: 0.0.255 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-cluster/versionStream/charts/jenkins-x/lighthouse/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/lighthouse 2 | version: 0.0.628 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-cluster/versionStream/charts/jenkins-x/tekton/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-charts/tekton 2 | version: 0.0.56 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-cluster/versionStream/git/github.com/jenkins-x/jx3-pipeline-catalog.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/jx3-pipeline-catalog.git 2 | version: beta 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/remote-cluster/versionStream/git/github.com/jstrachan/jx3-pipeline-catalog.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/jx3-pipeline-catalog.git 2 | version: beta 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/replace-chart-oci/expected-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/secret-infra/helmfile.yaml 4 | templates: {} 5 | renderedvalues: {} -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/replace-chart-oci/expected-secret-infra-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: secret-infra 7 | repositories: 8 | - name: bank-vaults 9 | url: ghcr.io/bank-vaults/helm-charts 10 | oci: true 11 | releases: 12 | - chart: bank-vaults/vault-operator 13 | version: 1.22.3 14 | name: vault-operator 15 | values: 16 | - jx-values.yaml 17 | templates: {} 18 | renderedvalues: {} -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/replace-chart-oci/helmfile.yaml: -------------------------------------------------------------------------------- 1 | releases: 2 | - chart: banzaicloud-stable/vault-operator 3 | name: vault-operator 4 | version: 1.2.3 5 | repositories: 6 | - name: banzaicloud-stable 7 | url: https://kubernetes-charts.banzaicloud.com 8 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/replace-chart-oci/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: 8 | clusterName: mycluster 9 | project: myproject 10 | provider: gke 11 | ingress: 12 | domain: "" 13 | externalDNS: false 14 | namespaceSubDomain: "" 15 | vault: {} 16 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/replace-chart-oci/versionStream/charts/bank-vaults/vault-operator/defaults.yaml: -------------------------------------------------------------------------------- 1 | namespace: secret-infra 2 | url: https://bank-vaults.dev/docs/operator/ 3 | gitUrl: https://github.com/bank-vaults/vault-operator.git 4 | version: 1.22.3 -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/replace-chart-oci/versionStream/charts/banzaicloud-stable/vault-operator/defaults.yaml: -------------------------------------------------------------------------------- 1 | replacementChartPrefix: bank-vaults -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/replace-chart-oci/versionStream/charts/repositories.yml: -------------------------------------------------------------------------------- 1 | repositories: 2 | - prefix: bank-vaults 3 | urls: 4 | - oci://ghcr.io/bank-vaults/helm-charts -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/replace-chart/expected-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/secret-infra/helmfile.yaml 4 | templates: {} 5 | renderedvalues: {} -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/replace-chart/expected-secret-infra-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - jx-values.yaml 6 | namespace: secret-infra 7 | repositories: 8 | - name: wave-k8s 9 | url: https://wave-k8s.github.io/wave/ 10 | releases: 11 | - chart: wave-k8s/wave 12 | version: 3.0.0 13 | name: wave 14 | values: 15 | - jx-values.yaml 16 | templates: {} 17 | renderedvalues: {} -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/replace-chart/helmfile.yaml: -------------------------------------------------------------------------------- 1 | releases: 2 | - chart: jxgh/pusher-wave 3 | name: pusher-wave 4 | version: 1.2.3 5 | repositories: 6 | - name: jxgh 7 | url: https://jenkins-x-charts.github.io/repo 8 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/replace-chart/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: 8 | clusterName: mycluster 9 | project: myproject 10 | provider: gke 11 | ingress: 12 | domain: "" 13 | externalDNS: false 14 | namespaceSubDomain: "" 15 | vault: {} 16 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/replace-chart/versionStream/charts/jxgh/pusher-wave/defaults.yaml: -------------------------------------------------------------------------------- 1 | replacementChart: wave 2 | replacementChartPrefix: wave-k8s 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/replace-chart/versionStream/charts/repositories.yml: -------------------------------------------------------------------------------- 1 | repositories: 2 | - prefix: wave-k8s 3 | urls: 4 | - https://wave-k8s.github.io/wave/ -------------------------------------------------------------------------------- /pkg/cmd/helmfile/resolve/testdata/replace-chart/versionStream/charts/wave-k8s/wave/defaults.yaml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/wave-k8s/wave 2 | namespace: secret-infra 3 | version: 3.0.0 4 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/status/testdata/.jx/gitops/source-config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SourceConfig 3 | metadata: 4 | creationTimestamp: null 5 | spec: 6 | groups: 7 | - owner: jstrachan 8 | provider: https://fake.com 9 | providerKind: fake 10 | repositories: 11 | - name: nodey560 12 | scheduler: in-repo 13 | slack: 14 | channel: testing-bot 15 | kind: failureOrNextSuccess 16 | pipeline: release 17 | slack: 18 | channel: '#jenkins-x-pipelines' 19 | kind: failureOrNextSuccess 20 | pipeline: release 21 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/structure/testdata/expected-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/jx/helmfile.yaml 4 | - path: helmfiles/tekton-pipelines/helmfile.yaml 5 | templates: {} 6 | renderedvalues: {} 7 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/structure/testdata/helmfiles/tekton-pipelines/expected-helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | environments: 3 | default: 4 | values: 5 | - ../../jx-values.yaml 6 | - ../../versionStream/src/fake-secrets.yaml.gotmpl 7 | namespace: tekton-pipelines 8 | repositories: 9 | - name: cdf 10 | url: https://cdfoundation.github.io/tekton-helm-chart 11 | releases: 12 | - chart: cdf/tekton-pipeline 13 | version: 0.18.0-1 14 | name: tekton-pipeline 15 | values: 16 | - ../../versionStream/charts/cdf/tekton-pipeline/values.yaml.gotmpl 17 | templates: {} 18 | renderedvalues: {} 19 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/validate/testdata/absolute_path/helmfile.yaml: -------------------------------------------------------------------------------- 1 | helmfiles: 2 | - path: /absolutepath/helmfile.yaml 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/validate/testdata/input/helmfile.yaml: -------------------------------------------------------------------------------- 1 | helmfiles: 2 | - path: ./helmfiles/jx/helmfile.yaml 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/validate/testdata/input/helmfiles/jx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | releases: 2 | - chart: stable/chartmuseum 3 | version: 2.4.1 4 | name: chartmuseum 5 | namespace: jx 6 | repositories: 7 | - name: stable 8 | url: someurl -------------------------------------------------------------------------------- /pkg/cmd/helmfile/validate/testdata/missing/helmfile.yaml: -------------------------------------------------------------------------------- 1 | helmfiles: 2 | - path: ./doesnotexist/helmfile.yaml 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/validate/testdata/missing_repo/helmfile.yaml: -------------------------------------------------------------------------------- 1 | helmfiles: 2 | - path: ./helmfiles/jx/helmfile.yaml 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/validate/testdata/missing_repo/helmfiles/jx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | releases: 2 | - chart: unknown/chartmuseum 3 | version: 2.4.1 4 | name: chartmuseum 5 | namespace: jx 6 | repositories: 7 | - name: stable 8 | url: someurl -------------------------------------------------------------------------------- /pkg/cmd/helmfile/validate/testdata/over_nested/helmfile.yaml: -------------------------------------------------------------------------------- 1 | helmfiles: 2 | - path: ./helmfiles/over/nested/helmfile.yaml 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/validate/testdata/over_nested/helmfiles/over/nested/helmfile.yaml: -------------------------------------------------------------------------------- 1 | releases: 2 | - chart: stable/chartmuseum 3 | version: 2.4.1 4 | name: chartmuseum 5 | namespace: jx 6 | repositories: 7 | - name: stable 8 | url: someurl -------------------------------------------------------------------------------- /pkg/cmd/helmfile/validate/testdata/under_nested/helmfile.yaml: -------------------------------------------------------------------------------- 1 | helmfiles: 2 | - path: ./helmfiles/helmfile.yaml 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/validate/testdata/under_nested/helmfiles/helmfile.yaml: -------------------------------------------------------------------------------- 1 | releases: 2 | - chart: stable/chartmuseum 3 | version: 2.4.1 4 | name: chartmuseum 5 | namespace: jx 6 | repositories: 7 | - name: stable 8 | url: someurl -------------------------------------------------------------------------------- /pkg/cmd/helmfile/validate/testdata/wrong_namespace/helmfile.yaml: -------------------------------------------------------------------------------- 1 | helmfiles: 2 | - path: ./helmfiles/jx/helmfile.yaml 3 | -------------------------------------------------------------------------------- /pkg/cmd/helmfile/validate/testdata/wrong_namespace/helmfiles/jx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | releases: 2 | - chart: stable/chartmuseum 3 | version: 2.4.1 4 | name: chartmuseum 5 | namespace: secret-infra 6 | repositories: 7 | - name: stable 8 | url: someurl -------------------------------------------------------------------------------- /pkg/cmd/image/testdata/expected/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: 8 | clusterName: mycluster 9 | project: myproject 10 | provider: gke 11 | ingress: 12 | domain: "" 13 | externalDNS: false 14 | namespaceSubDomain: "" 15 | vault: {} 16 | -------------------------------------------------------------------------------- /pkg/cmd/image/testdata/input/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: 8 | clusterName: mycluster 9 | project: myproject 10 | provider: gke 11 | ingress: 12 | domain: "" 13 | externalDNS: false 14 | namespaceSubDomain: "" 15 | vault: {} 16 | -------------------------------------------------------------------------------- /pkg/cmd/image/testdata/input/versionStream/charts/README.md: -------------------------------------------------------------------------------- 1 | dummy file -------------------------------------------------------------------------------- /pkg/cmd/image/testdata/input/versionStream/docker/gcr.io/jenkinsxio/jx-cli.yml: -------------------------------------------------------------------------------- 1 | version: 3.2.5 -------------------------------------------------------------------------------- /pkg/cmd/image/testdata/input/versionStream/docker/gcr.io/tekton-releases/github.com/tektoncd/pipeline/cmd/git-init.yml: -------------------------------------------------------------------------------- 1 | version: v0.14.3.4 -------------------------------------------------------------------------------- /pkg/cmd/image/testdata/input/versionStream/docker/ubuntu.yml: -------------------------------------------------------------------------------- 1 | version: 9.8.7 -------------------------------------------------------------------------------- /pkg/cmd/ingress/testdata/notls/expected/namespaces/myapps/modify-ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: networking.k8s.io/v1 2 | kind: Ingress 3 | metadata: 4 | annotations: 5 | kubernetes.io/ingress.class: nginx 6 | creationTimestamp: null 7 | name: modify-ingress 8 | namespace: myapps 9 | spec: 10 | rules: 11 | - host: godemo48.my.domain.com 12 | http: 13 | paths: 14 | - backend: 15 | service: 16 | name: godemo48 17 | port: 18 | number: 80 19 | pathType: null 20 | status: 21 | loadBalancer: {} -------------------------------------------------------------------------------- /pkg/cmd/ingress/testdata/notls/expected/namespaces/myapps/modify-old-ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Ingress 3 | metadata: 4 | annotations: 5 | kubernetes.io/ingress.class: nginx 6 | creationTimestamp: null 7 | name: modify-old-ingress 8 | namespace: myapps 9 | spec: 10 | rules: 11 | - host: godemo48.my.domain.com 12 | http: 13 | paths: 14 | - backend: {} 15 | pathType: null 16 | status: 17 | loadBalancer: {} -------------------------------------------------------------------------------- /pkg/cmd/ingress/testdata/notls/expected/namespaces/myapps/not-modify-ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Ingress 3 | metadata: 4 | annotations: 5 | kubernetes.io/ingress.class: nginx 6 | name: not-modify-ingress 7 | namespace: myapps 8 | spec: 9 | rules: 10 | - http: 11 | paths: 12 | - backend: 13 | serviceName: godemo48 14 | servicePort: 80 15 | host: godemo48.mydomain 16 | tls: 17 | - hosts: 18 | - godemo48.mydomain 19 | secretName: "" -------------------------------------------------------------------------------- /pkg/cmd/ingress/testdata/notls/expected/namespaces/myapps/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: myservice 5 | namespace: myapps 6 | labels: 7 | chart: "myservice-0.0.12" 8 | spec: 9 | type: ClusterIP 10 | ports: 11 | - port: 80 12 | targetPort: 8080 13 | protocol: TCP 14 | name: http 15 | selector: 16 | app: myservice-myservice -------------------------------------------------------------------------------- /pkg/cmd/ingress/testdata/notls/source/config-root/namespaces/myapps/modify-ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: networking.k8s.io/v1 2 | kind: Ingress 3 | metadata: 4 | annotations: 5 | kubernetes.io/ingress.class: nginx 6 | name: modify-ingress 7 | namespace: myapps 8 | spec: 9 | rules: 10 | - http: 11 | paths: 12 | - backend: 13 | service: 14 | name: godemo48 15 | port: 16 | number: 80 17 | pathType: null 18 | host: godemo48.cluster.local 19 | tls: 20 | - hosts: 21 | - godemo48.cluster.local 22 | secretName: "" 23 | -------------------------------------------------------------------------------- /pkg/cmd/ingress/testdata/notls/source/config-root/namespaces/myapps/modify-old-ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Ingress 3 | metadata: 4 | annotations: 5 | kubernetes.io/ingress.class: nginx 6 | name: modify-old-ingress 7 | namespace: myapps 8 | spec: 9 | rules: 10 | - http: 11 | paths: 12 | - backend: 13 | serviceName: godemo48 14 | servicePort: 80 15 | pathType: null 16 | host: godemo48.cluster.local 17 | tls: 18 | - hosts: 19 | - godemo48.cluster.local 20 | secretName: "" 21 | -------------------------------------------------------------------------------- /pkg/cmd/ingress/testdata/notls/source/config-root/namespaces/myapps/not-modify-ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Ingress 3 | metadata: 4 | annotations: 5 | kubernetes.io/ingress.class: nginx 6 | name: not-modify-ingress 7 | namespace: myapps 8 | spec: 9 | rules: 10 | - http: 11 | paths: 12 | - backend: 13 | serviceName: godemo48 14 | servicePort: 80 15 | host: godemo48.mydomain 16 | tls: 17 | - hosts: 18 | - godemo48.mydomain 19 | secretName: "" 20 | -------------------------------------------------------------------------------- /pkg/cmd/ingress/testdata/notls/source/config-root/namespaces/myapps/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: myservice 5 | namespace: myapps 6 | labels: 7 | chart: "myservice-0.0.12" 8 | spec: 9 | type: ClusterIP 10 | ports: 11 | - port: 80 12 | targetPort: 8080 13 | protocol: TCP 14 | name: http 15 | selector: 16 | app: myservice-myservice 17 | -------------------------------------------------------------------------------- /pkg/cmd/ingress/testdata/notls/source/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: {} 8 | ingress: 9 | domain: my.domain.com 10 | externalDNS: false 11 | namespaceSubDomain: -jx. 12 | tls: 13 | email: "" 14 | enabled: false 15 | production: false 16 | vault: {} 17 | -------------------------------------------------------------------------------- /pkg/cmd/ingress/testdata/tls/expected/namespaces/myapps/modify-ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: networking.k8s.io/v1 2 | kind: Ingress 3 | metadata: 4 | annotations: 5 | kubernetes.io/ingress.class: nginx 6 | creationTimestamp: null 7 | name: modify-ingress 8 | namespace: myapps 9 | spec: 10 | rules: 11 | - host: godemo48.my.domain.com 12 | http: 13 | paths: 14 | - backend: 15 | service: 16 | name: godemo48 17 | port: 18 | number: 80 19 | pathType: null 20 | tls: 21 | - hosts: 22 | - godemo48.my.domain.com 23 | status: 24 | loadBalancer: {} -------------------------------------------------------------------------------- /pkg/cmd/ingress/testdata/tls/expected/namespaces/myapps/modify-old-ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Ingress 3 | metadata: 4 | annotations: 5 | kubernetes.io/ingress.class: nginx 6 | creationTimestamp: null 7 | name: modify-old-ingress 8 | namespace: myapps 9 | spec: 10 | rules: 11 | - host: godemo48.my.domain.com 12 | http: 13 | paths: 14 | - backend: {} 15 | pathType: null 16 | tls: 17 | - hosts: 18 | - godemo48.my.domain.com 19 | status: 20 | loadBalancer: {} -------------------------------------------------------------------------------- /pkg/cmd/ingress/testdata/tls/expected/namespaces/myapps/not-modify-ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Ingress 3 | metadata: 4 | annotations: 5 | kubernetes.io/ingress.class: nginx 6 | name: not-modify-ingress 7 | namespace: myapps 8 | spec: 9 | rules: 10 | - http: 11 | paths: 12 | - backend: 13 | serviceName: godemo48 14 | servicePort: 80 15 | host: godemo48.mydomain 16 | tls: 17 | - hosts: 18 | - godemo48.mydomain 19 | secretName: "" -------------------------------------------------------------------------------- /pkg/cmd/ingress/testdata/tls/expected/namespaces/myapps/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: myservice 5 | namespace: myapps 6 | labels: 7 | chart: "myservice-0.0.12" 8 | spec: 9 | type: ClusterIP 10 | ports: 11 | - port: 80 12 | targetPort: 8080 13 | protocol: TCP 14 | name: http 15 | selector: 16 | app: myservice-myservice -------------------------------------------------------------------------------- /pkg/cmd/ingress/testdata/tls/source/config-root/namespaces/myapps/modify-ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: networking.k8s.io/v1 2 | kind: Ingress 3 | metadata: 4 | annotations: 5 | kubernetes.io/ingress.class: nginx 6 | name: modify-ingress 7 | namespace: myapps 8 | spec: 9 | rules: 10 | - http: 11 | paths: 12 | - backend: 13 | service: 14 | name: godemo48 15 | port: 16 | number: 80 17 | host: godemo48.cluster.local 18 | tls: 19 | - hosts: 20 | - godemo48.cluster.local 21 | secretName: "" 22 | -------------------------------------------------------------------------------- /pkg/cmd/ingress/testdata/tls/source/config-root/namespaces/myapps/modify-old-ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Ingress 3 | metadata: 4 | annotations: 5 | kubernetes.io/ingress.class: nginx 6 | name: modify-old-ingress 7 | namespace: myapps 8 | spec: 9 | rules: 10 | - http: 11 | paths: 12 | - backend: 13 | serviceName: godemo48 14 | servicePort: 80 15 | host: godemo48.cluster.local 16 | tls: 17 | - hosts: 18 | - godemo48.cluster.local 19 | secretName: "" 20 | -------------------------------------------------------------------------------- /pkg/cmd/ingress/testdata/tls/source/config-root/namespaces/myapps/not-modify-ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Ingress 3 | metadata: 4 | annotations: 5 | kubernetes.io/ingress.class: nginx 6 | name: not-modify-ingress 7 | namespace: myapps 8 | spec: 9 | rules: 10 | - http: 11 | paths: 12 | - backend: 13 | serviceName: godemo48 14 | servicePort: 80 15 | host: godemo48.mydomain 16 | tls: 17 | - hosts: 18 | - godemo48.mydomain 19 | secretName: "" 20 | -------------------------------------------------------------------------------- /pkg/cmd/ingress/testdata/tls/source/config-root/namespaces/myapps/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: myservice 5 | namespace: myapps 6 | labels: 7 | chart: "myservice-0.0.12" 8 | spec: 9 | type: ClusterIP 10 | ports: 11 | - port: 80 12 | targetPort: 8080 13 | protocol: TCP 14 | name: http 15 | selector: 16 | app: myservice-myservice 17 | -------------------------------------------------------------------------------- /pkg/cmd/ingress/testdata/tls/source/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: {} 8 | ingress: 9 | domain: my.domain.com 10 | externalDNS: false 11 | namespaceSubDomain: -jx. 12 | tls: 13 | email: "" 14 | enabled: true 15 | production: false 16 | vault: {} 17 | -------------------------------------------------------------------------------- /pkg/cmd/jenkins/add/testdata/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | templates: {} 3 | renderedvalues: {} 4 | -------------------------------------------------------------------------------- /pkg/cmd/jenkins/add/testdata/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | ingress: 5 | domain: something.nip.io 6 | 7 | -------------------------------------------------------------------------------- /pkg/cmd/jenkins/jobs/testdata/hasjobs/.jx/gitops/source-config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SourceConfig 3 | spec: 4 | jenkinsServers: 5 | - server: myjenkins 6 | groups: 7 | - owner: myorg 8 | provider: https://github.com 9 | providerKind: github 10 | providerName: github 11 | repositories: 12 | - name: myapp 13 | - name: another 14 | -------------------------------------------------------------------------------- /pkg/cmd/jenkins/jobs/testdata/hasjobs/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | templates: {} 3 | renderedvalues: {} 4 | -------------------------------------------------------------------------------- /pkg/cmd/jenkins/jobs/testdata/hasjobs/jenkins/templates/folder.gotmpl: -------------------------------------------------------------------------------- 1 | folder('{{ .ID }}') 2 | -------------------------------------------------------------------------------- /pkg/cmd/jenkins/jobs/testdata/hasjobs/jenkins/templates/job.gotmpl: -------------------------------------------------------------------------------- 1 | multibranchPipelineJob('{{ .FullName }}') { 2 | branchSources { 3 | git { 4 | id = '{{ .ID }}' 5 | remote('{{ .CloneURL }}') 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /pkg/cmd/jenkins/jobs/testdata/hasjobs/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | ingress: 5 | domain: something.nip.io 6 | 7 | -------------------------------------------------------------------------------- /pkg/cmd/jenkins/jobs/testdata/nojobs/.jx/gitops/source-config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SourceConfig 3 | spec: 4 | groups: 5 | - owner: myorg 6 | provider: https://github.com 7 | providerKind: github 8 | providerName: github 9 | repositories: 10 | - name: myapp 11 | - name: another 12 | -------------------------------------------------------------------------------- /pkg/cmd/kpt/recreate/testdata/config-root/namespaces/app2/app2/Kptfile: -------------------------------------------------------------------------------- 1 | apiVersion: kpt.dev/v1alpha1 2 | kind: Kptfile 3 | metadata: 4 | name: app2 5 | upstream: 6 | type: git 7 | git: 8 | commit: 4cc6b80d49808060b1f06f530399b986ed344f23 9 | repo: https://github.com/another/thing 10 | directory: /kubernetes/app2 11 | ref: master 12 | -------------------------------------------------------------------------------- /pkg/cmd/kpt/recreate/testdata/config-root/namespaces/app2/app2/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: app2 5 | namespace: myapps 6 | labels: 7 | chart: "app2-0.0.12" 8 | spec: 9 | type: ClusterIP 10 | ports: 11 | - port: 80 12 | targetPort: 8080 13 | protocol: TCP 14 | name: http 15 | selector: 16 | app: app2-app2 17 | -------------------------------------------------------------------------------- /pkg/cmd/kpt/recreate/testdata/config-root/namespaces/myapps/app1/Kptfile: -------------------------------------------------------------------------------- 1 | apiVersion: kpt.dev/v1alpha1 2 | kind: Kptfile 3 | metadata: 4 | name: app1 5 | upstream: 6 | type: git 7 | git: 8 | commit: 4cc6b80d49808060b1f06f530399b986ed344f23 9 | repo: https://github.com/jenkins-x/jxr-kube-resources 10 | directory: /jenkins-x/lighthouse 11 | ref: master 12 | -------------------------------------------------------------------------------- /pkg/cmd/kpt/recreate/testdata/config-root/namespaces/myapps/app1/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: app1 5 | namespace: myapps 6 | labels: 7 | chart: "app1-0.0.12" 8 | spec: 9 | type: ClusterIP 10 | ports: 11 | - port: 80 12 | targetPort: 8080 13 | protocol: TCP 14 | name: http 15 | selector: 16 | app: app1-app1 17 | -------------------------------------------------------------------------------- /pkg/cmd/kpt/update/rlimit_win.go: -------------------------------------------------------------------------------- 1 | //go:build windows 2 | 3 | package update 4 | 5 | // Sometimes kpt fails with Too many open files. This is an attempt to reduce the risk for that 6 | // Would this be needed in windows? 7 | func increaseRLimit() { 8 | } 9 | -------------------------------------------------------------------------------- /pkg/cmd/kpt/update/testdata/config-root/namespaces/app1/Kptfile: -------------------------------------------------------------------------------- 1 | apiVersion: kpt.dev/v1alpha1 2 | kind: Kptfile 3 | metadata: 4 | name: app1 5 | upstream: 6 | type: git 7 | git: 8 | commit: 4cc6b80d49808060b1f06f530399b986ed344f23 9 | repo: https://github.com/jenkins-x/jxr-kube-resources 10 | directory: /jenkins-x/lighthouse 11 | ref: master 12 | -------------------------------------------------------------------------------- /pkg/cmd/kpt/update/testdata/config-root/namespaces/app1/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: app1 5 | namespace: myapps 6 | labels: 7 | chart: "app1-0.0.12" 8 | spec: 9 | type: ClusterIP 10 | ports: 11 | - port: 80 12 | targetPort: 8080 13 | protocol: TCP 14 | name: http 15 | selector: 16 | app: app1-app1 17 | -------------------------------------------------------------------------------- /pkg/cmd/kpt/update/testdata/config-root/namespaces/app2/Kptfile: -------------------------------------------------------------------------------- 1 | apiVersion: kpt.dev/v1alpha1 2 | kind: Kptfile 3 | metadata: 4 | name: app2 5 | upstream: 6 | type: git 7 | git: 8 | commit: 4cc6b80d49808060b1f06f530399b986ed344f23 9 | repo: https://github.com/another/thing 10 | directory: /kubernetes/app2 11 | ref: master 12 | -------------------------------------------------------------------------------- /pkg/cmd/kpt/update/testdata/config-root/namespaces/app2/service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: app2 5 | namespace: myapps 6 | labels: 7 | chart: "app2-0.0.12" 8 | spec: 9 | type: ClusterIP 10 | ports: 11 | - port: 80 12 | targetPort: 8080 13 | protocol: TCP 14 | name: http 15 | selector: 16 | app: app2-app2 17 | -------------------------------------------------------------------------------- /pkg/cmd/kpt/update/testdata/validate_fail/.jx/gitops/kpt-strategy.yaml: -------------------------------------------------------------------------------- 1 | config: 2 | - relativePath: foo 3 | - strategy: wine 4 | -------------------------------------------------------------------------------- /pkg/cmd/kpt/update/testdata/validate_pass/.jx/gitops/kpt-strategy.yaml: -------------------------------------------------------------------------------- 1 | config: 2 | - relativePath: foo 3 | strategy: bar 4 | - relativePath: cheese 5 | strategy: wine -------------------------------------------------------------------------------- /pkg/cmd/kustomize/testdata/expected/myapp/deployment.yaml: -------------------------------------------------------------------------------- 1 | # Source: myapp/templates/deployment.yaml 2 | apiVersion: apps/v1 3 | kind: Deployment 4 | metadata: 5 | name: myapp-myapp 6 | namespace: myapps 7 | annotations: 8 | wave.pusher.com/update-on-config-change: "true" 9 | labels: 10 | newlabel: cheese 11 | spec: 12 | replicas: 3 13 | -------------------------------------------------------------------------------- /pkg/cmd/kustomize/testdata/expected/myapp/ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Ingress 3 | metadata: 4 | name: myapp 5 | namespace: myapps 6 | spec: 7 | rules: 8 | - host: myapp.1.2.3.4.nipio 9 | -------------------------------------------------------------------------------- /pkg/cmd/kustomize/testdata/source/godemo48/service.yaml: -------------------------------------------------------------------------------- 1 | # Source: godemo48/templates/service.yaml 2 | apiVersion: v1 3 | kind: Service 4 | metadata: 5 | name: godemo48 6 | labels: 7 | chart: "godemo48-0.0.12" 8 | annotations: 9 | fabric8.io/expose: "true" 10 | fabric8.io/ingress.annotations: 'kubernetes.io/ingress.class: nginx' 11 | namespace: myapps 12 | spec: 13 | type: ClusterIP 14 | ports: 15 | - port: 80 16 | targetPort: 8080 17 | protocol: TCP 18 | name: http 19 | selector: 20 | app: godemo48-godemo48 21 | -------------------------------------------------------------------------------- /pkg/cmd/kustomize/testdata/source/kustomization.yaml: -------------------------------------------------------------------------------- 1 | kind: Kustomization 2 | apiVersion: kustomize.config.k8s.io/v1beta1 3 | resources: 4 | - godemo48/deployment.yaml 5 | - godemo48/service.yaml 6 | - myapp/deployment.yaml 7 | - myapp/ingress.yaml 8 | - myapp/service.yaml 9 | -------------------------------------------------------------------------------- /pkg/cmd/kustomize/testdata/source/myapp/Kptfile: -------------------------------------------------------------------------------- 1 | apiVersion: kpt.dev/v1alpha1 2 | kind: Kptfile 3 | metadata: 4 | name: myapp 5 | upstream: 6 | type: git 7 | git: 8 | commit: 63bff7802c2de9cb81569612cc9d0bce565a59da 9 | repo: https://github.com/jstrachan/myapp 10 | directory: /charts/myapp/resources 11 | ref: v1.0.5 12 | -------------------------------------------------------------------------------- /pkg/cmd/kustomize/testdata/source/myapp/README.md: -------------------------------------------------------------------------------- 1 | ## Kubernetes Resources 2 | 3 | This directory is where released kubernetes resources will be generated in each version (a git tag). 4 | 5 | You can then consume the resources via tools like: 6 | 7 | * [kubectl](https://kubernetes.io/docs/reference/kubectl/kubectl/) 8 | * [kustomize](https://kustomize.io/) 9 | * [kpt](https://googlecontainertools.github.io/kpt/) 10 | -------------------------------------------------------------------------------- /pkg/cmd/kustomize/testdata/source/myapp/ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Ingress 3 | metadata: 4 | annotations: 5 | kubernetes.io/ingress.class: nginx 6 | name: myapp 7 | namespace: myapps 8 | spec: 9 | rules: 10 | - host: myapp.cluster.local 11 | http: 12 | paths: 13 | - backend: 14 | serviceName: myapp 15 | servicePort: 80 16 | -------------------------------------------------------------------------------- /pkg/cmd/kustomize/testdata/source/myapp/service.yaml: -------------------------------------------------------------------------------- 1 | # Source: myapp/templates/service.yaml 2 | apiVersion: v1 3 | kind: Service 4 | metadata: 5 | name: myapp 6 | namespace: myapps 7 | labels: 8 | chart: "myapp-1.0.5" 9 | annotations: 10 | fabric8.io/expose: "true" 11 | fabric8.io/ingress.annotations: 'kubernetes.io/ingress.class: nginx' 12 | spec: 13 | type: ClusterIP 14 | ports: 15 | - port: 80 16 | targetPort: 8080 17 | protocol: TCP 18 | name: http 19 | selector: 20 | app: myapp-myapp 21 | -------------------------------------------------------------------------------- /pkg/cmd/kustomize/testdata/target/godemo48/service.yaml: -------------------------------------------------------------------------------- 1 | # Source: godemo48/templates/service.yaml 2 | apiVersion: v1 3 | kind: Service 4 | metadata: 5 | name: godemo48 6 | namespace: myapps 7 | labels: 8 | chart: "godemo48-0.0.12" 9 | annotations: 10 | fabric8.io/expose: "true" 11 | fabric8.io/ingress.annotations: 'kubernetes.io/ingress.class: nginx' 12 | spec: 13 | type: ClusterIP 14 | ports: 15 | - port: 80 16 | targetPort: 8080 17 | protocol: TCP 18 | name: http 19 | selector: 20 | app: godemo48-godemo48 21 | -------------------------------------------------------------------------------- /pkg/cmd/kustomize/testdata/target/myapp/Kptfile: -------------------------------------------------------------------------------- 1 | apiVersion: kpt.dev/v1alpha1 2 | kind: Kptfile 3 | metadata: 4 | name: myapp 5 | upstream: 6 | type: git 7 | git: 8 | commit: 63bff7802c2de9cb81569612cc9d0bce565a59da 9 | repo: https://github.com/jstrachan/myapp 10 | directory: /charts/myapp/resources 11 | ref: v1.0.5 12 | -------------------------------------------------------------------------------- /pkg/cmd/kustomize/testdata/target/myapp/README.md: -------------------------------------------------------------------------------- 1 | ## Kubernetes Resources 2 | 3 | This directory is where released kubernetes resources will be generated in each version (a git tag). 4 | 5 | You can then consume the resources via tools like: 6 | 7 | * [kubectl](https://kubernetes.io/docs/reference/kubectl/kubectl/) 8 | * [kustomize](https://kustomize.io/) 9 | * [kpt](https://googlecontainertools.github.io/kpt/) 10 | -------------------------------------------------------------------------------- /pkg/cmd/kustomize/testdata/target/myapp/ingress.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: extensions/v1beta1 2 | kind: Ingress 3 | metadata: 4 | annotations: 5 | kubernetes.io/ingress.class: nginx 6 | name: myapp 7 | namespace: myapps 8 | spec: 9 | rules: 10 | - host: myapp.1.2.3.4.nipio 11 | http: 12 | paths: 13 | - backend: 14 | serviceName: myapp 15 | servicePort: 80 16 | -------------------------------------------------------------------------------- /pkg/cmd/kustomize/testdata/target/myapp/service.yaml: -------------------------------------------------------------------------------- 1 | # Source: myapp/templates/service.yaml 2 | apiVersion: v1 3 | kind: Service 4 | metadata: 5 | name: myapp 6 | namespace: myapps 7 | labels: 8 | chart: "myapp-1.0.5" 9 | annotations: 10 | fabric8.io/expose: "true" 11 | fabric8.io/ingress.annotations: 'kubernetes.io/ingress.class: nginx' 12 | spec: 13 | type: ClusterIP 14 | ports: 15 | - port: 80 16 | targetPort: 8080 17 | protocol: TCP 18 | name: http 19 | selector: 20 | app: myapp-myapp 21 | -------------------------------------------------------------------------------- /pkg/cmd/label/label.go: -------------------------------------------------------------------------------- 1 | package label 2 | 3 | import ( 4 | "github.com/jenkins-x-plugins/jx-gitops/pkg/tagging" 5 | "github.com/spf13/cobra" 6 | ) 7 | 8 | // NewCmdUpdateLabel creates a command object for the command annotate 9 | func NewCmdUpdateLabel() (*cobra.Command, *tagging.Options) { 10 | return tagging.NewCmdUpdateTag("label", "label") 11 | } 12 | -------------------------------------------------------------------------------- /pkg/cmd/label/testdata/cluster-role-binding/expected.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: jx-jx 5 | namespace: jx 6 | labels: 7 | beer: 'stella' 8 | wine: 'merlot' 9 | roleRef: 10 | apiGroup: rbac.authorization.k8s.io 11 | kind: ClusterRole 12 | name: jx-jx 13 | subjects: 14 | - kind: ServiceAccount 15 | name: jx 16 | namespace: jx 17 | -------------------------------------------------------------------------------- /pkg/cmd/label/testdata/cluster-role-binding/expectednotoverride.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: jx-jx 5 | namespace: jx 6 | labels: 7 | beer: 'stella' 8 | wine: 'merlot' 9 | roleRef: 10 | apiGroup: rbac.authorization.k8s.io 11 | kind: ClusterRole 12 | name: jx-jx 13 | subjects: 14 | - kind: ServiceAccount 15 | name: jx 16 | namespace: jx 17 | -------------------------------------------------------------------------------- /pkg/cmd/label/testdata/cluster-role-binding/source.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: jx-jx 5 | namespace: jx 6 | roleRef: 7 | apiGroup: rbac.authorization.k8s.io 8 | kind: ClusterRole 9 | name: jx-jx 10 | subjects: 11 | - kind: ServiceAccount 12 | name: jx 13 | namespace: jx 14 | -------------------------------------------------------------------------------- /pkg/cmd/label/testdata/svc/expected.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: cheese 5 | labels: 6 | wine: 'merlot' 7 | beer: 'stella' 8 | spec: 9 | ports: 10 | - port: 80 11 | targetPort: 8080 12 | protocol: TCP 13 | name: http 14 | selector: 15 | app: cheese -------------------------------------------------------------------------------- /pkg/cmd/label/testdata/svc/expectednotoverride.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: cheese 5 | labels: 6 | wine: reisling 7 | beer: 'stella' 8 | spec: 9 | ports: 10 | - port: 80 11 | targetPort: 8080 12 | protocol: TCP 13 | name: http 14 | selector: 15 | app: cheese -------------------------------------------------------------------------------- /pkg/cmd/label/testdata/svc/source.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: cheese 5 | labels: 6 | chart: cheese 7 | wine: reisling 8 | spec: 9 | ports: 10 | - port: 80 11 | targetPort: 8080 12 | protocol: TCP 13 | name: http 14 | selector: 15 | app: cheese -------------------------------------------------------------------------------- /pkg/cmd/lint/lint_test.go: -------------------------------------------------------------------------------- 1 | package lint_test 2 | 3 | import ( 4 | "testing" 5 | 6 | "github.com/jenkins-x-plugins/jx-gitops/pkg/cmd/lint" 7 | "github.com/stretchr/testify/require" 8 | ) 9 | 10 | func TestLint(t *testing.T) { 11 | _, o := lint.NewCmdLint() 12 | o.Dir = "testdata" 13 | 14 | err := o.Run() 15 | require.NoError(t, err, "failed to run") 16 | } 17 | -------------------------------------------------------------------------------- /pkg/cmd/lint/testdata/extensions/pipeline-catalog.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: project.jenkins-x.io/v1alpha1 2 | kind: PipelineCatalog 3 | spec: 4 | repositories: 5 | - label: JX3 Pipeline Catalog 6 | gitUrl: https://github.com/jstrachan/jx3-pipeline-catalog 7 | gitRef: myref 8 | -------------------------------------------------------------------------------- /pkg/cmd/lint/testdata/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: 8 | clusterName: mycluster 9 | project: myproject 10 | provider: gke 11 | ingress: 12 | domain: "" 13 | externalDNS: false 14 | namespaceSubDomain: "" 15 | vault: {} 16 | -------------------------------------------------------------------------------- /pkg/cmd/namespace/testdata/dirmode/jx/foo-svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: foo 5 | labels: 6 | chart: foo 7 | spec: 8 | ports: 9 | - port: 80 10 | targetPort: 8080 11 | protocol: TCP 12 | name: http 13 | selector: 14 | app: foo -------------------------------------------------------------------------------- /pkg/cmd/namespace/testdata/dirmode/something/cheese-svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: cheese 5 | namespace: blah 6 | labels: 7 | chart: cheese 8 | spec: 9 | ports: 10 | - port: 80 11 | targetPort: 8080 12 | protocol: TCP 13 | name: http 14 | selector: 15 | app: cheese -------------------------------------------------------------------------------- /pkg/cmd/namespace/testdata/regular/cluster/expected.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1beta1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: tekton-pipelines-jx 5 | subjects: 6 | - kind: ServiceAccount 7 | name: tekton-pipelines 8 | namespace: jx 9 | roleRef: 10 | kind: ClusterRole 11 | name: tekton-pipelines 12 | apiGroup: rbac.authorization.k8s.io -------------------------------------------------------------------------------- /pkg/cmd/namespace/testdata/regular/cluster/source.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1beta1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: tekton-pipelines-jx 5 | subjects: 6 | - kind: ServiceAccount 7 | name: tekton-pipelines 8 | namespace: jx 9 | roleRef: 10 | kind: ClusterRole 11 | name: tekton-pipelines 12 | apiGroup: rbac.authorization.k8s.io -------------------------------------------------------------------------------- /pkg/cmd/namespace/testdata/regular/hasns/expected.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: cheese 5 | namespace: something 6 | labels: 7 | chart: cheese 8 | spec: 9 | ports: 10 | - port: 80 11 | targetPort: 8080 12 | protocol: TCP 13 | name: http 14 | selector: 15 | app: cheese -------------------------------------------------------------------------------- /pkg/cmd/namespace/testdata/regular/hasns/source.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: cheese 5 | namespace: blah 6 | labels: 7 | chart: cheese 8 | spec: 9 | ports: 10 | - port: 80 11 | targetPort: 8080 12 | protocol: TCP 13 | name: http 14 | selector: 15 | app: cheese -------------------------------------------------------------------------------- /pkg/cmd/namespace/testdata/regular/isns/expected.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | labels: 5 | name: nginx 6 | name: nginx -------------------------------------------------------------------------------- /pkg/cmd/namespace/testdata/regular/isns/source.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | labels: 5 | name: nginx 6 | name: nginx -------------------------------------------------------------------------------- /pkg/cmd/namespace/testdata/regular/nons/expected.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: cheese 5 | labels: 6 | chart: cheese 7 | namespace: something 8 | spec: 9 | ports: 10 | - port: 80 11 | targetPort: 8080 12 | protocol: TCP 13 | name: http 14 | selector: 15 | app: cheese -------------------------------------------------------------------------------- /pkg/cmd/namespace/testdata/regular/nons/source.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: cheese 5 | labels: 6 | chart: cheese 7 | spec: 8 | ports: 9 | - port: 80 10 | targetPort: 8080 11 | protocol: TCP 12 | name: http 13 | selector: 14 | app: cheese -------------------------------------------------------------------------------- /pkg/cmd/patch/testdata/cluster-role-binding/expected.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: jx-jx 5 | namespace: jx 6 | annotations: 7 | beer: 'stella' 8 | wine: 'merlot' 9 | roleRef: 10 | apiGroup: rbac.authorization.k8s.io 11 | kind: ClusterRole 12 | name: jx-jx 13 | subjects: 14 | - kind: ServiceAccount 15 | name: jx 16 | namespace: jx 17 | -------------------------------------------------------------------------------- /pkg/cmd/patch/testdata/cluster-role-binding/source.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: jx-jx 5 | namespace: jx 6 | roleRef: 7 | apiGroup: rbac.authorization.k8s.io 8 | kind: ClusterRole 9 | name: jx-jx 10 | subjects: 11 | - kind: ServiceAccount 12 | name: jx 13 | namespace: jx 14 | -------------------------------------------------------------------------------- /pkg/cmd/patch/testdata/svc/expected.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: cheese 5 | annotations: 6 | chart: cheese 7 | beer: 'stella' 8 | wine: 'merlot' 9 | spec: 10 | ports: 11 | - port: 80 12 | targetPort: 8080 13 | protocol: TCP 14 | name: http 15 | selector: 16 | app: cheese -------------------------------------------------------------------------------- /pkg/cmd/patch/testdata/svc/source.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: cheese 5 | annotations: 6 | chart: cheese 7 | spec: 8 | ports: 9 | - port: 80 10 | targetPort: 8080 11 | protocol: TCP 12 | name: http 13 | selector: 14 | app: cheese -------------------------------------------------------------------------------- /pkg/cmd/pr/variables/testdata/comments/expected.sh: -------------------------------------------------------------------------------- 1 | 2 | # generated by: jx gitops pr variables 3 | export PR_BASE_REF="main" 4 | export PR_BASE_SHA="fakesha1234" 5 | export PR_COMMENT_CHEESE="edam" 6 | export PR_COMMENT_FOO="newValue" 7 | export PR_COMMENT_WITH_QUOTES=" some value " 8 | export PR_HEAD_REF="my-branch" 9 | export PR_HEAD_SHA="fakesha5678" 10 | export PR_LABEL_ENV_STAGING="true" 11 | export PR_LABEL_SOME_LABEL="true" 12 | export PR_LABEL_UPDATEBOT="true" 13 | -------------------------------------------------------------------------------- /pkg/cmd/pr/variables/testdata/empty/expected.sh: -------------------------------------------------------------------------------- 1 | 2 | # generated by: jx gitops pr variables 3 | export PR_BASE_REF="main" 4 | export PR_BASE_SHA="fakesha1234" 5 | export PR_HEAD_REF="my-branch" 6 | export PR_HEAD_SHA="fakesha5678" 7 | export PR_LABEL_ENV_STAGING="true" 8 | export PR_LABEL_SOME_LABEL="true" 9 | export PR_LABEL_UPDATEBOT="true" 10 | -------------------------------------------------------------------------------- /pkg/cmd/pr/variables/testdata/existing/.jx/variables.sh: -------------------------------------------------------------------------------- 1 | export DOCKER_REGISTRY='something.else' 2 | export DOCKER_REGISTRY_ORG='another' 3 | export KANIKO_FLAGS='custom-stuff' 4 | -------------------------------------------------------------------------------- /pkg/cmd/pr/variables/testdata/existing/expected.sh: -------------------------------------------------------------------------------- 1 | 2 | # generated by: jx gitops pr variables 3 | export PR_BASE_REF="main" 4 | export PR_BASE_SHA="fakesha1234" 5 | export PR_HEAD_REF="my-branch" 6 | export PR_HEAD_SHA="fakesha5678" 7 | export PR_LABEL_ENV_STAGING="true" 8 | export PR_LABEL_SOME_LABEL="true" 9 | export PR_LABEL_UPDATEBOT="true" 10 | 11 | 12 | # content from git... 13 | export DOCKER_REGISTRY='something.else' 14 | export DOCKER_REGISTRY_ORG='another' 15 | export KANIKO_FLAGS='custom-stuff' 16 | -------------------------------------------------------------------------------- /pkg/cmd/rename/testdata/bad-name.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: foo/bar 5 | -------------------------------------------------------------------------------- /pkg/cmd/rename/testdata/resource10.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ServiceAccount 3 | metadata: 4 | name: tekton-pipelines-webhook 5 | namespace: tekton-pipelines 6 | labels: 7 | app.kubernetes.io/component: webhook 8 | app.kubernetes.io/instance: default 9 | app.kubernetes.io/part-of: tekton-pipelines 10 | -------------------------------------------------------------------------------- /pkg/cmd/rename/testdata/resource100.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Source: cheese/templates/service.yaml 3 | apiVersion: v1 4 | kind: Service 5 | metadata: 6 | name: cheese 7 | labels: 8 | helm.sh/chart: istio-test-1.3.0 9 | app.kubernetes.io/name: istio-test 10 | app.kubernetes.io/instance: istio-test 11 | app.kubernetes.io/managed-by: Helm 12 | spec: 13 | type: ClusterIP 14 | ports: 15 | - port: 80 16 | targetPort: 8080 17 | protocol: TCP 18 | name: http 19 | - port: 8383 20 | protocol: TCP 21 | name: http-metrics 22 | selector: 23 | app.kubernetes.io/name: cheese 24 | -------------------------------------------------------------------------------- /pkg/cmd/rename/testdata/resource101.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Source: cheese/templates/kservice.yaml 3 | apiVersion: serving.knative.dev/v1alpha1 4 | kind: Service 5 | metadata: 6 | name: cheese 7 | labels: 8 | helm.sh/chart: istio-test-1.3.0 9 | app.kubernetes.io/name: istio-test 10 | app.kubernetes.io/instance: istio-test 11 | app.kubernetes.io/managed-by: Helm 12 | spec: 13 | runLatest: 14 | configuration: 15 | revisionTemplate: 16 | spec: 17 | container: 18 | image: cheese:1.2.3 19 | env: 20 | - name: CHEESE 21 | value: brie 22 | -------------------------------------------------------------------------------- /pkg/cmd/rename/testdata/resource12.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1beta1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: tekton-pipelines-controller-leaderelection 5 | labels: 6 | app.kubernetes.io/component: controller 7 | app.kubernetes.io/instance: default 8 | app.kubernetes.io/part-of: tekton-pipelines 9 | subjects: 10 | - kind: ServiceAccount 11 | name: tekton-pipelines-controller 12 | namespace: tekton-pipelines 13 | roleRef: 14 | kind: ClusterRole 15 | name: tekton-pipelines-leader-election 16 | apiGroup: rbac.authorization.k8s.io -------------------------------------------------------------------------------- /pkg/cmd/rename/testdata/resource14.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1beta1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: tekton-pipelines-webhook-cluster-access 5 | labels: 6 | app.kubernetes.io/component: webhook 7 | app.kubernetes.io/instance: default 8 | app.kubernetes.io/part-of: tekton-pipelines 9 | subjects: 10 | - kind: ServiceAccount 11 | name: tekton-pipelines-webhook 12 | namespace: tekton-pipelines 13 | roleRef: 14 | kind: ClusterRole 15 | name: tekton-pipelines-webhook-cluster-access 16 | apiGroup: rbac.authorization.k8s.io -------------------------------------------------------------------------------- /pkg/cmd/rename/testdata/resource15.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1beta1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: tekton-pipelines-webhook-leaderelection 5 | labels: 6 | app.kubernetes.io/component: webhook 7 | app.kubernetes.io/instance: default 8 | app.kubernetes.io/part-of: tekton-pipelines 9 | subjects: 10 | - kind: ServiceAccount 11 | name: tekton-pipelines-webhook 12 | namespace: tekton-pipelines 13 | roleRef: 14 | kind: ClusterRole 15 | name: tekton-pipelines-leader-election 16 | apiGroup: rbac.authorization.k8s.io 17 | -------------------------------------------------------------------------------- /pkg/cmd/rename/testdata/resource17.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1beta1 2 | kind: RoleBinding 3 | metadata: 4 | name: tekton-pipelines-webhook 5 | namespace: tekton-pipelines 6 | labels: 7 | app.kubernetes.io/component: webhook 8 | app.kubernetes.io/instance: default 9 | app.kubernetes.io/part-of: tekton-pipelines 10 | subjects: 11 | - kind: ServiceAccount 12 | name: tekton-pipelines-webhook 13 | namespace: tekton-pipelines 14 | roleRef: 15 | kind: Role 16 | name: tekton-pipelines-webhook 17 | apiGroup: rbac.authorization.k8s.io 18 | -------------------------------------------------------------------------------- /pkg/cmd/rename/testdata/resource6.yaml: -------------------------------------------------------------------------------- 1 | kind: ClusterRole 2 | apiVersion: rbac.authorization.k8s.io/v1 3 | metadata: 4 | name: tekton-pipelines-leader-election 5 | labels: 6 | app.kubernetes.io/instance: default 7 | app.kubernetes.io/part-of: tekton-pipelines 8 | rules: 9 | - # We uses leases for leaderelection 10 | apiGroups: ["coordination.k8s.io"] 11 | resources: ["leases"] 12 | verbs: ["get", "list", "create", "update", "delete", "patch", "watch"] 13 | -------------------------------------------------------------------------------- /pkg/cmd/repository/add/testdata/anewthingy/.jx/gitops/source-config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SourceConfig 3 | spec: 4 | groups: 5 | - owner: jenkins-x 6 | provider: https://github.com 7 | providerKind: github 8 | providerName: github 9 | repositories: 10 | - name: jx-cli 11 | - name: jx-gitops 12 | scheduler: cheese 13 | -------------------------------------------------------------------------------- /pkg/cmd/repository/add/testdata/anewthingy/expected.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SourceConfig 3 | metadata: 4 | creationTimestamp: null 5 | spec: 6 | groups: 7 | - owner: jenkins-x 8 | provider: https://github.com 9 | providerKind: github 10 | providerName: github 11 | repositories: 12 | - name: anewthingy 13 | - name: jx-cli 14 | - name: jx-gitops 15 | scheduler: cheese 16 | slack: 17 | channel: '#jenkins-x-pipelines' 18 | kind: failureOrNextSuccess 19 | pipeline: release -------------------------------------------------------------------------------- /pkg/cmd/repository/add/testdata/mygitlab/.jx/gitops/source-config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SourceConfig 3 | spec: 4 | groups: 5 | - owner: jenkins-x 6 | provider: https://github.com 7 | providerKind: github 8 | providerName: github 9 | repositories: 10 | - name: jx-cli 11 | - name: jx-gitops 12 | scheduler: cheese 13 | -------------------------------------------------------------------------------- /pkg/cmd/repository/add/testdata/myjenkins/.jx/gitops/source-config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SourceConfig 3 | spec: 4 | groups: 5 | - owner: jenkins-x 6 | provider: https://github.com 7 | providerKind: github 8 | providerName: github 9 | repositories: 10 | - name: jx-cli 11 | - name: jx-gitops 12 | -------------------------------------------------------------------------------- /pkg/cmd/repository/create/testdata/expected/config-root/namespaces/jx/source-repositories/jenkins-x-jx-cli.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: jenkins.io/v1 2 | kind: SourceRepository 3 | metadata: 4 | creationTimestamp: null 5 | labels: 6 | owner: jenkins-x 7 | provider: github 8 | repository: jx-cli 9 | name: jenkins-x-jx-cli 10 | spec: 11 | httpCloneURL: https://github.com/jenkins-x/jx-cli.git 12 | org: jenkins-x 13 | provider: https://github.com 14 | providerKind: github 15 | providerName: github 16 | repo: jx-cli 17 | scheduler: 18 | kind: "" 19 | name: cheese 20 | url: https://github.com/jenkins-x/jx-cli 21 | -------------------------------------------------------------------------------- /pkg/cmd/repository/deletecmd/testdata/simple-owner/.jx/gitops/source-config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SourceConfig 3 | spec: 4 | groups: 5 | - owner: jenkins-x 6 | provider: https://github.com 7 | providerKind: github 8 | providerName: github 9 | repositories: 10 | - name: jx-cli 11 | - name: jx-gitops 12 | scheduler: cheese 13 | -------------------------------------------------------------------------------- /pkg/cmd/repository/deletecmd/testdata/simple-owner/expected.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SourceConfig 3 | metadata: 4 | creationTimestamp: null 5 | spec: 6 | groups: 7 | - owner: jenkins-x 8 | provider: https://github.com 9 | providerKind: github 10 | providerName: github 11 | repositories: 12 | - name: jx-cli 13 | scheduler: cheese 14 | -------------------------------------------------------------------------------- /pkg/cmd/repository/deletecmd/testdata/simple/.jx/gitops/source-config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SourceConfig 3 | spec: 4 | groups: 5 | - owner: jenkins-x 6 | provider: https://github.com 7 | providerKind: github 8 | providerName: github 9 | repositories: 10 | - name: jx-cli 11 | - name: jx-gitops 12 | scheduler: cheese 13 | -------------------------------------------------------------------------------- /pkg/cmd/repository/deletecmd/testdata/simple/expected.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SourceConfig 3 | metadata: 4 | creationTimestamp: null 5 | spec: 6 | groups: 7 | - owner: jenkins-x 8 | provider: https://github.com 9 | providerKind: github 10 | providerName: github 11 | repositories: 12 | - name: jx-gitops 13 | scheduler: cheese 14 | -------------------------------------------------------------------------------- /pkg/cmd/repository/export/testdata/expected.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: gitops.jenkins-x.io/v1alpha1 2 | kind: SourceConfig 3 | metadata: 4 | creationTimestamp: null 5 | spec: 6 | groups: 7 | - owner: jenkins-x 8 | provider: https://github.com 9 | providerKind: github 10 | providerName: github 11 | repositories: 12 | - name: jx-cli 13 | - name: jx-gitops 14 | scheduler: cheese 15 | slack: 16 | channel: '#jenkins-x-pipelines' 17 | kind: failureOrNextSuccess 18 | pipeline: release -------------------------------------------------------------------------------- /pkg/cmd/repository/resolve/testdata/sourcedir/environment/expected.yaml: -------------------------------------------------------------------------------- 1 | # Source: jxboot-helmfile-resources/templates/environments.yaml 2 | apiVersion: jenkins.io/v1 3 | kind: Environment 4 | metadata: 5 | labels: 6 | env: "dev" 7 | team: jx 8 | name: "dev" 9 | namespace: jx 10 | spec: 11 | source: 12 | ref: "master" 13 | url: https://github.com/someorg/somerepo.git 14 | kind: Development 15 | label: Development 16 | namespace: jx -------------------------------------------------------------------------------- /pkg/cmd/repository/resolve/testdata/sourcedir/environment/source.yaml: -------------------------------------------------------------------------------- 1 | # Source: jxboot-helmfile-resources/templates/environments.yaml 2 | apiVersion: jenkins.io/v1 3 | kind: Environment 4 | metadata: 5 | labels: 6 | env: "dev" 7 | team: jx 8 | name: "dev" 9 | namespace: jx 10 | spec: 11 | source: 12 | ref: "master" 13 | url: https://github.com/myorg/environment-mycluster-dev.git 14 | kind: Development 15 | label: Development 16 | namespace: jx -------------------------------------------------------------------------------- /pkg/cmd/repository/resolve/testdata/sourcedir/repository/expected.yaml: -------------------------------------------------------------------------------- 1 | # Source: jxboot-helmfile-resources/templates/repositories.yaml 2 | apiVersion: jenkins.io/v1 3 | kind: SourceRepository 4 | metadata: 5 | name: "dev" 6 | labels: 7 | jenkins.io/gitSync: "false" 8 | namespace: jx 9 | spec: 10 | provider: "https://github.com" 11 | providerName: 'github' 12 | org: "someorg" 13 | repo: "somerepo" 14 | description: "the git repository for the Dev environment" 15 | scheduler: 16 | kind: Scheduler 17 | name: "environment" 18 | httpCloneURL: https://github.com/someorg/somerepo.git 19 | -------------------------------------------------------------------------------- /pkg/cmd/repository/resolve/testdata/sourcedir/repository/source.yaml: -------------------------------------------------------------------------------- 1 | # Source: jxboot-helmfile-resources/templates/repositories.yaml 2 | apiVersion: jenkins.io/v1 3 | kind: SourceRepository 4 | metadata: 5 | name: "dev" 6 | labels: 7 | jenkins.io/gitSync: "false" 8 | namespace: jx 9 | spec: 10 | provider: "https://github.com" 11 | providerName: 'github' 12 | org: "myorg" 13 | repo: "environment-mycluster-dev" 14 | description: "the git repository for the Dev environment" 15 | scheduler: 16 | kind: Scheduler 17 | name: "environment" 18 | -------------------------------------------------------------------------------- /pkg/cmd/requirement/edit/testdata/gitops-enabled.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | webhook: lighthouse -------------------------------------------------------------------------------- /pkg/cmd/requirement/publish/testdata/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: 8 | clusterName: mycluster 9 | project: myproject 10 | provider: gke 11 | ingress: 12 | domain: "" 13 | externalDNS: false 14 | namespaceSubDomain: "" 15 | vault: {} 16 | -------------------------------------------------------------------------------- /pkg/cmd/requirement/resolve/testdata/eks/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: 8 | provider: eks 9 | ingress: 10 | domain: "" 11 | externalDNS: false 12 | namespaceSubDomain: "" 13 | vault: {} 14 | webhook: lighthouse 15 | -------------------------------------------------------------------------------- /pkg/cmd/requirement/resolve/testdata/get_req_team_settings/boot_requirements.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: 8 | chartRepository: http://bucketrepo/bucketrepo/charts/ 9 | ingress: 10 | domain: "" 11 | externalDNS: false 12 | namespaceSubDomain: "" 13 | secretStorage: local 14 | vault: {} 15 | webhook: lighthouse 16 | -------------------------------------------------------------------------------- /pkg/cmd/requirement/resolve/testdata/gke/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: 8 | provider: gke 9 | ingress: 10 | domain: "" 11 | externalDNS: false 12 | namespaceSubDomain: "" 13 | vault: {} 14 | webhook: lighthouse 15 | -------------------------------------------------------------------------------- /pkg/cmd/sa/secret/testdata/sa.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ServiceAccount 3 | metadata: 4 | name: tekton-bot 5 | -------------------------------------------------------------------------------- /pkg/cmd/scheduler/testdata/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: {} 8 | ingress: 9 | domain: 1.2.3.4.nip.io 10 | externalDNS: false 11 | namespaceSubDomain: .jx. 12 | vault: {} 13 | -------------------------------------------------------------------------------- /pkg/cmd/split/testdata/comment/foo-svc.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Source: kubernetes-external-secrets/crds/kubernetes-client.io_externalsecrets_crd.yaml 3 | --- 4 | apiVersion: v1 5 | kind: Service 6 | metadata: 7 | name: beer 8 | labels: 9 | chart: beer 10 | spec: 11 | ports: 12 | - port: 80 13 | targetPort: 8080 14 | protocol: TCP 15 | name: http 16 | selector: 17 | app: beer 18 | -------------------------------------------------------------------------------- /pkg/cmd/split/testdata/empty/empty-svc.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Source: kubernetes-external-secrets/crds/kubernetes-client.io_externalsecrets_crd.yaml 3 | --- 4 | -------------------------------------------------------------------------------- /pkg/cmd/split/testdata/no-separator/cheese-svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: cheese 5 | namespace: blah 6 | labels: 7 | chart: cheese 8 | spec: 9 | ports: 10 | - port: 80 11 | targetPort: 8080 12 | protocol: TCP 13 | name: http 14 | selector: 15 | app: cheese -------------------------------------------------------------------------------- /pkg/cmd/split/testdata/separator/cheese-svc.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: Service 4 | metadata: 5 | name: cheese 6 | namespace: blah 7 | labels: 8 | chart: cheese 9 | spec: 10 | ports: 11 | - port: 80 12 | targetPort: 8080 13 | protocol: TCP 14 | name: http 15 | selector: 16 | app: cheese -------------------------------------------------------------------------------- /pkg/cmd/split/testdata/two/foo-svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: cheese 5 | labels: 6 | chart: cheese 7 | spec: 8 | ports: 9 | - port: 80 10 | targetPort: 8080 11 | protocol: TCP 12 | name: http 13 | selector: 14 | app: cheese 15 | --- 16 | apiVersion: v1 17 | kind: Service 18 | metadata: 19 | name: beer 20 | labels: 21 | chart: beer 22 | spec: 23 | ports: 24 | - port: 80 25 | targetPort: 8080 26 | protocol: TCP 27 | name: http 28 | selector: 29 | app: beer 30 | -------------------------------------------------------------------------------- /pkg/cmd/variables/testdata/has_preview_dockerfile/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gcr.io/jenkinsxio/jx-cli-base:latest 2 | 3 | COPY ./build/linux/jx-foo /usr/bin/jx-foo -------------------------------------------------------------------------------- /pkg/cmd/variables/testdata/has_preview_dockerfile/Dockerfile-preview: -------------------------------------------------------------------------------- 1 | FROM gcr.io/jenkinsxio/jx-cli-base:latest 2 | 3 | COPY ./build/linux/jx-foo /usr/bin/jx-foo -------------------------------------------------------------------------------- /pkg/cmd/variables/testdata/just_dockerfile/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gcr.io/jenkinsxio/jx-cli-base:latest 2 | 3 | COPY ./build/linux/jx-foo /usr/bin/jx-foo -------------------------------------------------------------------------------- /pkg/cmd/variables/testdata/tests/existing/.jx/variables.sh: -------------------------------------------------------------------------------- 1 | export DOCKER_REGISTRY='something.else' 2 | export DOCKER_REGISTRY_ORG='another' 3 | export KANIKO_FLAGS='custom-stuff' 4 | -------------------------------------------------------------------------------- /pkg/cmd/versionstream/testdata/custom/expected: -------------------------------------------------------------------------------- 1 | apiVersion: kpt.dev/v1alpha1 2 | kind: Kptfile 3 | metadata: 4 | name: versionStream 5 | upstream: 6 | type: git 7 | git: 8 | commit: 49c9579ed07f43569939a6a90f65e1f1e98337be 9 | repo: https://github.com/foo/bar 10 | directory: wine 11 | ref: cheese -------------------------------------------------------------------------------- /pkg/cmd/versionstream/testdata/custom/versionStream/Kptfile: -------------------------------------------------------------------------------- 1 | apiVersion: kpt.dev/v1alpha1 2 | kind: Kptfile 3 | metadata: 4 | name: versionStream 5 | upstream: 6 | type: git 7 | git: 8 | commit: 49c9579ed07f43569939a6a90f65e1f1e98337be 9 | repo: https://github.com/jenkins-x/jxr-versions 10 | directory: / 11 | ref: master -------------------------------------------------------------------------------- /pkg/cmd/versionstream/testdata/latest/expected: -------------------------------------------------------------------------------- 1 | apiVersion: kpt.dev/v1alpha1 2 | kind: Kptfile 3 | metadata: 4 | name: versionStream 5 | upstream: 6 | type: git 7 | git: 8 | commit: 49c9579ed07f43569939a6a90f65e1f1e98337be 9 | repo: https://github.com/jenkins-x/jxr-versions 10 | directory: / 11 | ref: master -------------------------------------------------------------------------------- /pkg/cmd/versionstream/testdata/latest/versionStream/Kptfile: -------------------------------------------------------------------------------- 1 | apiVersion: kpt.dev/v1alpha1 2 | kind: Kptfile 3 | metadata: 4 | name: versionStream 5 | upstream: 6 | type: git 7 | git: 8 | commit: 49c9579ed07f43569939a6a90f65e1f1e98337be 9 | repo: https://github.com/jenkins-x/jx3-lts-versions 10 | directory: / 11 | ref: master -------------------------------------------------------------------------------- /pkg/cmd/versionstream/testdata/lts/expected: -------------------------------------------------------------------------------- 1 | apiVersion: kpt.dev/v1alpha1 2 | kind: Kptfile 3 | metadata: 4 | name: versionStream 5 | upstream: 6 | type: git 7 | git: 8 | commit: 49c9579ed07f43569939a6a90f65e1f1e98337be 9 | repo: https://github.com/jenkins-x/jx3-lts-versions 10 | directory: versionStream 11 | ref: main -------------------------------------------------------------------------------- /pkg/cmd/versionstream/testdata/lts/versionStream/Kptfile: -------------------------------------------------------------------------------- 1 | apiVersion: kpt.dev/v1alpha1 2 | kind: Kptfile 3 | metadata: 4 | name: versionStream 5 | upstream: 6 | type: git 7 | git: 8 | commit: 49c9579ed07f43569939a6a90f65e1f1e98337be 9 | repo: https://github.com/jenkins-x/jxr-versions 10 | directory: / 11 | ref: master -------------------------------------------------------------------------------- /pkg/cmd/webhook/update/constants.go: -------------------------------------------------------------------------------- 1 | package update 2 | 3 | const ( 4 | // LighthouseHMACToken names of the hmac token secret for Lighthouse 5 | LighthouseHMACToken = "lighthouse-hmac-token" 6 | 7 | // WebHookAnnotation annotation to indicate if the webhook has been created or failed 8 | WebHookAnnotation = "webhook.jenkins-x.io" 9 | 10 | // WebHookErrorAnnotation indicates an error to create a webhook 11 | WebHookErrorAnnotation = "webhook.jenkins-x.io/error" 12 | ) 13 | -------------------------------------------------------------------------------- /pkg/helmfiles/helpers_test_data/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | helmfiles: 3 | - path: helmfiles/jx/helmfile.yaml 4 | - path: helmfiles/nginx/helmfile.yaml 5 | - path: helmfiles/cert-manager/helmfile.yaml 6 | templates: {} 7 | renderedvalues: {} 8 | -------------------------------------------------------------------------------- /pkg/helmfiles/helpers_test_data/helmfiles/cert-manager/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | namespace: cert-manager 3 | templates: {} 4 | renderedvalues: {} 5 | -------------------------------------------------------------------------------- /pkg/helmfiles/helpers_test_data/helmfiles/jx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | namespace: jx 3 | helmfiles: 4 | - path: helmfiles/nested/helmfile.yaml 5 | templates: {} 6 | renderedvalues: {} 7 | -------------------------------------------------------------------------------- /pkg/helmfiles/helpers_test_data/helmfiles/jx/helmfiles/nested/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | namespace: nested 3 | templates: {} 4 | renderedvalues: {} 5 | -------------------------------------------------------------------------------- /pkg/helmfiles/helpers_test_data/helmfiles/nginx/helmfile.yaml: -------------------------------------------------------------------------------- 1 | filepath: "" 2 | namespace: nginx 3 | templates: {} 4 | renderedvalues: {} 5 | -------------------------------------------------------------------------------- /pkg/jxtmpl/reqvalues/testdata/jx-global-values.yaml: -------------------------------------------------------------------------------- 1 | condition: 2 | enabled: true 3 | foo: 4 | bar: cheese 5 | jx: 6 | foo: 7 | bar: wine -------------------------------------------------------------------------------- /pkg/jxtmpl/templater/testdata/jx-requirements.yml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Requirements 3 | spec: 4 | autoUpdate: 5 | enabled: false 6 | schedule: "" 7 | cluster: 8 | clusterName: mycluster 9 | project: myproject 10 | provider: gke 11 | ingress: 12 | domain: "" 13 | externalDNS: false 14 | namespaceSubDomain: "" 15 | vault: {} 16 | -------------------------------------------------------------------------------- /pkg/jxtmpl/templater/testdata/secrets.yaml: -------------------------------------------------------------------------------- 1 | secrets: 2 | adminUser: 3 | username: todo 4 | password: todo 5 | docker: 6 | url: "" 7 | username: todo 8 | password: todo 9 | hmacToken: todo 10 | pipelineUser: 11 | username: todo 12 | token: todo 13 | email: todo -------------------------------------------------------------------------------- /pkg/jxtmpl/templater/testdata/values.yaml: -------------------------------------------------------------------------------- 1 | webhook: 2 | enabled: false 3 | 4 | auth: 5 | git: 6 | username: "todo" 7 | password: "todo" 8 | url: https://github.com 9 | docker: 10 | username: "todo" 11 | password: "todo" 12 | url: "" 13 | serviceaccount: 14 | annotations: 15 | iam.gke.io/gcp-service-account: mycluster-tk@myproject.iam.gserviceaccount.com 16 | 17 | tillerNamespace: "" -------------------------------------------------------------------------------- /pkg/pipelinescheduler/leaf.go: -------------------------------------------------------------------------------- 1 | package pipelinescheduler 2 | 3 | import ( 4 | schedulerapi "github.com/jenkins-x-plugins/jx-gitops/pkg/apis/scheduler/v1alpha1" 5 | ) 6 | 7 | // SchedulerLeaf defines a pipeline scheduler leaf 8 | type SchedulerLeaf struct { 9 | *schedulerapi.SchedulerSpec 10 | Org string 11 | Repo string 12 | } 13 | -------------------------------------------------------------------------------- /pkg/pipelinescheduler/testdata/merger_with_mergemethod/repo.yaml: -------------------------------------------------------------------------------- 1 | merger: 2 | blocker_label: /hold 3 | max_goroutines: 10 4 | target_url: http://targeturl 5 | squash_label: squash 6 | merge_method: rebase 7 | policy: 8 | skip-unknown-contexts: false 9 | required-contexts: 10 | replace: false 11 | entries: 12 | - context3 13 | required-if-present-contexts: 14 | replace: true 15 | entries: 16 | - context5 17 | - context6 -------------------------------------------------------------------------------- /pkg/pipelinescheduler/testdata/merger_with_parent/repo.yaml: -------------------------------------------------------------------------------- 1 | merger: 2 | blocker_label: /hold 3 | max_goroutines: 10 4 | target_url: http://targeturl 5 | squash_label: squash 6 | policy: 7 | skip-unknown-contexts: false 8 | required-contexts: 9 | replace: false 10 | entries: 11 | - context3 12 | required-if-present-contexts: 13 | replace: true 14 | entries: 15 | - context5 16 | - context6 -------------------------------------------------------------------------------- /pkg/pipelinescheduler/testdata/multiple_contexts/plugins.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkins-x-plugins/jx-gitops/537756a131e4aee8b462a82143e4d45808d5cb00/pkg/pipelinescheduler/testdata/multiple_contexts/plugins.yaml -------------------------------------------------------------------------------- /pkg/pipelinescheduler/testdata/no_postsubmits_with_parent/repo.yaml: -------------------------------------------------------------------------------- 1 | postsubmits: 2 | replace: true 3 | 4 | trigger: 5 | join_org_url: http://org-url 6 | only_org_members: true 7 | 8 | plugins: 9 | entries: 10 | - cat -------------------------------------------------------------------------------- /pkg/pipelinescheduler/testdata/only_plugins/parent.yaml: -------------------------------------------------------------------------------- 1 | trigger: 2 | trusted_org: roadrunner-corp 3 | join_org_url: http://org-url 4 | ignore_ok_to_test: true 5 | only_org_members: true 6 | 7 | external_plugins: 8 | entries: 9 | - name: jx-app-cheese 10 | endpoint: http://jx-app-cheese 11 | - name: jx-app-jacoco 12 | endpoint: http://jx-app-jacoco 13 | 14 | lgtm: 15 | review_acts_as_lgtm: false 16 | store_tree_hash: false 17 | trusted_team_for_sticky_lgtm: team1 18 | 19 | plugins: 20 | entries: 21 | - trigger 22 | - wip 23 | - heart 24 | - override -------------------------------------------------------------------------------- /pkg/pipelinescheduler/testdata/only_plugins/repo.yaml: -------------------------------------------------------------------------------- 1 | lgtm: 2 | review_acts_as_lgtm: true 3 | store_tree_hash: true 4 | trusted_team_for_sticky_lgtm: team2 5 | 6 | approve: 7 | lgtm_acts_as_approve: true 8 | ignore_review_state: false 9 | 10 | external_plugins: 11 | replace: true 12 | entries: 13 | - name: jx-app-cheese 14 | endpoint: http://jx-app-cheese 15 | 16 | plugins: 17 | replace: false 18 | entries: 19 | - cat 20 | - help 21 | - hold 22 | - lgtm 23 | - lifecycle -------------------------------------------------------------------------------- /pkg/pipelinescheduler/testdata/only_plugins_from_parent/repo.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkins-x-plugins/jx-gitops/537756a131e4aee8b462a82143e4d45808d5cb00/pkg/pipelinescheduler/testdata/only_plugins_from_parent/repo.yaml -------------------------------------------------------------------------------- /pkg/pipelinescheduler/testdata/only_plugins_from_repo/parent.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkins-x-plugins/jx-gitops/537756a131e4aee8b462a82143e4d45808d5cb00/pkg/pipelinescheduler/testdata/only_plugins_from_repo/parent.yaml -------------------------------------------------------------------------------- /pkg/pipelinescheduler/testdata/repo/plugins.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jenkins-x-plugins/jx-gitops/537756a131e4aee8b462a82143e4d45808d5cb00/pkg/pipelinescheduler/testdata/repo/plugins.yaml -------------------------------------------------------------------------------- /pkg/pipelinescheduler/testdata/with_parent/repo.yaml: -------------------------------------------------------------------------------- 1 | postsubmits: 2 | entries: 3 | - name: release 4 | branches: 5 | - 2.x 6 | 7 | trigger: 8 | join_org_url: http://org-url 9 | only_org_members: true 10 | 11 | plugins: 12 | entries: 13 | - cat -------------------------------------------------------------------------------- /pkg/releasereport/helpers.go: -------------------------------------------------------------------------------- 1 | package releasereport 2 | 3 | import ( 4 | "github.com/jenkins-x/jx-helpers/v3/pkg/yamls" 5 | "github.com/pkg/errors" 6 | ) 7 | 8 | // LoadReleases loads the releases 9 | func LoadReleases(path string, releases *[]*NamespaceReleases) error { 10 | err := yamls.LoadFile(path, releases) 11 | if err != nil { 12 | return errors.Wrapf(err, "failed to load %s", path) 13 | } 14 | return nil 15 | 16 | } 17 | -------------------------------------------------------------------------------- /pkg/rootcmd/helpers.go: -------------------------------------------------------------------------------- 1 | package rootcmd 2 | 3 | import ( 4 | "os" 5 | ) 6 | 7 | // BinaryName the binary name to use in help docs 8 | var BinaryName string 9 | 10 | // TopLevelCommand the top level command name 11 | var TopLevelCommand string 12 | 13 | func init() { 14 | BinaryName = os.Getenv("BINARY_NAME") 15 | if BinaryName == "" { 16 | BinaryName = "jx-gitops" 17 | } 18 | TopLevelCommand = os.Getenv("TOP_LEVEL_COMMAND") 19 | if TopLevelCommand == "" { 20 | TopLevelCommand = "jx-gitops" 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /pkg/tfupgrade/testdata/azure/versionStream/git/github.com/jenkins-x-terraform/terraform-jx-azure.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x-terraform/terraform-jx-azure.git 2 | version: 0.1.0 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /pkg/tfupgrade/testdata/eks/expected.tf: -------------------------------------------------------------------------------- 1 | module "eks-jx" { 2 | source = "github.com/jenkins-x/terraform-aws-eks-jx?ref=v1.18.4" 3 | cluster_name = var.cluster_name 4 | cluster_version = var.cluster_version 5 | region = var.region 6 | vault_user = var.vault_user 7 | is_jx2 = false 8 | jx_git_url = var.jx_git_url 9 | jx_bot_username = var.jx_bot_username 10 | jx_bot_token = var.jx_bot_token 11 | force_destroy = var.force_destroy 12 | } 13 | -------------------------------------------------------------------------------- /pkg/tfupgrade/testdata/eks/main.tf: -------------------------------------------------------------------------------- 1 | module "eks-jx" { 2 | source = "github.com/jenkins-x/terraform-aws-eks-jx?ref=v1.15.12" 3 | cluster_name = var.cluster_name 4 | cluster_version = var.cluster_version 5 | region = var.region 6 | vault_user = var.vault_user 7 | is_jx2 = false 8 | jx_git_url = var.jx_git_url 9 | jx_bot_username = var.jx_bot_username 10 | jx_bot_token = var.jx_bot_token 11 | force_destroy = var.force_destroy 12 | } 13 | -------------------------------------------------------------------------------- /pkg/tfupgrade/testdata/eks/versionStream/git/github.com/jenkins-x/terraform-aws-eks-jx.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/terraform-aws-eks-jx.git 2 | version: 1.18.4 3 | -------------------------------------------------------------------------------- /pkg/tfupgrade/testdata/gke/expected.tf: -------------------------------------------------------------------------------- 1 | module "jx" { 2 | source = "github.com/jenkins-x/terraform-google-jx?ref=v1.9.0" 3 | jx2 = false 4 | } 5 | 6 | output "connect" { 7 | description = "Connect to cluster" 8 | value = module.jx.connect 9 | } 10 | 11 | output "follow_install_logs" { 12 | description = "Follow Jenkins X install logs" 13 | value = "jx admin log" 14 | } 15 | 16 | output "docs" { 17 | description = "Follow Jenkins X 3.x alpha docs for more information" 18 | value = "https://jenkins-x.io/v3/" 19 | } 20 | -------------------------------------------------------------------------------- /pkg/tfupgrade/testdata/gke/main.tf: -------------------------------------------------------------------------------- 1 | module "jx" { 2 | source = "github.com/jenkins-x/terraform-google-jx?ref=master" 3 | jx2 = false 4 | } 5 | 6 | output "connect" { 7 | description = "Connect to cluster" 8 | value = module.jx.connect 9 | } 10 | 11 | output "follow_install_logs" { 12 | description = "Follow Jenkins X install logs" 13 | value = "jx admin log" 14 | } 15 | 16 | output "docs" { 17 | description = "Follow Jenkins X 3.x alpha docs for more information" 18 | value = "https://jenkins-x.io/v3/" 19 | } 20 | -------------------------------------------------------------------------------- /pkg/tfupgrade/testdata/gke/versionStream/git/github.com/jenkins-x/terraform-google-jx.yml: -------------------------------------------------------------------------------- 1 | gitUrl: https://github.com/jenkins-x/terraform-google-jx.git 2 | version: 1.9.0 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /pkg/variablefinders/pipeline_kind.go: -------------------------------------------------------------------------------- 1 | package variablefinders 2 | 3 | import ( 4 | "os" 5 | "strings" 6 | ) 7 | 8 | // FindPipelineKind finds the pipeline kind 9 | func FindPipelineKind(branch string) (string, error) { 10 | jobType := os.Getenv("JOB_TYPE") 11 | prNumber := os.Getenv("PULL_NUMBER") 12 | if strings.HasPrefix(branch, "PR-") || jobType == "presubmit" || prNumber != "" { 13 | return "pullrequest", nil 14 | } 15 | return "release", nil 16 | } 17 | -------------------------------------------------------------------------------- /pkg/variablefinders/testdata/all/.jx/settings.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Settings 3 | spec: 4 | # inherit destination config and promote environments from this dev environment 5 | gitUrl: "https://something.com/cheese.git" 6 | 7 | # lets override the destination configuration 8 | destination: 9 | chartRepository: https://github.com/myorg/mycharts.git 10 | chartKind: pages 11 | registry: gcr.io 12 | 13 | # lets replace the promote environments 14 | ignoreDevEnvironments: true 15 | promoteEnvironments: 16 | - key: staging 17 | owner: jstrachan 18 | repository: my-staging-repo 19 | -------------------------------------------------------------------------------- /pkg/variablefinders/testdata/chart_repo/.jx/settings.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Settings 3 | spec: 4 | # lets override the destination configuration 5 | destination: 6 | chartRepository: https://github.com/myorg/mycharts.git 7 | chartKind: pages 8 | registry: my.harbor.com 9 | -------------------------------------------------------------------------------- /pkg/variablefinders/testdata/disable_env/.jx/settings.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Settings 3 | spec: 4 | promoteEnvironments: 5 | - key: production 6 | promotionStrategy: Never -------------------------------------------------------------------------------- /pkg/variablefinders/testdata/group_and_local_settings/.jx/settings.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: core.jenkins-x.io/v4beta1 2 | kind: Settings 3 | spec: 4 | # lets override the destination configuration 5 | destination: 6 | chartRepository: https://github.com/myorg/mycharts.git 7 | chartKind: pages 8 | registry: my.harbor.com 9 | -------------------------------------------------------------------------------- /promote.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | echo "promoting the new version ${VERSION} to downstream repositories" 4 | 5 | jx step create pr regex --regex '\s+GitOpsVersion = "(?P.*)"' --version ${VERSION} --files pkg/plugins/versions.go --repo https://github.com/jenkins-x/jx-cli.git 6 | 7 | --------------------------------------------------------------------------------