├── .ci-operator.yaml ├── .dockerignore ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ ├── feature_request.md │ └── task.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ └── openshift-ci-automation.yaml ├── .gitignore ├── CONTRIBUTING.md ├── Dockerfile ├── LICENSE ├── Makefile ├── OWNERS ├── PROJECT ├── README.md ├── api └── v1alpha1 │ ├── gitopsservice_types.go │ ├── groupversion_info.go │ └── zz_generated.deepcopy.go ├── build └── redis │ ├── haproxy.cfg.tpl │ ├── haproxy_init.sh.tpl │ ├── init.sh.tpl │ ├── redis.conf.tpl │ ├── redis_liveness.sh.tpl │ ├── redis_readiness.sh.tpl │ ├── sentinel.conf.tpl │ └── sentinel_liveness.sh.tpl ├── bundle.Dockerfile ├── bundle ├── bundle.Dockerfile ├── manifests │ ├── argoproj.io_analysisruns.yaml │ ├── argoproj.io_analysistemplates.yaml │ ├── argoproj.io_applications.yaml │ ├── argoproj.io_applicationsets.yaml │ ├── argoproj.io_appprojects.yaml │ ├── argoproj.io_argocds.yaml │ ├── argoproj.io_clusteranalysistemplates.yaml │ ├── argoproj.io_experiments.yaml │ ├── argoproj.io_notificationsconfigurations.yaml │ ├── argoproj.io_rolloutmanagers.yaml │ ├── argoproj.io_rollouts.yaml │ ├── gitops-operator.clusterserviceversion.yaml │ ├── openshift-gitops-operator-manager-config_v1_configmap.yaml │ ├── openshift-gitops-operator-metrics-monitor_monitoring.coreos.com_v1_servicemonitor.yaml │ ├── openshift-gitops-operator-metrics-service_v1_service.yaml │ ├── openshift-gitops-operator-prometheus_rbac.authorization.k8s.io_v1_role.yaml │ ├── openshift-gitops-operator-prometheus_rbac.authorization.k8s.io_v1_rolebinding.yaml │ ├── openshift-gitops-operator-webhook-service_v1_service.yaml │ └── pipelines.openshift.io_gitopsservices.yaml ├── metadata │ └── annotations.yaml └── tests │ └── scorecard │ └── config.yaml ├── common └── common.go ├── config ├── crd │ ├── bases │ │ ├── analysis-run-crd.yaml │ │ ├── analysis-template-crd.yaml │ │ ├── argoproj.io_applications.yaml │ │ ├── argoproj.io_applicationsets.yaml │ │ ├── argoproj.io_appprojects.yaml │ │ ├── argoproj.io_argocds.yaml │ │ ├── argoproj.io_notificationsconfigurations.yaml │ │ ├── argoproj.io_rolloutmanagers.yaml │ │ ├── cluster-analysis-template-crd.yaml │ │ ├── experiment-crd.yaml │ │ ├── pipelines.openshift.io_gitopsservices.yaml │ │ └── rollout-crd.yaml │ ├── kustomization.yaml │ ├── kustomizeconfig.yaml │ └── patches │ │ ├── cainjection_in_argocds.yaml │ │ ├── cainjection_in_gitopsservices.yaml │ │ ├── webhook_in_argocds.yaml │ │ └── webhook_in_gitopsservices.yaml ├── default │ ├── kustomization.yaml │ ├── manager_auth_proxy_patch.yaml │ ├── manager_config_patch.yaml │ └── manager_webhook_patch.yaml ├── manager │ ├── controller_manager_config.yaml │ ├── kustomization.yaml │ └── manager.yaml ├── manifests │ ├── bases │ │ └── gitops-operator.clusterserviceversion.yaml │ ├── kustomization.yaml │ └── patches │ │ ├── description.yaml │ │ └── icon.yaml ├── prometheus │ ├── kustomization.yaml │ ├── monitor.yaml │ ├── role.yaml │ └── rolebinding.yaml ├── rbac │ ├── auth_proxy_client_clusterrole.yaml │ ├── auth_proxy_role.yaml │ ├── auth_proxy_role_binding.yaml │ ├── auth_proxy_service.yaml │ ├── gitopsservice_editor_role.yaml │ ├── gitopsservice_viewer_role.yaml │ ├── kustomization.yaml │ ├── leader_election_role.yaml │ ├── leader_election_role_binding.yaml │ ├── notificationsconfiguration_editor_role.yaml │ ├── notificationsconfiguration_viewer_role.yaml │ ├── role.yaml │ ├── role_binding.yaml │ └── service_account.yaml ├── samples │ ├── argoproj.io_v1alpha1_application.yaml │ ├── argoproj.io_v1alpha1_applicationset.yaml │ ├── argoproj.io_v1alpha1_appproject.yaml │ ├── argoproj.io_v1alpha1_argocd.yaml │ ├── argoproj.io_v1alpha1_notificationsconfiguration.yaml │ ├── argoproj.io_v1beta1_argocd.yaml │ ├── kustomization.yaml │ └── pipelines_v1alpha1_gitopsservice.yaml ├── scorecard │ ├── bases │ │ └── config.yaml │ ├── kustomization.yaml │ └── patches │ │ ├── basic.config.yaml │ │ └── olm.config.yaml └── webhook │ ├── kustomization.yaml │ ├── kustomizeconfig.yaml │ └── service.yaml ├── controllers ├── argocd │ ├── argocd.go │ ├── argocd_test.go │ ├── img │ │ └── argo.png │ └── openshift │ │ ├── clusterconfig_test.go │ │ ├── openshift.go │ │ └── openshift_test.go ├── argocd_controller.go ├── argocd_controller_test.go ├── argocd_metrics_controller.go ├── argocd_metrics_controller_test.go ├── consoleplugin.go ├── consoleplugin_test.go ├── dashboards │ ├── gitops-components.json │ ├── gitops-grpc.json │ └── gitops-overview.json ├── gitopsservice_controller.go ├── gitopsservice_controller_test.go ├── kam.go └── util │ ├── util.go │ └── util_test.go ├── docs ├── Integrate GitOps with Secrets Management.md ├── Migration_Guide.md ├── OpenShift GitOps Usage Guide.md ├── assets │ ├── 1.operator_hub_searchbox.png │ ├── 10.login_via_keycloak.png │ ├── 11.keycloak_login_with_openshift.png │ ├── 12.login_page_openshift.png │ ├── 13.argocd_user_info.png │ ├── 14.new_keycloak_instance.png │ ├── 15.configure_keycloak_instance.png │ ├── 16.credentials_setup.png │ ├── 17.groups_claim_client_scope.png │ ├── 18.groups_claim_token_mapper.png │ ├── 19.groups_claim_assigning_scope.png │ ├── 2.operator_install_guide.png │ ├── 20.groups_claim_assign_default_scope.png │ ├── 21.group_claim_admin_group.png │ ├── 22.argocd_login_keycloak_rhsso.png │ ├── 23.argocd_ui_keycloak_rhsso.png │ ├── 24.add_user_to_keycloak.png │ ├── 25.download_kam_cli.png │ ├── 26.kam_download_index.png │ ├── 27.create_new_project.png │ ├── 28.create_new_argocd_instance.png │ ├── 29.argocd_new_instance_route.png │ ├── 3.operator_install_button.png │ ├── 30.create_role_binding.png │ ├── 31.operator_nodeSelector_tolerations.jpg │ ├── 32.monitoring.png │ ├── 33.logging.png │ ├── 34.kibana_index_pattern.png │ ├── 35.kibana_timestamp_field.png │ ├── 36.kibana_add_filter.png │ ├── 37.jenkins_application_summary.png │ ├── 38.jenkins_app.png │ ├── 39.gitops_monitoring_dashboards_dropdown.png │ ├── 4.subscription_instance.png │ ├── 5.console_application_launcher.png │ ├── 6.default_instance_password.png │ ├── 7.copy_secret_to_clipboard.png │ ├── 8.argocd_login_ui.png │ ├── 9.gitops_server_route_url.png │ ├── Install_GitOps_Operator.png │ ├── Uninstall_Community_operator.png │ ├── installed-operator.png │ └── operatorhub-listing.png ├── dex_config_guidance.md └── rhsso_config_guidance.md ├── go.mod ├── go.sum ├── hack ├── boilerplate.go.txt ├── non-olm-install │ ├── README.md │ ├── install-gitops-operator.sh │ └── rbac-patch.yaml ├── propagate.sh └── scripts │ ├── README.md │ ├── olm-nightly-install.sh │ └── run-non-olm-kuttl-test.sh ├── main.go ├── openshift-ci └── build-root │ ├── Dockerfile │ ├── OWNERS │ ├── README.md │ └── source-image │ └── Dockerfile ├── openshift-gitops-e2e.json ├── scripts ├── e2e-common.sh ├── install-operator-sdk.sh ├── openshift-CI-kuttl-tests.sh ├── openshift-interop-kuttl-tests.sh ├── openshiftci-olm-kuttl-tests.sh ├── openshiftci-presubmit-all-tests.sh ├── openshiftci-presubmit-unittests.sh ├── prepare-test-cluster.sh └── run-kuttl-tests.sh ├── test ├── appcrs │ ├── build_appcr.yaml │ ├── image_appcr.yaml │ ├── nginx_appcr.yaml │ ├── nginx_default_ns_appcr.yaml │ ├── non_default_appcr.yaml │ └── scheduler_appcr.yaml ├── e2e │ ├── argocd_metrics_test.go │ ├── argocd_route_test.go │ ├── gitopsservice_test.go │ └── suite_test.go ├── examples │ ├── 1-027_operand-from-git │ │ ├── argocd.yaml │ │ ├── kustomization.yaml │ │ └── namespace.yaml │ ├── Readme.md │ ├── bgd-k8s │ │ ├── base │ │ │ ├── bgd-configmap.yaml │ │ │ ├── bgd-deployment.yaml │ │ │ ├── bgd-namespace.yaml │ │ │ ├── bgd-svc.yaml │ │ │ └── kustomization.yaml │ │ └── overlays │ │ │ ├── kind │ │ │ ├── bgd-ingress.yaml │ │ │ └── kustomization.yaml │ │ │ └── mac │ │ │ ├── bgd-ingress.yaml │ │ │ └── kustomization.yaml │ ├── build │ │ └── base │ │ │ └── build.yaml │ ├── deploymentconfig-example │ │ └── deploymentconfig.yaml │ ├── deploymentconfig-example_replica_0 │ │ └── deploymentconfig.yaml │ ├── guestbook │ │ ├── guestbook-ui-deployment.yaml │ │ └── guestbook-ui-svc.yaml │ ├── image │ │ └── image.yaml │ ├── kustomize-example │ │ ├── configmap.yaml │ │ ├── kustomization.yaml │ │ └── kustomize-configmap.yaml │ ├── kustomize-guestbook │ │ ├── guestbook-ui-deployment.yaml │ │ ├── guestbook-ui-svc.yaml │ │ └── kustomization.yaml │ ├── nginx │ │ └── nginx.yaml │ └── scheduler │ │ └── scheduler-config.yaml ├── helper │ └── application_status.go ├── nondefaulte2e │ ├── gitops_service_nondefault_test.go │ └── suite_test.go └── openshift │ └── e2e │ ├── ignore-tests │ ├── parallel │ │ ├── 1-003_validate_console_link │ │ │ ├── 01-assert.yaml │ │ │ └── 01-check-console-link.yaml │ │ ├── 1-007_validate_namespace_scoped_install │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ └── 02-check-cluster-secret.yaml │ │ ├── 1-008_validate-custom-argocd-namespace │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-wait.yaml │ │ │ ├── 03-assert.yaml │ │ │ ├── 03-create-app.yaml │ │ │ └── 99-delete.yaml │ │ ├── 1-009_validate-manage-other-namespace │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-label-namespace.yaml │ │ │ ├── 03-check-secret.yaml │ │ │ ├── 04-assert.yaml │ │ │ ├── 04-create-application.yaml │ │ │ ├── 05-unlabel-namespace.yaml │ │ │ ├── 06-check-secret.yaml │ │ │ ├── 07-check.yaml │ │ │ ├── 99-delete.yaml │ │ │ ├── README.md │ │ │ └── errors.yaml │ │ ├── 1-012_validate-managed-by-chain │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-label-namespace.yaml │ │ │ ├── 03-check-secret.yaml │ │ │ ├── 04-assert.yaml │ │ │ ├── 04-create-application.yaml │ │ │ ├── 07-assert.yaml │ │ │ ├── 07-label-namespace.yaml │ │ │ ├── 08-assert.yaml │ │ │ ├── 08-create-application.yaml │ │ │ ├── 09-delete-app-and-namespace.yaml │ │ │ ├── 10-check-secret.yaml │ │ │ ├── 11-assert.yaml │ │ │ ├── 11-recreate-applications.yaml │ │ │ └── 99-delete.yaml │ │ ├── 1-019_validate_volume_mounts │ │ │ ├── 01-assert.yaml │ │ │ └── 01-install.yaml │ │ ├── 1-021_validate_rolebindings │ │ │ ├── 01-assert.yaml │ │ │ └── 01-install.yaml │ │ ├── 1-023_validate_repo_server_tls │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-change-argocd.yaml │ │ │ ├── 03-check-workloads.yaml │ │ │ ├── 04-assert.yaml │ │ │ ├── 04-install-app.yaml │ │ │ └── 99-delete.yaml │ │ ├── 1-025-validate-managed-by-change │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-install-app.yaml │ │ │ ├── 02-wait.yaml │ │ │ ├── 03-assert.yaml │ │ │ ├── 03-update-namespace.yaml │ │ │ └── 99-delete.yaml │ │ ├── 1-029_validate_tls_secret_no_scale │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-create-tls-secret.yaml │ │ │ ├── 03-assert.yaml │ │ │ └── 03-sleep-and-recheck.yaml │ │ ├── 1-030_validate_reencrypt │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-wait.yaml │ │ │ └── 03-check-route.yaml │ │ ├── 1-031_validate_toolchain │ │ │ └── 01-check.yaml │ │ ├── 1-032_validate_resource_inclusions │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-add_resource_inclusions.yaml │ │ │ └── 02-assert.yaml │ │ ├── 1-033_validate_resource_exclusions │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-add_resource_exclusions.yaml │ │ │ └── 02-assert.yaml │ │ ├── 1-036_validate_keycloak_resource_reqs │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-update-sso-keycloak-provider.yaml │ │ │ └── 03-check-resources.yaml │ │ ├── 1-037_validate_argocd_setting_replicas │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-scale_out_server.yaml │ │ │ ├── 03-scale_out_repo.yaml │ │ │ ├── 04-assert.yaml │ │ │ ├── 05-scale_in_server.yaml │ │ │ ├── 06-scale_in_repo.yaml │ │ │ └── 07-assert.yaml │ │ ├── 1-038_validate_productized_images │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ └── 02-check-images.yaml │ │ ├── 1-039_validate_fix_argocd-tls-certs-cm │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-modify_configmap.yaml │ │ │ ├── 03-modify_argocd_cr.yaml │ │ │ └── 04-errors.yaml │ │ ├── 1-042_validate_status_host │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-check_URL.yaml │ │ │ ├── 03-assert.yaml │ │ │ ├── 03-modify_route_URL.yaml │ │ │ ├── 04-disable_route.yaml │ │ │ └── 04-errors.yaml │ │ ├── 1-043_validate_log_level_format │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-change-loglevel.yaml │ │ │ └── 03-check-loglevel.yaml │ │ ├── 1-044_validate_resource_limit_changes │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-change-limits.yaml │ │ │ └── 04-check-workloads.yaml │ │ ├── 1-045_validate_repo_exec_timeout │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-change-exec-timeout.yaml │ │ │ └── 04-check-workload-env.yaml │ │ ├── 1-047_validate_custom_env │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-change-env-vars.yaml │ │ │ └── 03-check-workloads.yaml │ │ ├── 1-048_validate_controller_sharding │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-change-sharding.yaml │ │ │ ├── 03-check-env.yaml │ │ │ ├── 04-change-sharding.yaml │ │ │ ├── 04-errors.yaml │ │ │ └── 05-check-env.yaml │ │ ├── 1-049_validate_parallelism_limit │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-check-deployment.yaml │ │ │ ├── 03-change-limit.yaml │ │ │ ├── 04-check-deployment.yaml │ │ │ ├── 05-change-back-to-default.yaml │ │ │ └── 06-check-deployment.yaml │ │ ├── 1-051-validate_csv_permissions │ │ │ └── 01-validate.yaml │ │ ├── 1-052_validate_rolebinding_number │ │ │ ├── 01-label_namespace.yaml │ │ │ └── 02-check_rolebindings.yaml │ │ ├── 1-053_validate_cluster_admin_rbac │ │ │ ├── 01-assert.yaml │ │ │ └── 02-assert.yaml │ │ ├── 1-054_validate_deploymentconfig │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-install-deploymentconfig.yaml │ │ │ ├── 03-assert.yaml │ │ │ ├── 04-assert.yaml │ │ │ └── 04-scaledown-deploymentconfig.yaml │ │ ├── 1-055_validate_notification_controller │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-errors.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-enable_notification.yaml │ │ │ ├── 03-disable_notification.yaml │ │ │ ├── 04-check.yaml │ │ │ └── errors.yaml │ │ ├── 1-057_validate_notifications │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-update-notifications-cm.yaml │ │ │ ├── 03-create-app.yaml │ │ │ ├── 04-assert.yaml │ │ │ ├── 04-delete-app.yaml │ │ │ └── 05-verify-email.yaml │ │ ├── 1-058_validate_prometheus_rule │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-wait.yaml │ │ │ ├── 03-assert.yaml │ │ │ └── 03-create_application.yaml │ │ ├── 1-061_validate_resource_tracking_method │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-patch_cm_annotation.yaml │ │ │ ├── 03-assert.yaml │ │ │ ├── 03-patch_cm_annotation_label.yaml │ │ │ ├── 04-assert.yaml │ │ │ └── 04-patch_cm_invalid_method.yaml │ │ ├── 1-062_validate_extra_config │ │ │ ├── 01-argocd-with-extraconfig.yaml │ │ │ ├── 01-assert.yaml │ │ │ ├── 02-argocd-with-firstclass-and-extraconfig copy.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 03-assert.yaml │ │ │ ├── 03-update-configmap.yaml │ │ │ ├── 04-assert.yaml │ │ │ ├── 04-create-dex-without-extraconfig.yaml │ │ │ ├── 05-assert.yaml │ │ │ └── 05-override-dex-using-extraconfig.yaml │ │ ├── 1-063_validate_dex_liveness_probe │ │ │ └── 01-assert.yaml │ │ ├── 1-063_validate_statefulset_restart │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-change_to_invalid_image.yaml │ │ │ └── 03-check_image_after_change.yaml │ │ ├── 1-064_validate_security_contexts │ │ │ ├── 01-assert.yaml │ │ │ └── 01-install.yaml │ │ ├── 1-065_validate_redis_ha_anti_affinity │ │ │ ├── 01-install.yaml │ │ │ └── 02-assert.yaml │ │ ├── 1-066_validate_redis_secure_comm_no_autotls_no_ha │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-generate_cert.yaml │ │ │ ├── 03-assert.yaml │ │ │ ├── 03-create_secret.yaml │ │ │ ├── 04-assert.yaml │ │ │ ├── 04-create_annotation.yaml │ │ │ ├── 05-check_deployments.yaml │ │ │ └── 06-check_statefulset.yaml │ │ ├── 1-067_validate_redis_secure_comm_no_autotls_ha │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-generate_cert.yaml │ │ │ ├── 03-create_secret.yaml │ │ │ ├── 04-assert.yaml │ │ │ ├── 04-create_annotation.yaml │ │ │ ├── 05-check_redis_config.yaml │ │ │ ├── 06-check_deployments.yaml │ │ │ └── 07-check_statefulset.yaml │ │ ├── 1-068_validate_redis_secure_comm_autotls_no_ha │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-enable_autotls.yaml │ │ │ ├── 03-check_secret.yaml │ │ │ ├── 04-assert.yaml │ │ │ └── 05-check_crt_files.yaml │ │ ├── 1-069_validate_redis_secure_comm_autotls_ha │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-enable_autotls.yaml │ │ │ └── 03-check_secret.yaml │ │ ├── 1-070_validate_config_management_plugin │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-create-app.yaml │ │ │ └── 99-delete.yaml │ │ ├── 1-071_validate_SCC_HA │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-create-scc.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-create-argocd.yaml │ │ │ ├── 03-assert.yaml │ │ │ ├── 03-modify-argocd.yaml │ │ │ └── 99-delete.yaml │ │ ├── 1-072_validate_liveness_probe_removed │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ └── 02-check_liveness_probe_removed.yaml │ │ ├── 1-073_validate_rhsso │ │ │ ├── 01-argocd-rhsso.yaml │ │ │ ├── 01-assert.yaml │ │ │ ├── 02-sleep.yaml │ │ │ ├── 03-verify-oidc.yaml │ │ │ ├── 04-verifyRealmCreation.yaml │ │ │ └── 99-delete.yaml │ │ ├── 1-074_validate_terminating_namespace_block │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-managed-ns-cm.yaml │ │ │ ├── 03-delete-ns.yaml │ │ │ ├── 04-assert.yaml │ │ │ ├── 04-create-ns.yaml │ │ │ └── 99-cleanup.yaml │ │ ├── 1-075_validate_dex_anyuid │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-change_dex_scc_to_anyuid.yaml │ │ │ ├── 03-assert.yaml │ │ │ └── 03-restart_dex_pod.yaml │ │ ├── 1-077_validate_disable_dex_removed │ │ │ └── 01-check_disable_dex_removed.yaml │ │ ├── 1-079_validate_vars_for_notificaitons │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ └── 02-modify-argocd.yaml │ │ ├── 1-080_validate_regex_support_argocd_rbac │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-modify-argocd.yaml │ │ │ ├── 03-errors.yaml │ │ │ ├── 03-try-modify.yaml │ │ │ ├── 04-assert.yaml │ │ │ └── 04-modify-argocd.yaml │ │ ├── 1-081_validate_applicationset_deployment │ │ │ └── 01-assert.yaml │ │ ├── 1-082_validate_node_placement │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-default-node-selector.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-custom-node-placement.yaml │ │ │ ├── 03-assert.yaml │ │ │ └── 03-node-placement-with-toleration.yaml │ │ ├── 1-083_validate_kustomize_namereference │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-install-kustomize-app.yaml │ │ │ └── 99-delete.yaml │ │ ├── 1-083_validate_resource_customization_subkeys │ │ │ ├── 01-argocd-with-resource-customization-subkeys.yaml │ │ │ └── 01-assert.yaml │ │ ├── 1-084_validate_status_host_ingress │ │ │ ├── 01-argocd-ingress.yaml │ │ │ ├── 01-assert.yaml │ │ │ └── 02-assert.yaml │ │ ├── 1-087_validate_repo_server_settings │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-modify-argocd.yaml │ │ │ ├── 04-assert.yaml │ │ │ ├── 04-modify-serviceaccount.yaml │ │ │ ├── 05-assert.yaml │ │ │ └── 05-reset-repo-settings.yaml │ │ ├── 1-090_validate_permissions │ │ │ ├── 01-assert.yaml │ │ │ └── 02-assert.yaml │ │ ├── 1-095_validate_dex_clientsecret │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-check-clientSecret-cm.yaml │ │ │ └── 03-verify-clientsecret-secret.yaml │ │ ├── 1-098_validate_dex_clientsecret │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ └── 02-verify-clientsecret.yaml │ │ ├── 1-099_validate_server_autoscale │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-enable-server-autoscale.yaml │ │ │ ├── 03-check-server-replicas.yaml │ │ │ ├── 04-assert.yaml │ │ │ └── 04-update-hpa.yaml │ │ ├── 1-100_validate_rollouts_resources_creation │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install-rolloutmanager.yaml │ │ │ └── 02-assert.yaml │ │ ├── 1-101_validate_rollout_policyrules │ │ │ ├── 01-assert.yaml │ │ │ └── 01-install-rollloutmanager.yaml │ │ ├── 1-102_validate_handle_terminating_namespaces │ │ │ ├── 01-assert.yaml │ │ │ ├── 01-install.yaml │ │ │ ├── 02-assert.yaml │ │ │ ├── 02-install.yaml │ │ │ ├── 03-delete-ns.yaml │ │ │ ├── 04-assert.yaml │ │ │ ├── 04-create-ns.yaml │ │ │ ├── 05-assert.yaml │ │ │ ├── 05-create-app.yaml │ │ │ └── 99-delete.yaml │ │ ├── 1-103_argocd_alpha_to_beta_conversion │ │ │ ├── 01-alpha_argocd.yaml │ │ │ ├── 01-assert.yaml │ │ │ ├── 02-delete.yaml │ │ │ └── 02-errors.yaml │ │ ├── 1-104_validate_applicationset_tls_scm_volume_mount │ │ │ ├── 01-assert.yaml │ │ │ └── 01-install.yaml │ │ └── kuttl-test.yaml │ └── sequential │ │ ├── 1-001_validate_kam_service │ │ ├── 01-assert.yaml │ │ ├── 01-check-kam-service.yaml │ │ ├── 02-check-route.yaml │ │ └── 03-check-download.yaml │ │ ├── 1-002_validate_backend_service │ │ ├── 01-assert.yaml │ │ └── 01-check-backend-service.yaml │ │ ├── 1-004_validate_argocd_installation │ │ ├── 01-assert.yaml │ │ ├── 01-check-prereqs.yaml │ │ ├── 02-change-operand.yaml │ │ ├── 03-wait.yaml │ │ └── 04-assert.yaml │ │ ├── 1-005_validate_metrics │ │ └── 01-assert.yaml │ │ ├── 1-006_validate_machine_config │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-install.yaml │ │ ├── 03-assert.yaml │ │ ├── 03-install.yaml │ │ └── 99-delete.yaml │ │ ├── 1-008_validate-4.9CI-Failures │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-create-rbac.yaml │ │ ├── 03-assert.yaml │ │ └── 03-create-app.yaml │ │ ├── 1-010_validate-ootb-manage-other-namespace │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 03-assert.yaml │ │ ├── 03-create-application.yaml │ │ ├── 04-unlabel-namespace.yaml │ │ ├── 05-check-rbac.yaml │ │ ├── 99-delete.yaml │ │ ├── README.md │ │ └── errors.yaml │ │ ├── 1-018_validate_disable_default_instance │ │ ├── 01-assert.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-patch-subscription.yaml │ │ ├── 03-errors.yaml │ │ ├── 04-assert.yaml │ │ └── 04-patch-subscription.yaml │ │ ├── 1-026-validate_backend_service_permissions │ │ ├── 01-assert.yaml │ │ └── 01-check-backend-service.yaml │ │ ├── 1-027_validate_operand_from_git │ │ ├── 01-assert.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-install.yaml │ │ ├── 03-assert.yaml │ │ ├── 03-create-app.yaml │ │ └── 99-delete.yaml │ │ ├── 1-028_validate_run_on_infra │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-custom-argocd.yaml │ │ ├── 02-errors.yaml │ │ ├── 03-change-back.yaml │ │ ├── 04-check.yaml │ │ └── errors.yaml │ │ ├── 1-034_validate_custom_roles │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-patch-subscription.yaml │ │ ├── 03-errors.yaml │ │ ├── 04-assert.yaml │ │ ├── 05-delete.yaml │ │ └── 06-revert-patch.yaml │ │ ├── 1-035_validate_argocd_secret_repopulate │ │ ├── 01-assert.yaml │ │ ├── 02-remove_secret_data.yaml │ │ ├── 03-check_secret_repopulate.yaml │ │ ├── 04-check_controller_pod_status.yaml │ │ └── 05-argocd_login.yaml │ │ ├── 1-040_validate_quoted_RBAC_group_names │ │ ├── 01-login_argocd_api_server.yaml │ │ ├── 02-create_role.yaml │ │ └── 03-specify_group_names.yaml │ │ ├── 1-041_validate_argocd_sync_alert │ │ └── 01-assert.yaml │ │ ├── 1-050_validate_sso │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-errors.yaml │ │ ├── 02-remove-spec-sso.yaml │ │ ├── 07-assert.yaml │ │ ├── 07-errors.yaml │ │ ├── 07-provider-keycloak-dex-spec.yaml │ │ ├── 08-assert.yaml │ │ └── 08-remove-spec-dex.yaml │ │ ├── 1-056_validate_managed-by │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-delete.yaml │ │ ├── 03-check.yaml │ │ ├── 04-add_env.yaml │ │ ├── 05-check.yaml │ │ ├── 06-assert.yaml │ │ ├── 06-install.yaml │ │ ├── 07-delete.yaml │ │ ├── 07-errors.yaml │ │ ├── 08-remove_env.yaml │ │ └── 99-delete.yaml │ │ ├── 1-064_validate_tcp_reset_error │ │ ├── 01-assert.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-install.yaml │ │ ├── 03-wait.yaml │ │ ├── 04-assert.yaml │ │ ├── 04-create-app.yaml │ │ ├── 05-check-app-manifest.yaml │ │ └── 99-delete.yaml │ │ ├── 1-071_validate_node_selectors │ │ ├── 01-assert.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-custom-node-selector.yaml │ │ ├── 03-assert.yaml │ │ ├── 03-patch-run-on-infra.yaml │ │ ├── 04-change-back.yaml │ │ └── 04-errors.yaml │ │ ├── 1-077_validate_workload_status_monitoring_alert │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ └── 02-verify-alert.yaml │ │ ├── 1-078_validate_default_argocd_consoleLink │ │ ├── 01-assert.yaml │ │ ├── 02-add_env.yaml │ │ ├── 02-errors.yaml │ │ ├── 03-check-env.yaml │ │ ├── 04-assert.yaml │ │ ├── 04-disable-env.yaml │ │ ├── 05-check-env.yaml │ │ ├── 06-assert.yaml │ │ ├── 06-empty-valued-env.yaml │ │ ├── 07-check-env.yaml │ │ ├── 08-assert.yaml │ │ └── 08-remove-env.yaml │ │ ├── 1-083_validate_apps_in_any_namespace │ │ ├── 01-assert.yaml │ │ ├── 01-create-ns-managed-by.yaml │ │ ├── 02-add-source-ns.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-errors.yaml │ │ ├── 03-delete.yaml │ │ ├── 04-assert.yaml │ │ ├── 04-change-source-namespaces.yaml │ │ ├── 04-errors.yaml │ │ ├── 05-assert.yaml │ │ ├── 05-create-ns-and-add-source-ns.yaml │ │ ├── 06-add-managed-by.yaml │ │ ├── 06-assert.yaml │ │ ├── 06-errors.yaml │ │ ├── 07-assert.yaml │ │ ├── 07-remove-managed-by.yaml │ │ ├── 08-assert.yaml │ │ ├── 08-change-source-namespaces.yaml │ │ ├── 08-errors.yaml │ │ ├── 99-delete.yaml │ │ ├── 99-errors.yaml │ │ └── errors.yaml │ │ ├── 1-084_validate_prune_templates │ │ ├── 01-assert.yaml │ │ ├── 01-create-ns-managed-by.yaml │ │ ├── 02-prune-duplicateGVK-resource.yaml │ │ ├── 03-errors.yaml │ │ └── 04-delete.yaml │ │ ├── 1-085_validate_dynamic_plugin_installation │ │ ├── 01-install-dynamic-plugin.yaml │ │ └── 02-assert.yaml │ │ ├── 1-086_validate_default_argocd_role │ │ ├── 01-assert.yaml │ │ ├── 02-assert.yaml │ │ └── 02-install.yaml │ │ ├── 1-105_validate_label_selector │ │ ├── 01-add-label-selector.yaml │ │ ├── 02-errors.yaml │ │ ├── 02-install.yaml │ │ ├── 03-add-label.yaml │ │ ├── 03-assert.yaml │ │ ├── 04-assert.yaml │ │ ├── 04-install.yaml │ │ ├── 05-remove-label.yaml │ │ ├── 06-assert.yaml │ │ ├── 06-errors.yaml │ │ ├── 06-install.yaml │ │ └── 07-remove-label-selector.yaml │ │ └── kuttl-test.yaml │ ├── parallel │ ├── 1-003_validate_console_link │ │ ├── 01-assert.yaml │ │ └── 01-check-console-link.yaml │ ├── 1-007_validate_namespace_scoped_install │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ └── 02-check-cluster-secret.yaml │ ├── 1-008_validate-custom-argocd-namespace │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-wait.yaml │ │ ├── 03-assert.yaml │ │ ├── 03-create-app.yaml │ │ └── 99-delete.yaml │ ├── 1-012_validate-managed-by-chain │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-label-namespace.yaml │ │ ├── 03-check-secret.yaml │ │ ├── 04-assert.yaml │ │ ├── 04-create-application.yaml │ │ ├── 07-assert.yaml │ │ ├── 07-label-namespace.yaml │ │ ├── 08-assert.yaml │ │ ├── 08-create-application.yaml │ │ ├── 09-delete-app-and-namespace.yaml │ │ ├── 10-check-secret.yaml │ │ ├── 11-assert.yaml │ │ ├── 11-recreate-applications.yaml │ │ └── 99-delete.yaml │ ├── 1-019_validate_volume_mounts │ │ ├── 01-assert.yaml │ │ └── 01-install.yaml │ ├── 1-021_validate_rolebindings │ │ ├── 01-assert.yaml │ │ └── 01-install.yaml │ ├── 1-023_validate_repo_server_tls │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-change-argocd.yaml │ │ ├── 03-check-workloads.yaml │ │ ├── 04-assert.yaml │ │ ├── 04-install-app.yaml │ │ └── 99-delete.yaml │ ├── 1-025-validate-managed-by-change │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-install-app.yaml │ │ ├── 02-wait.yaml │ │ ├── 03-assert.yaml │ │ ├── 03-update-namespace.yaml │ │ └── 99-delete.yaml │ ├── 1-029_validate_tls_secret_no_scale │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-create-tls-secret.yaml │ │ ├── 03-assert.yaml │ │ └── 03-sleep-and-recheck.yaml │ ├── 1-030_validate_reencrypt │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-wait.yaml │ │ └── 03-check-route.yaml │ ├── 1-031_validate_toolchain │ │ └── 01-check.yaml │ ├── 1-032_validate_resource_inclusions │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-add_resource_inclusions.yaml │ │ └── 02-assert.yaml │ ├── 1-033_validate_resource_exclusions │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-add_resource_exclusions.yaml │ │ └── 02-assert.yaml │ ├── 1-036_validate_keycloak_resource_reqs │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-update-sso-keycloak-provider.yaml │ │ └── 03-check-resources.yaml │ ├── 1-037_validate_argocd_setting_replicas │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-scale_out_server.yaml │ │ ├── 03-scale_out_repo.yaml │ │ ├── 04-assert.yaml │ │ ├── 05-scale_in_server.yaml │ │ ├── 06-scale_in_repo.yaml │ │ └── 07-assert.yaml │ ├── 1-038_validate_productized_images │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ └── 02-check-images.yaml │ ├── 1-039_validate_fix_argocd-tls-certs-cm │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-modify_configmap.yaml │ │ ├── 03-modify_argocd_cr.yaml │ │ └── 04-errors.yaml │ ├── 1-042_validate_status_host │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-check_URL.yaml │ │ ├── 03-assert.yaml │ │ ├── 03-modify_route_URL.yaml │ │ ├── 04-disable_route.yaml │ │ └── 04-errors.yaml │ ├── 1-043_validate_log_level_format │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-change-loglevel.yaml │ │ └── 03-check-loglevel.yaml │ ├── 1-044_validate_resource_limit_changes │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-change-limits.yaml │ │ └── 04-check-workloads.yaml │ ├── 1-045_validate_repo_exec_timeout │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-change-exec-timeout.yaml │ │ └── 04-check-workload-env.yaml │ ├── 1-047_validate_custom_env │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-change-env-vars.yaml │ │ └── 03-check-workloads.yaml │ ├── 1-048_validate_controller_sharding │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-change-sharding.yaml │ │ ├── 03-check-env.yaml │ │ ├── 04-change-sharding.yaml │ │ ├── 04-errors.yaml │ │ └── 05-check-env.yaml │ ├── 1-049_validate_parallelism_limit │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-check-deployment.yaml │ │ ├── 03-change-limit.yaml │ │ ├── 04-check-deployment.yaml │ │ ├── 05-change-back-to-default.yaml │ │ └── 06-check-deployment.yaml │ ├── 1-051-validate_csv_permissions │ │ └── 01-validate.yaml │ ├── 1-052_validate_rolebinding_number │ │ ├── 01-label_namespace.yaml │ │ └── 02-check_rolebindings.yaml │ ├── 1-053_validate_cluster_admin_rbac │ │ ├── 01-assert.yaml │ │ └── 02-assert.yaml │ ├── 1-054_validate_deploymentconfig │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-install-deploymentconfig.yaml │ │ ├── 03-assert.yaml │ │ ├── 04-assert.yaml │ │ └── 04-scaledown-deploymentconfig.yaml │ ├── 1-057_validate_notifications │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-update-notifications-cm.yaml │ │ ├── 03-create-app.yaml │ │ ├── 04-assert.yaml │ │ ├── 04-delete-app.yaml │ │ └── 05-verify-email.yaml │ ├── 1-058_validate_prometheus_rule │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-wait.yaml │ │ ├── 03-assert.yaml │ │ └── 03-create_application.yaml │ ├── 1-061_validate_resource_tracking_method │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-patch_cm_annotation.yaml │ │ ├── 03-assert.yaml │ │ ├── 03-patch_cm_annotation_label.yaml │ │ ├── 04-assert.yaml │ │ └── 04-patch_cm_invalid_method.yaml │ ├── 1-062_validate_extra_config │ │ ├── 01-argocd-with-extraconfig.yaml │ │ ├── 01-assert.yaml │ │ ├── 02-argocd-with-firstclass-and-extraconfig copy.yaml │ │ ├── 02-assert.yaml │ │ ├── 03-assert.yaml │ │ ├── 03-update-configmap.yaml │ │ ├── 04-assert.yaml │ │ ├── 04-create-dex-without-extraconfig.yaml │ │ ├── 05-assert.yaml │ │ └── 05-override-dex-using-extraconfig.yaml │ ├── 1-063_validate_dex_liveness_probe │ │ └── 01-assert.yaml │ ├── 1-063_validate_statefulset_restart │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-change_to_invalid_image.yaml │ │ └── 03-check_image_after_change.yaml │ ├── 1-064_validate_security_contexts │ │ ├── 01-assert.yaml │ │ └── 01-install.yaml │ ├── 1-065_validate_redis_ha_anti_affinity │ │ ├── 01-install.yaml │ │ └── 02-assert.yaml │ ├── 1-066_validate_redis_secure_comm_no_autotls_no_ha │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-generate_cert.yaml │ │ ├── 03-assert.yaml │ │ ├── 03-create_secret.yaml │ │ ├── 04-assert.yaml │ │ ├── 04-create_annotation.yaml │ │ ├── 05-check_deployments.yaml │ │ └── 06-check_statefulset.yaml │ ├── 1-067_validate_redis_secure_comm_no_autotls_ha │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-generate_cert.yaml │ │ ├── 03-create_secret.yaml │ │ ├── 04-assert.yaml │ │ ├── 04-create_annotation.yaml │ │ ├── 05-check_redis_config.yaml │ │ ├── 06-check_deployments.yaml │ │ └── 07-check_statefulset.yaml │ ├── 1-069_validate_redis_secure_comm_autotls_ha │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-enable_autotls.yaml │ │ └── 03-check_secret.yaml │ ├── 1-070_validate_config_management_plugin │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-create-app.yaml │ │ └── 99-delete.yaml │ ├── 1-071_validate_SCC_HA │ │ ├── 01-assert.yaml │ │ ├── 01-create-scc.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-create-argocd.yaml │ │ ├── 03-assert.yaml │ │ ├── 03-modify-argocd.yaml │ │ └── 99-delete.yaml │ ├── 1-072_validate_liveness_probe_removed │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ └── 02-check_liveness_probe_removed.yaml │ ├── 1-073_validate_rhsso │ │ ├── 01-argocd-rhsso.yaml │ │ ├── 01-assert.yaml │ │ ├── 02-sleep.yaml │ │ ├── 03-verify-oidc.yaml │ │ ├── 04-verifyRealmCreation.yaml │ │ └── 99-delete.yaml │ ├── 1-074_validate_terminating_namespace_block │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-managed-ns-cm.yaml │ │ ├── 03-delete-ns.yaml │ │ ├── 04-assert.yaml │ │ ├── 04-create-ns.yaml │ │ └── 99-cleanup.yaml │ ├── 1-075_validate_dex_anyuid │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-change_dex_scc_to_anyuid.yaml │ │ ├── 03-assert.yaml │ │ └── 03-restart_dex_pod.yaml │ ├── 1-077_validate_disable_dex_removed │ │ └── 01-check_disable_dex_removed.yaml │ ├── 1-079_validate_vars_for_notificaitons │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ └── 02-modify-argocd.yaml │ ├── 1-080_validate_regex_support_argocd_rbac │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-modify-argocd.yaml │ │ ├── 03-errors.yaml │ │ ├── 03-try-modify.yaml │ │ ├── 04-assert.yaml │ │ └── 04-modify-argocd.yaml │ ├── 1-081_validate_applicationset_deployment │ │ └── 01-assert.yaml │ ├── 1-082_validate_node_placement │ │ ├── 01-assert.yaml │ │ ├── 01-default-node-selector.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-custom-node-placement.yaml │ │ ├── 03-assert.yaml │ │ └── 03-node-placement-with-toleration.yaml │ ├── 1-083_validate_kustomize_namereference │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-install-kustomize-app.yaml │ │ └── 99-delete.yaml │ ├── 1-083_validate_resource_customization_subkeys │ │ ├── 01-argocd-with-resource-customization-subkeys.yaml │ │ └── 01-assert.yaml │ ├── 1-084_validate_status_host_ingress │ │ ├── 01-argocd-ingress.yaml │ │ ├── 01-assert.yaml │ │ └── 02-assert.yaml │ ├── 1-087_validate_repo_server_settings │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-modify-argocd.yaml │ │ ├── 04-assert.yaml │ │ ├── 04-modify-serviceaccount.yaml │ │ ├── 05-assert.yaml │ │ └── 05-reset-repo-settings.yaml │ ├── 1-095_validate_dex_clientsecret │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-check-clientSecret-cm.yaml │ │ └── 03-verify-clientsecret-secret.yaml │ ├── 1-098_validate_dex_clientsecret │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ └── 02-verify-clientsecret.yaml │ ├── 1-099_validate_server_autoscale │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-enable-server-autoscale.yaml │ │ ├── 03-check-server-replicas.yaml │ │ ├── 04-assert.yaml │ │ └── 04-update-hpa.yaml │ ├── 1-102_validate_handle_terminating_namespaces │ │ ├── 01-assert.yaml │ │ ├── 01-install.yaml │ │ ├── 02-assert.yaml │ │ ├── 02-install.yaml │ │ ├── 03-delete-ns.yaml │ │ ├── 04-assert.yaml │ │ ├── 04-create-ns.yaml │ │ ├── 05-assert.yaml │ │ ├── 05-create-app.yaml │ │ └── 99-delete.yaml │ ├── 1-103_argocd_alpha_to_beta_conversion │ │ ├── 01-alpha_argocd.yaml │ │ ├── 01-assert.yaml │ │ ├── 02-delete.yaml │ │ └── 02-errors.yaml │ ├── 1-104_validate_applicationset_tls_scm_volume_mount │ │ ├── 01-assert.yaml │ │ └── 01-install.yaml │ └── kuttl-test.yaml │ └── sequential │ ├── 1-001_validate_kam_service │ ├── 01-assert.yaml │ ├── 01-check-kam-service.yaml │ ├── 02-check-route.yaml │ └── 03-check-download.yaml │ ├── 1-002_validate_backend_service │ ├── 01-assert.yaml │ └── 01-check-backend-service.yaml │ ├── 1-008_validate-4.9CI-Failures │ ├── 01-assert.yaml │ ├── 01-install.yaml │ ├── 02-assert.yaml │ ├── 02-create-rbac.yaml │ ├── 03-assert.yaml │ └── 03-create-app.yaml │ ├── 1-020_validate_redis_ha_nonha │ ├── 01-assert.yaml │ ├── 01-errors.yaml │ ├── 02-assert.yaml │ ├── 02-enable-ha.yaml │ ├── 02-errors.yaml │ ├── 03-assert.yaml │ ├── 03-update-ha-resources.yaml │ ├── 04-assert.yaml │ ├── 04-disable-ha.yaml │ └── 04-errors.yaml │ ├── 1-026-validate_backend_service_permissions │ ├── 01-assert.yaml │ └── 01-check-backend-service.yaml │ ├── 1-028_validate_run_on_infra │ ├── 01-assert.yaml │ ├── 01-install.yaml │ ├── 02-assert.yaml │ ├── 02-custom-argocd.yaml │ ├── 02-errors.yaml │ ├── 03-change-back.yaml │ ├── 04-check.yaml │ └── errors.yaml │ ├── 1-034_validate_custom_roles │ ├── 01-assert.yaml │ ├── 01-install.yaml │ ├── 02-patch-subscription.yaml │ ├── 03-errors.yaml │ ├── 04-assert.yaml │ ├── 05-delete.yaml │ └── 06-revert-patch.yaml │ ├── 1-035_validate_argocd_secret_repopulate │ ├── 01-assert.yaml │ ├── 02-remove_secret_data.yaml │ ├── 03-check_secret_repopulate.yaml │ ├── 04-check_controller_pod_status.yaml │ └── 05-argocd_login.yaml │ ├── 1-040_validate_quoted_RBAC_group_names │ ├── 01-login_argocd_api_server.yaml │ ├── 02-create_role.yaml │ └── 03-specify_group_names.yaml │ ├── 1-041_validate_argocd_sync_alert │ └── 01-assert.yaml │ ├── 1-050_validate_sso │ ├── 01-assert.yaml │ ├── 01-install.yaml │ ├── 02-assert.yaml │ ├── 02-errors.yaml │ ├── 02-remove-spec-sso.yaml │ ├── 07-assert.yaml │ ├── 07-errors.yaml │ ├── 07-provider-keycloak-dex-spec.yaml │ ├── 08-assert.yaml │ └── 08-remove-spec-dex.yaml │ ├── 1-056_validate_managed-by │ ├── 01-assert.yaml │ ├── 01-install.yaml │ ├── 02-delete.yaml │ ├── 03-check.yaml │ ├── 04-add_env.yaml │ ├── 05-check.yaml │ ├── 06-assert.yaml │ ├── 06-install.yaml │ ├── 07-delete.yaml │ ├── 07-errors.yaml │ ├── 08-remove_env.yaml │ └── 99-delete.yaml │ ├── 1-071_validate_node_selectors │ ├── 01-assert.yaml │ ├── 02-assert.yaml │ ├── 02-custom-node-selector.yaml │ ├── 03-assert.yaml │ ├── 03-patch-run-on-infra.yaml │ ├── 04-change-back.yaml │ └── 04-errors.yaml │ ├── 1-077_validate_workload_status_monitoring_alert │ ├── 01-assert.yaml │ ├── 01-install.yaml │ └── 02-verify-alert.yaml │ ├── 1-078_validate_default_argocd_consoleLink │ ├── 01-assert.yaml │ ├── 02-add_env.yaml │ ├── 02-errors.yaml │ ├── 03-check-env.yaml │ ├── 04-assert.yaml │ ├── 04-disable-env.yaml │ ├── 05-check-env.yaml │ ├── 06-assert.yaml │ ├── 06-empty-valued-env.yaml │ ├── 07-check-env.yaml │ ├── 08-assert.yaml │ └── 08-remove-env.yaml │ ├── 1-084_validate_prune_templates │ ├── 01-assert.yaml │ ├── 01-create-ns-managed-by.yaml │ ├── 02-prune-duplicateGVK-resource.yaml │ ├── 03-errors.yaml │ └── 04-delete.yaml │ ├── 1-085_validate_dynamic_plugin_installation │ ├── 01-install-dynamic-plugin.yaml │ └── 02-assert.yaml │ ├── 1-086_validate_default_argocd_role │ ├── 01-assert.yaml │ ├── 02-assert.yaml │ └── 02-install.yaml │ ├── 1-100_validate_rollouts_resources_creation │ ├── 01-assert.yaml │ ├── 01-install-rolloutmanager.yaml │ └── 02-assert.yaml │ ├── 1-101_validate_rollout_policyrules │ ├── 01-assert.yaml │ └── 01-install-rollloutmanager.yaml │ ├── 1-105_validate_label_selector │ ├── 01-add-label-selector.yaml │ ├── 02-errors.yaml │ ├── 02-install.yaml │ ├── 03-add-label.yaml │ ├── 03-assert.yaml │ ├── 04-assert.yaml │ ├── 04-install.yaml │ ├── 05-remove-label.yaml │ ├── 06-assert.yaml │ ├── 06-errors.yaml │ ├── 06-install.yaml │ └── 07-remove-label-selector.yaml │ └── kuttl-test.yaml └── version └── version.go /.ci-operator.yaml: -------------------------------------------------------------------------------- 1 | build_root_image: 2 | name: release 3 | namespace: openshift 4 | tag: golang-1.21 -------------------------------------------------------------------------------- /.dockerignore: -------------------------------------------------------------------------------- 1 | # More info: https://docs.docker.com/engine/reference/builder/#dockerignore-file 2 | # Ignore all files which are not go type 3 | !**/*.go 4 | !**/*.mod 5 | !**/*.sum 6 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Certificate of Origin 2 | 3 | By contributing to this project you agree to the Developer Certificate of 4 | Origin (DCO). This document was created by the Linux Kernel community and is a 5 | simple statement that you, as a contributor, have the legal right to make the 6 | contribution. Please read the [DCO text here](https://developercertificate.org/) for details. 7 | -------------------------------------------------------------------------------- /build/redis/redis_liveness.sh.tpl: -------------------------------------------------------------------------------- 1 | response=$( 2 | redis-cli \ 3 | -h localhost \ 4 | -p 6379 \ 5 | {{- if eq .UseTLS "true"}} 6 | --tls \ 7 | --cacert /app/config/redis/tls/tls.crt \ 8 | {{- end}} 9 | ping 10 | ) 11 | if [ "$response" != "PONG" ] && [ "${response:0:7}" != "LOADING" ] ; then 12 | echo "$response" 13 | exit 1 14 | fi 15 | echo "response=$response" 16 | -------------------------------------------------------------------------------- /build/redis/redis_readiness.sh.tpl: -------------------------------------------------------------------------------- 1 | response=$( 2 | redis-cli \ 3 | -h localhost \ 4 | -p 6379 \ 5 | {{- if eq .UseTLS "true"}} 6 | --tls \ 7 | --cacert /app/config/redis/tls/tls.crt \ 8 | {{- end}} 9 | ping 10 | ) 11 | if [ "$response" != "PONG" ] ; then 12 | echo "$response" 13 | exit 1 14 | fi 15 | echo "response=$response" 16 | -------------------------------------------------------------------------------- /build/redis/sentinel_liveness.sh.tpl: -------------------------------------------------------------------------------- 1 | response=$( 2 | redis-cli \ 3 | -h localhost \ 4 | -p 26379 \ 5 | {{- if eq .UseTLS "true"}} 6 | --tls \ 7 | --cacert /app/config/redis/tls/tls.crt \ 8 | {{- end}} 9 | ping 10 | ) 11 | if [ "$response" != "PONG" ]; then 12 | echo "$response" 13 | exit 1 14 | fi 15 | echo "response=$response" 16 | -------------------------------------------------------------------------------- /bundle/manifests/openshift-gitops-operator-prometheus_rbac.authorization.k8s.io_v1_role.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: Role 3 | metadata: 4 | creationTimestamp: null 5 | name: openshift-gitops-operator-prometheus 6 | rules: 7 | - apiGroups: 8 | - "" 9 | resources: 10 | - services 11 | - endpoints 12 | - pods 13 | verbs: 14 | - get 15 | - list 16 | - watch 17 | -------------------------------------------------------------------------------- /bundle/manifests/openshift-gitops-operator-webhook-service_v1_service.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | creationTimestamp: null 5 | name: openshift-gitops-operator-webhook-service 6 | spec: 7 | ports: 8 | - port: 443 9 | protocol: TCP 10 | targetPort: 9443 11 | selector: 12 | control-plane: gitops-operator 13 | status: 14 | loadBalancer: {} 15 | -------------------------------------------------------------------------------- /config/crd/patches/cainjection_in_argocds.yaml: -------------------------------------------------------------------------------- 1 | # The following patch adds a directive for openshift service ca operator to inject CA into the CRD 2 | apiVersion: apiextensions.k8s.io/v1 3 | kind: CustomResourceDefinition 4 | metadata: 5 | annotations: 6 | service.beta.openshift.io/inject-cabundle: true 7 | name: argocds.argoproj.io 8 | -------------------------------------------------------------------------------- /config/crd/patches/cainjection_in_gitopsservices.yaml: -------------------------------------------------------------------------------- 1 | # The following patch adds a directive for certmanager to inject CA into the CRD 2 | apiVersion: apiextensions.k8s.io/v1 3 | kind: CustomResourceDefinition 4 | metadata: 5 | annotations: 6 | cert-manager.io/inject-ca-from: $(CERTIFICATE_NAMESPACE)/$(CERTIFICATE_NAME) 7 | name: gitopsservices.pipelines.openshift.io 8 | -------------------------------------------------------------------------------- /config/manager/controller_manager_config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: controller-runtime.sigs.k8s.io/v1alpha1 2 | kind: ControllerManagerConfig 3 | health: 4 | healthProbeBindAddress: :8081 5 | metrics: 6 | bindAddress: 127.0.0.1:8080 7 | webhook: 8 | port: 9443 9 | leaderElection: 10 | leaderElect: true 11 | resourceName: 2b63967d.openshift.io 12 | -------------------------------------------------------------------------------- /config/manager/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | - manager.yaml 3 | 4 | generatorOptions: 5 | disableNameSuffixHash: true 6 | 7 | configMapGenerator: 8 | - files: 9 | - controller_manager_config.yaml 10 | name: manager-config 11 | apiVersion: kustomize.config.k8s.io/v1beta1 12 | kind: Kustomization 13 | images: 14 | - name: controller 15 | newName: quay.io/redhat-developer/gitops-operator 16 | -------------------------------------------------------------------------------- /config/prometheus/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | - monitor.yaml 3 | - role.yaml 4 | - rolebinding.yaml 5 | -------------------------------------------------------------------------------- /config/prometheus/role.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: Role 3 | metadata: 4 | name: prometheus 5 | namespace: openshift-gitops-operator 6 | rules: 7 | - apiGroups: 8 | - "" 9 | resources: 10 | - services 11 | - endpoints 12 | - pods 13 | verbs: 14 | - get 15 | - list 16 | - watch -------------------------------------------------------------------------------- /config/prometheus/rolebinding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: RoleBinding 3 | metadata: 4 | name: prometheus 5 | namespace: openshift-gitops-operator 6 | roleRef: 7 | apiGroup: rbac.authorization.k8s.io 8 | kind: Role 9 | name: openshift-gitops-operator-prometheus 10 | subjects: 11 | - kind: ServiceAccount 12 | name: prometheus-k8s 13 | namespace: openshift-monitoring -------------------------------------------------------------------------------- /config/rbac/auth_proxy_client_clusterrole.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRole 3 | metadata: 4 | name: metrics-reader 5 | rules: 6 | - nonResourceURLs: 7 | - "/metrics" 8 | verbs: 9 | - get 10 | -------------------------------------------------------------------------------- /config/rbac/auth_proxy_role.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRole 3 | metadata: 4 | name: proxy-role 5 | rules: 6 | - apiGroups: 7 | - authentication.k8s.io 8 | resources: 9 | - tokenreviews 10 | verbs: 11 | - create 12 | - apiGroups: 13 | - authorization.k8s.io 14 | resources: 15 | - subjectaccessreviews 16 | verbs: 17 | - create 18 | -------------------------------------------------------------------------------- /config/rbac/auth_proxy_role_binding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: proxy-rolebinding 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: ClusterRole 8 | name: proxy-role 9 | subjects: 10 | - kind: ServiceAccount 11 | name: controller-manager 12 | namespace: system 13 | -------------------------------------------------------------------------------- /config/rbac/leader_election_role_binding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: RoleBinding 3 | metadata: 4 | name: leader-election-rolebinding 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: Role 8 | name: leader-election-role 9 | subjects: 10 | - kind: ServiceAccount 11 | name: controller-manager 12 | namespace: system 13 | -------------------------------------------------------------------------------- /config/rbac/notificationsconfiguration_viewer_role.yaml: -------------------------------------------------------------------------------- 1 | # permissions for end users to view argocdexports. 2 | apiVersion: rbac.authorization.k8s.io/v1 3 | kind: ClusterRole 4 | metadata: 5 | name: notificationsconfiguration-viewer-role 6 | rules: 7 | - apiGroups: 8 | - argoproj.io 9 | resources: 10 | - notificationsconfigurations 11 | verbs: 12 | - get 13 | - list 14 | - watch -------------------------------------------------------------------------------- /config/rbac/role_binding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: rbac.authorization.k8s.io/v1 2 | kind: ClusterRoleBinding 3 | metadata: 4 | name: manager-rolebinding 5 | roleRef: 6 | apiGroup: rbac.authorization.k8s.io 7 | kind: ClusterRole 8 | name: manager-role 9 | subjects: 10 | - kind: ServiceAccount 11 | name: controller-manager 12 | namespace: system 13 | -------------------------------------------------------------------------------- /config/rbac/service_account.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ServiceAccount 3 | metadata: 4 | name: controller-manager 5 | namespace: system 6 | -------------------------------------------------------------------------------- /config/samples/argoproj.io_v1alpha1_application.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: example 5 | spec: -------------------------------------------------------------------------------- /config/samples/argoproj.io_v1alpha1_applicationset.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ApplicationSet 3 | metadata: 4 | name: example 5 | spec: -------------------------------------------------------------------------------- /config/samples/argoproj.io_v1alpha1_appproject.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: AppProject 3 | metadata: 4 | name: example 5 | spec: -------------------------------------------------------------------------------- /config/samples/pipelines_v1alpha1_gitopsservice.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: pipelines.openshift.io/v1alpha1 2 | kind: GitopsService 3 | metadata: 4 | name: gitopsservice-sample 5 | spec: 6 | # Add fields here 7 | -------------------------------------------------------------------------------- /config/scorecard/bases/config.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: scorecard.operatorframework.io/v1alpha3 2 | kind: Configuration 3 | metadata: 4 | name: config 5 | stages: 6 | - parallel: true 7 | tests: [] 8 | -------------------------------------------------------------------------------- /config/scorecard/patches/basic.config.yaml: -------------------------------------------------------------------------------- 1 | - op: add 2 | path: /stages/0/tests/- 3 | value: 4 | entrypoint: 5 | - scorecard-test 6 | - basic-check-spec 7 | image: quay.io/operator-framework/scorecard-test:v1.8.0 8 | labels: 9 | suite: basic 10 | test: basic-check-spec-test 11 | -------------------------------------------------------------------------------- /config/webhook/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | #- manifests.yaml 3 | - service.yaml 4 | 5 | configurations: 6 | - kustomizeconfig.yaml 7 | -------------------------------------------------------------------------------- /config/webhook/service.yaml: -------------------------------------------------------------------------------- 1 | 2 | apiVersion: v1 3 | kind: Service 4 | metadata: 5 | name: webhook-service 6 | namespace: system 7 | annotations: 8 | service.beta.openshift.io/serving-cert-secret-name: webhook-server-cert 9 | spec: 10 | ports: 11 | - port: 443 12 | protocol: TCP 13 | targetPort: 9443 14 | selector: 15 | control-plane: gitops-operator 16 | -------------------------------------------------------------------------------- /controllers/argocd/img/argo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/controllers/argocd/img/argo.png -------------------------------------------------------------------------------- /docs/assets/1.operator_hub_searchbox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/1.operator_hub_searchbox.png -------------------------------------------------------------------------------- /docs/assets/10.login_via_keycloak.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/10.login_via_keycloak.png -------------------------------------------------------------------------------- /docs/assets/11.keycloak_login_with_openshift.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/11.keycloak_login_with_openshift.png -------------------------------------------------------------------------------- /docs/assets/12.login_page_openshift.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/12.login_page_openshift.png -------------------------------------------------------------------------------- /docs/assets/13.argocd_user_info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/13.argocd_user_info.png -------------------------------------------------------------------------------- /docs/assets/14.new_keycloak_instance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/14.new_keycloak_instance.png -------------------------------------------------------------------------------- /docs/assets/15.configure_keycloak_instance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/15.configure_keycloak_instance.png -------------------------------------------------------------------------------- /docs/assets/16.credentials_setup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/16.credentials_setup.png -------------------------------------------------------------------------------- /docs/assets/17.groups_claim_client_scope.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/17.groups_claim_client_scope.png -------------------------------------------------------------------------------- /docs/assets/18.groups_claim_token_mapper.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/18.groups_claim_token_mapper.png -------------------------------------------------------------------------------- /docs/assets/19.groups_claim_assigning_scope.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/19.groups_claim_assigning_scope.png -------------------------------------------------------------------------------- /docs/assets/2.operator_install_guide.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/2.operator_install_guide.png -------------------------------------------------------------------------------- /docs/assets/20.groups_claim_assign_default_scope.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/20.groups_claim_assign_default_scope.png -------------------------------------------------------------------------------- /docs/assets/21.group_claim_admin_group.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/21.group_claim_admin_group.png -------------------------------------------------------------------------------- /docs/assets/22.argocd_login_keycloak_rhsso.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/22.argocd_login_keycloak_rhsso.png -------------------------------------------------------------------------------- /docs/assets/23.argocd_ui_keycloak_rhsso.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/23.argocd_ui_keycloak_rhsso.png -------------------------------------------------------------------------------- /docs/assets/24.add_user_to_keycloak.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/24.add_user_to_keycloak.png -------------------------------------------------------------------------------- /docs/assets/25.download_kam_cli.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/25.download_kam_cli.png -------------------------------------------------------------------------------- /docs/assets/26.kam_download_index.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/26.kam_download_index.png -------------------------------------------------------------------------------- /docs/assets/27.create_new_project.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/27.create_new_project.png -------------------------------------------------------------------------------- /docs/assets/28.create_new_argocd_instance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/28.create_new_argocd_instance.png -------------------------------------------------------------------------------- /docs/assets/29.argocd_new_instance_route.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/29.argocd_new_instance_route.png -------------------------------------------------------------------------------- /docs/assets/3.operator_install_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/3.operator_install_button.png -------------------------------------------------------------------------------- /docs/assets/30.create_role_binding.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/30.create_role_binding.png -------------------------------------------------------------------------------- /docs/assets/31.operator_nodeSelector_tolerations.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/31.operator_nodeSelector_tolerations.jpg -------------------------------------------------------------------------------- /docs/assets/32.monitoring.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/32.monitoring.png -------------------------------------------------------------------------------- /docs/assets/33.logging.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/33.logging.png -------------------------------------------------------------------------------- /docs/assets/34.kibana_index_pattern.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/34.kibana_index_pattern.png -------------------------------------------------------------------------------- /docs/assets/35.kibana_timestamp_field.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/35.kibana_timestamp_field.png -------------------------------------------------------------------------------- /docs/assets/36.kibana_add_filter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/36.kibana_add_filter.png -------------------------------------------------------------------------------- /docs/assets/37.jenkins_application_summary.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/37.jenkins_application_summary.png -------------------------------------------------------------------------------- /docs/assets/38.jenkins_app.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/38.jenkins_app.png -------------------------------------------------------------------------------- /docs/assets/39.gitops_monitoring_dashboards_dropdown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/39.gitops_monitoring_dashboards_dropdown.png -------------------------------------------------------------------------------- /docs/assets/4.subscription_instance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/4.subscription_instance.png -------------------------------------------------------------------------------- /docs/assets/5.console_application_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/5.console_application_launcher.png -------------------------------------------------------------------------------- /docs/assets/6.default_instance_password.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/6.default_instance_password.png -------------------------------------------------------------------------------- /docs/assets/7.copy_secret_to_clipboard.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/7.copy_secret_to_clipboard.png -------------------------------------------------------------------------------- /docs/assets/8.argocd_login_ui.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/8.argocd_login_ui.png -------------------------------------------------------------------------------- /docs/assets/9.gitops_server_route_url.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/9.gitops_server_route_url.png -------------------------------------------------------------------------------- /docs/assets/Install_GitOps_Operator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/Install_GitOps_Operator.png -------------------------------------------------------------------------------- /docs/assets/Uninstall_Community_operator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/Uninstall_Community_operator.png -------------------------------------------------------------------------------- /docs/assets/installed-operator.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/installed-operator.png -------------------------------------------------------------------------------- /docs/assets/operatorhub-listing.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/docs/assets/operatorhub-listing.png -------------------------------------------------------------------------------- /openshift-ci/build-root/OWNERS: -------------------------------------------------------------------------------- 1 | # See the OWNERS docs: https://git.k8s.io/community/contributors/guide/owners.md 2 | 3 | approvers: 4 | - sbose78 5 | - wtam2018 6 | - bigkevmcd 7 | - chetan-rns 8 | 9 | reviewers: 10 | - sbose78 11 | - wtam2018 12 | - bigkevmcd 13 | - chetan-rns 14 | - mitchharpur 15 | - keithchong 16 | - tetchel 17 | - amitkrout 18 | - jaideepr97 19 | - gaganhegde 20 | - dewan-ahmed 21 | -------------------------------------------------------------------------------- /openshift-ci/build-root/README.md: -------------------------------------------------------------------------------- 1 | # Base Image for running tests on OpenShift CI 2 | 3 | This image is meant to be used as build root for tests on [OpenShift CI](https://github.com/openshift/release/blob/master/ci-operator/config/openshift/odo/redhat-developer-odo-master.yaml) 4 | You can find out more in the [ 5 | ](https://github.com/openshift/ci-operator/blob/master/CONFIGURATION.md) 6 | -------------------------------------------------------------------------------- /openshift-ci/build-root/source-image/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM src 2 | 3 | COPY oc /usr/bin/oc 4 | -------------------------------------------------------------------------------- /openshift-gitops-e2e.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "", 3 | "tests": 0, 4 | "failures": 0, 5 | "time": "0.030", 6 | "failure": { 7 | "message": "fatal error getting client: Get \"https://api.ci-ln-1zxgkcb-76ef8.aws-2.ci.openshift.org:6443/api?timeout=32s\": dial tcp: lookup api.ci-ln-1zxgkcb-76ef8.aws-2.ci.openshift.org on 192.168.0.1:53: no such host" 8 | } 9 | } -------------------------------------------------------------------------------- /test/examples/1-027_operand-from-git/argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | namespace: test-1-27-custom 6 | 7 | -------------------------------------------------------------------------------- /test/examples/1-027_operand-from-git/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | - namespace.yaml 3 | - argocd.yaml 4 | -------------------------------------------------------------------------------- /test/examples/1-027_operand-from-git/namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: test-1-27-custom 5 | labels: 6 | argocd.argoproj.io/managed-by: openshift-gitops 7 | 8 | -------------------------------------------------------------------------------- /test/examples/bgd-k8s/base/bgd-configmap.yaml: -------------------------------------------------------------------------------- 1 | 2 | apiVersion: v1 3 | kind: ConfigMap 4 | metadata: 5 | name: test-config-map 6 | labels: 7 | app: bgd 8 | data: 9 | test: field 10 | -------------------------------------------------------------------------------- /test/examples/bgd-k8s/base/bgd-namespace.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: bgd 5 | -------------------------------------------------------------------------------- /test/examples/bgd-k8s/base/bgd-svc.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: Service 4 | metadata: 5 | creationTimestamp: null 6 | labels: 7 | app: bgd 8 | name: bgd 9 | spec: 10 | ports: 11 | - port: 8080 12 | protocol: TCP 13 | targetPort: 8080 14 | selector: 15 | app: bgd 16 | --- 17 | -------------------------------------------------------------------------------- /test/examples/bgd-k8s/base/kustomization.yaml: -------------------------------------------------------------------------------- 1 | resources: 2 | - bgd-deployment.yaml 3 | - bgd-namespace.yaml 4 | - bgd-svc.yaml 5 | - bgd-configmap.yaml 6 | -------------------------------------------------------------------------------- /test/examples/bgd-k8s/overlays/kind/kustomization.yaml: -------------------------------------------------------------------------------- 1 | bases: 2 | - ../../base 3 | resources: 4 | - bgd-ingress.yaml 5 | -------------------------------------------------------------------------------- /test/examples/bgd-k8s/overlays/mac/kustomization.yaml: -------------------------------------------------------------------------------- 1 | bases: 2 | - ../../base 3 | resources: 4 | - bgd-ingress.yaml 5 | -------------------------------------------------------------------------------- /test/examples/guestbook/guestbook-ui-svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: guestbook-ui 5 | spec: 6 | ports: 7 | - port: 80 8 | targetPort: 80 9 | selector: 10 | app: guestbook-ui 11 | -------------------------------------------------------------------------------- /test/examples/image/image.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: config.openshift.io/v1 3 | kind: Image 4 | metadata: 5 | annotations: 6 | release.openshift.io/create-only: "true" 7 | name: cluster 8 | spec: 9 | allowedRegistriesForImport: 10 | - domainName: quay.io 11 | insecure: false 12 | status: 13 | internalRegistryHostname: image-registry.openshift-image-registry.svc:5000 -------------------------------------------------------------------------------- /test/examples/kustomize-example/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: configmap 5 | annotations: 6 | foo: configmap 7 | 8 | -------------------------------------------------------------------------------- /test/examples/kustomize-example/kustomization.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kustomize.config.k8s.io/v1beta1 2 | kind: Kustomization 3 | 4 | namePrefix: gitops- 5 | 6 | resources: 7 | - configmap.yaml 8 | configurations: 9 | - kustomize-configmap.yaml 10 | 11 | -------------------------------------------------------------------------------- /test/examples/kustomize-example/kustomize-configmap.yaml: -------------------------------------------------------------------------------- 1 | nameReference: 2 | - kind: ConfigMap 3 | fieldSpecs: 4 | - path: metadata/annotations/foo 5 | kind: ConfigMap 6 | version: v1 7 | 8 | -------------------------------------------------------------------------------- /test/examples/kustomize-guestbook/guestbook-ui-svc.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: guestbook-ui 5 | spec: 6 | ports: 7 | - port: 80 8 | targetPort: 80 9 | selector: 10 | app: guestbook-ui 11 | -------------------------------------------------------------------------------- /test/examples/kustomize-guestbook/kustomization.yaml: -------------------------------------------------------------------------------- 1 | namePrefix: kustomize- 2 | 3 | resources: 4 | - guestbook-ui-deployment.yaml 5 | - guestbook-ui-svc.yaml 6 | apiVersion: kustomize.config.k8s.io/v1beta1 7 | kind: Kustomization 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-003_validate_console_link/01-assert.yaml: -------------------------------------------------------------------------------- 1 | # Check that our console link is installed correctly 2 | apiVersion: console.openshift.io/v1 3 | kind: ConsoleLink 4 | metadata: 5 | name: argocd 6 | spec: 7 | location: ApplicationMenu 8 | text: Cluster Argo CD 9 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-003_validate_console_link/01-check-console-link.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/test/openshift/e2e/ignore-tests/parallel/1-003_validate_console_link/01-check-console-link.yaml -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-007_validate_namespace_scoped_install/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | server: 7 | route: 8 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-008_validate-custom-argocd-namespace/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | namespace: test-1-8-custom 6 | status: 7 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-008_validate-custom-argocd-namespace/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: test-1-8-custom 5 | --- 6 | apiVersion: argoproj.io/v1alpha1 7 | kind: ArgoCD 8 | metadata: 9 | name: argocd 10 | namespace: test-1-8-custom 11 | spec: 12 | server: 13 | route: 14 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-008_validate-custom-argocd-namespace/03-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: validate-custom-argocd 5 | namespace: test-1-8-custom 6 | status: 7 | health: 8 | status: Healthy 9 | sync: 10 | status: Synced -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-008_validate-custom-argocd-namespace/99-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: v1 5 | kind: Namespace 6 | name: test-1-8-custom -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-009_validate-manage-other-namespace/01-assert.yaml: -------------------------------------------------------------------------------- 1 | # Wait for the Operator to become available 2 | apiVersion: argoproj.io/v1alpha1 3 | kind: ArgoCD 4 | metadata: 5 | name: argocd 6 | status: 7 | phase: Available 8 | --- 9 | # Additional namespace that we want to manage 10 | apiVersion: v1 11 | kind: Namespace 12 | metadata: 13 | name: test-1-9-custom -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-009_validate-manage-other-namespace/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: test-1-9-custom 5 | --- 6 | apiVersion: argoproj.io/v1alpha1 7 | kind: ArgoCD 8 | metadata: 9 | name: argocd 10 | spec: {} 11 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-009_validate-manage-other-namespace/02-label-namespace.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Label the namespace that we want to manage 3 | apiVersion: kuttl.dev/v1beta1 4 | kind: TestStep 5 | commands: 6 | - script: kubectl label ns test-1-9-custom argocd.argoproj.io/managed-by=$NAMESPACE --overwrite -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-009_validate-manage-other-namespace/04-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: test-1-9-custom 5 | status: 6 | health: 7 | status: Healthy 8 | sync: 9 | status: Synced -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-009_validate-manage-other-namespace/05-unlabel-namespace.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: kuttl.dev/v1beta1 3 | kind: TestStep 4 | commands: 5 | - script: kubectl label ns test-1-9-custom argocd.argoproj.io/managed-by- 6 | - script: sleep 5 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-009_validate-manage-other-namespace/07-check.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | timeout: 1200 4 | error: 5 | - errors.yaml 6 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-009_validate-manage-other-namespace/99-delete.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: kuttl.dev/v1beta1 3 | kind: TestStep 4 | delete: 5 | - apiVersion: v1 6 | kind: Namespace 7 | name: test-1-9-custom -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-012_validate-managed-by-chain/01-assert.yaml: -------------------------------------------------------------------------------- 1 | # Wait for the Operator to become available 2 | apiVersion: argoproj.io/v1alpha1 3 | kind: ArgoCD 4 | metadata: 5 | name: argocd 6 | status: 7 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-012_validate-managed-by-chain/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: test-1-12-custom 5 | --- 6 | apiVersion: v1 7 | kind: Namespace 8 | metadata: 9 | name: test-1-12-custom2 10 | --- 11 | apiVersion: argoproj.io/v1alpha1 12 | kind: ArgoCD 13 | metadata: 14 | name: argocd 15 | spec: {} 16 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-012_validate-managed-by-chain/02-label-namespace.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Label the namespace that we want to manage 3 | apiVersion: kuttl.dev/v1beta1 4 | kind: TestStep 5 | commands: 6 | - script: kubectl label ns test-1-12-custom argocd.argoproj.io/managed-by=$NAMESPACE --overwrite -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-012_validate-managed-by-chain/04-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: test-1-12-custom 5 | status: 6 | health: 7 | status: Healthy 8 | sync: 9 | status: Synced -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-012_validate-managed-by-chain/07-label-namespace.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Label the namespace that we want to manage 3 | apiVersion: kuttl.dev/v1beta1 4 | kind: TestStep 5 | commands: 6 | - script: kubectl label ns test-1-12-custom2 argocd.argoproj.io/managed-by=$NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-012_validate-managed-by-chain/08-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: test-1-12-custom2 5 | status: 6 | health: 7 | status: Healthy 8 | sync: 9 | status: Synced -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-012_validate-managed-by-chain/99-delete.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: kuttl.dev/v1beta1 3 | kind: TestStep 4 | delete: 5 | - apiVersion: v1 6 | kind: Namespace 7 | name: test-1-12-custom 8 | - apiVersion: v1 9 | kind: Namespace 10 | name: test-1-12-custom2 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-019_validate_volume_mounts/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-021_validate_rolebindings/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-023_validate_repo_server_tls/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | namespace: test-1-23-custom 6 | status: 7 | phase: Available 8 | --- 9 | apiVersion: v1 10 | kind: Secret 11 | metadata: 12 | name: argocd-repo-server-tls 13 | namespace: test-1-23-custom -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-023_validate_repo_server_tls/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: test-1-23-custom 5 | --- 6 | apiVersion: argoproj.io/v1alpha1 7 | kind: ArgoCD 8 | metadata: 9 | name: argocd 10 | namespace: test-1-23-custom 11 | spec: 12 | repo: 13 | autotls: "openshift" -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-023_validate_repo_server_tls/02-change-argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | namespace: test-1-23-custom 6 | spec: 7 | repo: 8 | autotls: "openshift" 9 | verifytls: true -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-023_validate_repo_server_tls/03-check-workloads.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: sleep 5 5 | - script: | 6 | oc -n test-1-23-custom get deployment argocd-server \ 7 | -o jsonpath='{.spec.template.spec.containers[0].command}' \ 8 | | jq -r | grep -- '--repo-server-strict-tls' -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-023_validate_repo_server_tls/04-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: guestbook 5 | namespace: test-1-23-custom 6 | status: 7 | health: 8 | status: Healthy 9 | sync: 10 | status: Synced -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-023_validate_repo_server_tls/99-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: v1 5 | kind: Namespace 6 | name: test-1-23-custom -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-025-validate-managed-by-change/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | namespace: test-1-25-argo1 6 | status: 7 | phase: Available 8 | --- 9 | apiVersion: argoproj.io/v1alpha1 10 | kind: ArgoCD 11 | metadata: 12 | name: argocd 13 | namespace: test-1-25-argo2 14 | status: 15 | phase: Available 16 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-025-validate-managed-by-change/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: guestbook 5 | namespace: test-1-25-argo1 6 | status: 7 | health: 8 | status: Healthy 9 | sync: 10 | status: Synced -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-025-validate-managed-by-change/99-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: v1 5 | kind: Namespace 6 | name: test-1-25-target 7 | - apiVersion: v1 8 | kind: Namespace 9 | name: test-1-25-argo1 10 | - apiVersion: v1 11 | kind: Namespace 12 | name: test-1-25-argo2 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-029_validate_tls_secret_no_scale/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: v1 9 | kind: Secret 10 | metadata: 11 | name: argocd-tls -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-029_validate_tls_secret_no_scale/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-029_validate_tls_secret_no_scale/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: argocd-server 5 | status: 6 | observedGeneration: 1 7 | availableReplicas: 1 8 | replicas: 1 9 | readyReplicas: 1 10 | updatedReplicas: 1 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-029_validate_tls_secret_no_scale/03-sleep-and-recheck.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: sleep 10 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-032_validate_resource_inclusions/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-032_validate_resource_inclusions/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-032_validate_resource_inclusions/02-add_resource_inclusions.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | resourceInclusions: | 7 | - apiGroups: 8 | - tekton.dev 9 | clusters: 10 | - '*' 11 | kinds: 12 | - DaemonSet -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-032_validate_resource_inclusions/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-cm 5 | data: 6 | resource.inclusions: | 7 | - apiGroups: 8 | - tekton.dev 9 | clusters: 10 | - '*' 11 | kinds: 12 | - DaemonSet 13 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-033_validate_resource_exclusions/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-033_validate_resource_exclusions/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-033_validate_resource_exclusions/02-add_resource_exclusions.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | resourceExclusions: | 7 | - apiGroups: 8 | - tekton.dev 9 | clusters: 10 | - '*' 11 | kinds: 12 | - DaemonSet -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-033_validate_resource_exclusions/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-cm 5 | data: 6 | resource.exclusions: | 7 | - apiGroups: 8 | - tekton.dev 9 | clusters: 10 | - '*' 11 | kinds: 12 | - DaemonSet 13 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-036_validate_keycloak_resource_reqs/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-036_validate_keycloak_resource_reqs/02-update-sso-keycloak-provider.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | # patches the subscription to change sso provider to keycloak 5 | - script: | 6 | oc patch -n $NAMESPACE argocd/argocd --type='json' -p='[{"op": "add", "path": "/spec/sso", "value": {"provider": "keycloak"}}]' 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-037_validate_argocd_setting_replicas/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-037_validate_argocd_setting_replicas/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-037_validate_argocd_setting_replicas/02-scale_out_server.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | oc patch argocd argocd \ 6 | -n $NAMESPACE \ 7 | --type='json' \ 8 | -p='[{"op": "replace", "path": "/spec/server/replicas", "value": 3 }]' 9 | exit 0 10 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-037_validate_argocd_setting_replicas/03-scale_out_repo.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | oc patch argocd argocd \ 6 | -n $NAMESPACE \ 7 | --type='json' \ 8 | -p='[{"op": "replace", "path": "/spec/repo/replicas", "value": 3 }]' 9 | exit 0 10 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-037_validate_argocd_setting_replicas/04-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: argocd-server 5 | status: 6 | readyReplicas: 3 7 | --- 8 | apiVersion: apps/v1 9 | kind: Deployment 10 | metadata: 11 | name: argocd-repo-server 12 | status: 13 | readyReplicas: 3 14 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-037_validate_argocd_setting_replicas/05-scale_in_server.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | oc patch argocd argocd \ 6 | -n $NAMESPACE \ 7 | --type='json' \ 8 | -p='[{"op": "replace", "path": "/spec/server/replicas", "value": 1 }]' 9 | exit 0 10 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-037_validate_argocd_setting_replicas/06-scale_in_repo.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | oc patch argocd argocd \ 6 | -n $NAMESPACE \ 7 | --type='json' \ 8 | -p='[{"op": "replace", "path": "/spec/repo/replicas", "value": 1 }]' 9 | exit 0 10 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-037_validate_argocd_setting_replicas/07-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: argocd-server 5 | status: 6 | readyReplicas: 1 7 | --- 8 | apiVersion: apps/v1 9 | kind: Deployment 10 | metadata: 11 | name: argocd-repo-server 12 | status: 13 | readyReplicas: 1 14 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-038_validate_productized_images/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-038_validate_productized_images/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-039_validate_fix_argocd-tls-certs-cm/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-039_validate_fix_argocd-tls-certs-cm/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | labels: 6 | example: example-argocd 7 | spec: 8 | server: 9 | route: 10 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-039_validate_fix_argocd-tls-certs-cm/02-modify_configmap.yaml: -------------------------------------------------------------------------------- 1 | kind: ConfigMap 2 | apiVersion: v1 3 | data: 4 | test.example.com: '-----BEGIN CERTIFICATE----- -----END CERTIFICATE-----' 5 | metadata: 6 | name: argocd-tls-certs-cm -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-039_validate_fix_argocd-tls-certs-cm/03-modify_argocd_cr.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | tls: 7 | initialCerts: 8 | test.example.com: BEGIN CERTIFICATE 9 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-039_validate_fix_argocd-tls-certs-cm/04-errors.yaml: -------------------------------------------------------------------------------- 1 | kind: ConfigMap 2 | apiVersion: v1 3 | metadata: 4 | name: argocd-tls-certs-cm 5 | data: 6 | test.example.com: BEGIN CERTIFICATE -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-042_validate_status_host/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: route.openshift.io/v1 9 | kind: Route 10 | metadata: 11 | name: example-argocd-server -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-042_validate_status_host/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | labels: 6 | example: example-argocd 7 | spec: 8 | server: 9 | route: 10 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-042_validate_status_host/03-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | host: modified-route -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-042_validate_status_host/03-modify_route_URL.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | oc patch route example-argocd-server -n $NAMESPACE --type='json' -p='[{"op": "replace", "path": "/spec/host", "value":"modified-route"}]' -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-042_validate_status_host/04-disable_route.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | labels: 6 | example: example-argocd 7 | spec: 8 | server: 9 | route: 10 | enabled: false -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-042_validate_status_host/04-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | host: modified-route -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-043_validate_log_level_format/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-043_validate_log_level_format/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-043_validate_log_level_format/02-change-loglevel.yaml: -------------------------------------------------------------------------------- 1 | 2 | apiVersion: argoproj.io/v1alpha1 3 | kind: ArgoCD 4 | metadata: 5 | name: argocd 6 | spec: 7 | server: 8 | logLevel: debug 9 | logFormat: json 10 | repo: 11 | logLevel: debug 12 | logFormat: json 13 | controller: 14 | logLevel: debug 15 | logFormat: json -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-045_validate_repo_exec_timeout/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-045_validate_repo_exec_timeout/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-045_validate_repo_exec_timeout/02-change-exec-timeout.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | repo: 7 | execTimeout: 300 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-047_validate_custom_env/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-047_validate_custom_env/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-047_validate_custom_env/02-change-env-vars.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | server: 7 | env: 8 | - name: FOO 9 | value: bar 10 | repo: 11 | env: 12 | - name: FOO 13 | value: bar 14 | controller: 15 | env: 16 | - name: FOO 17 | value: bar -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-048_validate_controller_sharding/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-048_validate_controller_sharding/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-048_validate_controller_sharding/02-change-sharding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | controller: 7 | sharding: 8 | enabled: true 9 | replicas: 3 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-048_validate_controller_sharding/04-change-sharding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | controller: 7 | sharding: 8 | enabled: false 9 | replicas: 3 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-048_validate_controller_sharding/04-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: argocd-application-controller-1 5 | --- 6 | apiVersion: v1 7 | kind: Pod 8 | metadata: 9 | name: argocd-application-controller-2 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-049_validate_parallelism_limit/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: apps/v1 9 | kind: StatefulSet 10 | metadata: 11 | name: argocd-application-controller 12 | status: 13 | readyReplicas: 1 14 | replicas: 1 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-049_validate_parallelism_limit/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-049_validate_parallelism_limit/03-change-limit.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | controller: 7 | parallelismLimit: 20 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-049_validate_parallelism_limit/05-change-back-to-default.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: {} -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-052_validate_rolebinding_number/01-label_namespace.yaml: -------------------------------------------------------------------------------- 1 | # Add the managed-by label to the namespace created by Kuttl 2 | apiVersion: kuttl.dev/v1beta1 3 | kind: TestStep 4 | commands: 5 | - script: | 6 | oc label namespace $NAMESPACE argocd.argoproj.io/managed-by=openshift-gitops 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-053_validate_cluster_admin_rbac/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: openshift-gitops 5 | namespace: openshift-gitops 6 | status: 7 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-053_validate_cluster_admin_rbac/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: openshift-gitops 5 | namespace: openshift-gitops 6 | spec: 7 | rbac: 8 | policy: | 9 | g, system:cluster-admins, role:admin 10 | g, cluster-admins, role:admin -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-054_validate_deploymentconfig/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-054_validate_deploymentconfig/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | server: 7 | route: 8 | enabled: true 9 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-055_validate_notification_controller/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-055_validate_notification_controller/01-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | notificationsController: 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-055_validate_notification_controller/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | server: 7 | route: 8 | enabled: true 9 | notifications: 10 | enabled: false 11 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-055_validate_notification_controller/02-enable_notification.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | notifications: 7 | enabled: true 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-055_validate_notification_controller/03-disable_notification.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | notifications: 7 | enabled: false 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-055_validate_notification_controller/04-check.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | timeout: 1200 4 | error: 5 | - errors.yaml -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-057_validate_notifications/04-delete-app.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | 7 | kubectl delete -n $NAMESPACE application.argoproj.io my-app-3 8 | - script: sleep 5 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-058_validate_prometheus_rule/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-058_validate_prometheus_rule/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | server: 7 | route: 8 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-058_validate_prometheus_rule/03-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: test-1-58-custom 5 | status: 6 | health: 7 | status: Healthy 8 | sync: 9 | status: Synced -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-061_validate_resource_tracking_method/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: v1 9 | kind: ConfigMap 10 | metadata: 11 | name: argocd-cm 12 | data: 13 | application.resourceTrackingMethod: label 14 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-061_validate_resource_tracking_method/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-061_validate_resource_tracking_method/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-cm 5 | data: 6 | application.resourceTrackingMethod: annotation 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-061_validate_resource_tracking_method/02-patch_cm_annotation.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | 7 | oc patch argocds.argoproj.io argocd --type=merge -p '{"spec":{"resourceTrackingMethod":"annotation"}}' -n $NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-061_validate_resource_tracking_method/03-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-cm 5 | data: 6 | application.resourceTrackingMethod: annotation+label 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-061_validate_resource_tracking_method/03-patch_cm_annotation_label.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | 7 | oc patch argocds.argoproj.io argocd --type=merge -p '{"spec":{"resourceTrackingMethod":"annotation+label"}}' -n $NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-061_validate_resource_tracking_method/04-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-cm 5 | data: 6 | application.resourceTrackingMethod: label 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-061_validate_resource_tracking_method/04-patch_cm_invalid_method.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | 7 | oc patch argocds.argoproj.io argocd --type=merge -p '{"spec":{"resourceTrackingMethod":"invalid_method"}}' -n $NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-062_validate_extra_config/01-argocd-with-extraconfig.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | extraConfig: 7 | "admin.enabled": "true" # enable admin user through extraConfig -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-062_validate_extra_config/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: v1 9 | kind: ConfigMap 10 | metadata: 11 | name: argocd-cm 12 | data: 13 | admin.enabled: "true" -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-062_validate_extra_config/02-argocd-with-firstclass-and-extraconfig copy.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | disableAdmin: true 7 | extraConfig: 8 | "admin.enabled": "true" # override admin user through extraConfig -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-062_validate_extra_config/02-assert.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: ConfigMap 4 | metadata: 5 | name: argocd-cm 6 | data: 7 | admin.enabled: "true" -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-062_validate_extra_config/03-assert.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: ConfigMap 4 | metadata: 5 | name: argocd-cm 6 | data: 7 | admin.enabled: "true" # operator should reject any manual updates to the configmap. -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-062_validate_extra_config/03-update-configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-cm 5 | data: 6 | admin.enabled: "false" -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-063_validate_statefulset_restart/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: apps/v1 9 | kind: StatefulSet 10 | metadata: 11 | name: example-argocd-application-controller 12 | status: 13 | readyReplicas: 1 14 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-063_validate_statefulset_restart/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-063_validate_statefulset_restart/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: StatefulSet 3 | metadata: 4 | name: example-argocd-application-controller 5 | status: 6 | readyReplicas: 1 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-065_validate_redis_ha_anti_affinity/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | ha: 7 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-066_validate_redis_secure_comm_no_autotls_no_ha/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-066_validate_redis_secure_comm_no_autotls_no_ha/04-create_annotation.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | oc annotate secret argocd-operator-redis-tls argocds.argoproj.io/name=argocd -n $NAMESPACE 7 | sleep 30 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-067_validate_redis_secure_comm_no_autotls_ha/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | ha: 7 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-067_validate_redis_secure_comm_no_autotls_ha/04-create_annotation.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | oc annotate secret argocd-operator-redis-tls argocds.argoproj.io/name=argocd -n $NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-068_validate_redis_secure_comm_autotls_no_ha/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-068_validate_redis_secure_comm_autotls_no_ha/02-enable_autotls.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | 7 | oc patch argocds.argoproj.io argocd --type=merge -p '{"spec":{"redis":{"autotls":"openshift"}}}' -n $NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-069_validate_redis_secure_comm_autotls_ha/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | ha: 7 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-069_validate_redis_secure_comm_autotls_ha/02-enable_autotls.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | 7 | oc patch argocds.argoproj.io argocd --type=merge -p '{"spec":{"redis":{"autotls":"openshift"}}}' -n $NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-070_validate_config_management_plugin/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: guestbook 5 | namespace: argocd 6 | status: 7 | health: 8 | status: Healthy 9 | sync: 10 | status: Synced 11 | --- 12 | kind: ConfigMap 13 | apiVersion: v1 14 | metadata: 15 | name: guestbook 16 | namespace: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-070_validate_config_management_plugin/99-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: v1 5 | kind: Namespace 6 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-071_validate_SCC_HA/02-create-argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | server: 7 | route: 8 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-071_validate_SCC_HA/03-modify-argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | ha: 7 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-071_validate_SCC_HA/99-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | apiVersion: kuttl.dev/v1beta1 5 | kind: TestStep 6 | delete: 7 | - apiVersion: security.openshift.io/v1 8 | kind: SecurityContextConstraints 9 | metadata: 10 | name: restricted-dropcaps 11 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-072_validate_liveness_probe_removed/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-072_validate_liveness_probe_removed/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-073_validate_rhsso/01-argocd-rhsso.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd-keycloak 5 | labels: 6 | example: keycloak 7 | spec: 8 | sso: 9 | provider: keycloak 10 | keycloak: 11 | rootCA: "---BEGIN---END---" 12 | server: 13 | route: 14 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-073_validate_rhsso/02-sleep.yaml: -------------------------------------------------------------------------------- 1 | # wait for operator to create a new keycloak realm and update OIDC configuration. 2 | apiVersion: kuttl.dev/v1beta1 3 | kind: TestStep 4 | commands: 5 | - script: sleep 60 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-073_validate_rhsso/99-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - command: oc delete argocd example-argocd-keycloak -n $NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-074_validate_terminating_namespace_block/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: gitops-2242-ns-first 5 | labels: 6 | argocd.argoproj.io/managed-by: gitops-2242-ns-main 7 | --- 8 | apiVersion: v1 9 | kind: ConfigMap 10 | metadata: 11 | name: my-config-map-2 12 | namespace: gitops-2242-ns-first -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-074_validate_terminating_namespace_block/03-delete-ns.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | 7 | oc delete ns gitops-2242-ns-first --wait=false 8 | 9 | exit 0 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-074_validate_terminating_namespace_block/04-create-ns.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: gitops-2242-ns-second 5 | labels: 6 | argocd.argoproj.io/managed-by: gitops-2242-ns-main -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-075_validate_dex_anyuid/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: apps/v1 9 | kind: Deployment 10 | metadata: 11 | name: argocd-dex-server 12 | status: 13 | readyReplicas: 1 14 | replicas: 1 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-075_validate_dex_anyuid/02-change_dex_scc_to_anyuid.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | oc adm policy add-scc-to-user anyuid -z argocd-argocd-dex-server -n $NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-075_validate_dex_anyuid/03-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: argocd-dex-server 5 | status: 6 | readyReplicas: 1 7 | replicas: 1 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-075_validate_dex_anyuid/03-restart_dex_pod.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | oc rollout restart deployment/argocd-dex-server -n $NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-079_validate_vars_for_notificaitons/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | notifications: 7 | enabled: True 8 | server: 9 | route: 10 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-079_validate_vars_for_notificaitons/02-modify-argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | notifications: 7 | enabled: True 8 | env: 9 | - name: foo 10 | value: bar 11 | server: 12 | route: 13 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-080_validate_regex_support_argocd_rbac/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | labels: 6 | example: basic 7 | spec: {} -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-080_validate_regex_support_argocd_rbac/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-rbac-cm 5 | data: 6 | policy.matchMode: regex -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-080_validate_regex_support_argocd_rbac/02-modify-argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | rbac: 7 | policyMatcherMode: 'regex' 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-080_validate_regex_support_argocd_rbac/03-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-rbac-cm 5 | data: 6 | policy.matchMode: '' -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-080_validate_regex_support_argocd_rbac/03-try-modify.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-rbac-cm 5 | data: 6 | policy.matchMode: '' -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-080_validate_regex_support_argocd_rbac/04-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-rbac-cm 5 | data: 6 | policy.matchMode: glob -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-080_validate_regex_support_argocd_rbac/04-modify-argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | rbac: 7 | policyMatcherMode: 'glob' -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-082_validate_node_placement/01-default-node-selector.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | labels: 6 | example: basic 7 | spec: {} -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-082_validate_node_placement/02-custom-node-placement.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | labels: 6 | example: basic 7 | spec: 8 | nodePlacement: 9 | nodeSelector: 10 | key1: value1 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-083_validate_kustomize_namereference/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | namespace: namespace-gitops-2038 6 | status: 7 | phase: Available 8 | 9 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-083_validate_kustomize_namereference/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: namespace-gitops-2038 5 | --- 6 | apiVersion: argoproj.io/v1alpha1 7 | kind: ArgoCD 8 | metadata: 9 | name: argocd 10 | namespace: namespace-gitops-2038 11 | spec: 12 | server: 13 | route: 14 | enabled: true 15 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-083_validate_kustomize_namereference/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | namespace: namespace-gitops-2038 5 | annotations: 6 | foo: gitops-configmap 7 | name: gitops-configmap 8 | 9 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-083_validate_kustomize_namereference/99-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: v1 5 | kind: Namespace 6 | name: namespace-gitops-2038 7 | 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-084_validate_status_host_ingress/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: networking.k8s.io/v1 9 | kind: Ingress 10 | metadata: 11 | name: example-argocd-server 12 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-084_validate_status_host_ingress/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | host: test-crane.apps.rh-4.12-111111.dev.openshift.org 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-087_validate_repo_server_settings/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-087_validate_repo_server_settings/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | server: 7 | route: 8 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-087_validate_repo_server_settings/02-assert.yaml: -------------------------------------------------------------------------------- 1 | kind: Deployment 2 | apiVersion: apps/v1 3 | metadata: 4 | name: example-argocd-repo-server 5 | spec: 6 | template: 7 | spec: 8 | serviceAccountName: default 9 | automountServiceAccountToken: false 10 | serviceAccount: default 11 | status: 12 | readyReplicas: 1 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-087_validate_repo_server_settings/02-modify-argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | repo: 7 | mountsatoken: false 8 | serviceaccount: default -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-087_validate_repo_server_settings/04-modify-serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | kind: ServiceAccount 2 | apiVersion: v1 3 | metadata: 4 | name: modified-default 5 | --- 6 | apiVersion: argoproj.io/v1alpha1 7 | kind: ArgoCD 8 | metadata: 9 | name: example-argocd 10 | spec: 11 | repo: 12 | mountsatoken: true 13 | serviceaccount: modified-default -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-087_validate_repo_server_settings/05-reset-repo-settings.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | repo: 7 | mountsatoken: 8 | serviceaccount: -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-095_validate_dex_clientsecret/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: v1 9 | kind: ServiceAccount 10 | metadata: 11 | name: example-argocd-argocd-dex-server 12 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-095_validate_dex_clientsecret/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | labels: 6 | examples: route 7 | spec: 8 | sso: 9 | provider: dex 10 | dex: 11 | openShiftOAuth: true 12 | server: 13 | route: 14 | enabled: true 15 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-098_validate_dex_clientsecret/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: v1 9 | kind: ServiceAccount 10 | metadata: 11 | name: example-argocd-argocd-dex-server -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-098_validate_dex_clientsecret/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | sso: 7 | provider: dex 8 | dex: 9 | openShiftOAuth: true -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-099_validate_server_autoscale/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | server: 7 | replicas: 2 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-100_validate_rollouts_resources_creation/01-install-rolloutmanager.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: RolloutManager 3 | metadata: 4 | name: example-rollout-manager 5 | labels: 6 | example: example-rollout-manager 7 | spec: {} 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-100_validate_rollouts_resources_creation/02-assert.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: argoproj.io/v1alpha1 3 | kind: RolloutManager 4 | metadata: 5 | name: example-rollout-manager 6 | status: 7 | phase: Available 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-101_validate_rollout_policyrules/01-install-rollloutmanager.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: RolloutManager 3 | metadata: 4 | name: example-rollout-manager 5 | labels: 6 | example: example-rollout-manager 7 | spec: {} 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-102_validate_handle_terminating_namespaces/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: gitops-service-argocd 5 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-102_validate_handle_terminating_namespaces/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: gitops-service-argocd 5 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-102_validate_handle_terminating_namespaces/03-delete-ns.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - command: kubectl delete ns jane 5 | ignoreFailure: true 6 | timeout: 30 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-102_validate_handle_terminating_namespaces/04-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: john 5 | labels: 6 | argocd.argoproj.io/managed-by: gitops-service-argocd 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-102_validate_handle_terminating_namespaces/04-create-ns.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: john 5 | labels: 6 | argocd.argoproj.io/managed-by: gitops-service-argocd 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-102_validate_handle_terminating_namespaces/05-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestAssert 3 | timeout: 600 4 | --- 5 | apiVersion: argoproj.io/v1alpha1 6 | kind: Application 7 | metadata: 8 | name: my-app 9 | namespace: gitops-service-argocd 10 | status: 11 | sync: 12 | status: Synced 13 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-103_argocd_alpha_to_beta_conversion/01-alpha_argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | dex: 7 | openShiftOAuth: true 8 | server: 9 | route: 10 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-103_argocd_alpha_to_beta_conversion/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1beta1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | sso: 7 | provider: dex 8 | dex: 9 | openShiftOAuth: true 10 | server: 11 | route: 12 | enabled: true 13 | status: 14 | phase: Available 15 | sso: Running 16 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-103_argocd_alpha_to_beta_conversion/02-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: argoproj.io/v1alpha1 5 | kind: ArgoCD 6 | metadata: 7 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/1-103_argocd_alpha_to_beta_conversion/02-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1beta1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | sso: 7 | provider: dex 8 | dex: 9 | openShiftOAuth: true 10 | server: 11 | route: 12 | enabled: true 13 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/parallel/kuttl-test.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestSuite 3 | name: gitops-operator-e2e 4 | testDirs: 5 | - . 6 | suppress: 7 | - events 8 | parallel: 5 9 | timeout: 1200 10 | reportFormat: JSON 11 | reportName: openshift-gitops-e2e 12 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-001_validate_kam_service/01-check-kam-service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/test/openshift/e2e/ignore-tests/sequential/1-001_validate_kam_service/01-check-kam-service.yaml -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-002_validate_backend_service/01-check-backend-service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/test/openshift/e2e/ignore-tests/sequential/1-002_validate_backend_service/01-check-backend-service.yaml -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-004_validate_argocd_installation/01-assert.yaml: -------------------------------------------------------------------------------- 1 | # Check for the openshift-gitops Argo CD Operand to be installed and in phase 2 | # available. 3 | apiVersion: argoproj.io/v1alpha1 4 | kind: ArgoCD 5 | metadata: 6 | name: openshift-gitops 7 | namespace: openshift-gitops 8 | status: 9 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-004_validate_argocd_installation/01-check-prereqs.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/test/openshift/e2e/ignore-tests/sequential/1-004_validate_argocd_installation/01-check-prereqs.yaml -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-004_validate_argocd_installation/02-change-operand.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: openshift-gitops 5 | namespace: openshift-gitops 6 | spec: 7 | controller: 8 | processors: 9 | operation: 20 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-004_validate_argocd_installation/03-wait.yaml: -------------------------------------------------------------------------------- 1 | # Wait for the Operator to reconcile 2 | apiVersion: kuttl.dev/v1beta1 3 | kind: TestStep 4 | commands: 5 | - script: sleep 5 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-004_validate_argocd_installation/04-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: openshift-gitops 5 | namespace: openshift-gitops 6 | spec: 7 | controller: 8 | processors: 9 | operation: 20 10 | status: 11 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-006_validate_machine_config/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: openshift-gitops 5 | namespace: openshift-gitops 6 | spec: 7 | repo: 8 | replicas: 2 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-006_validate_machine_config/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: validate-machine-config 5 | namespace: openshift-gitops 6 | status: 7 | health: 8 | status: Healthy 9 | sync: 10 | status: Synced -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-006_validate_machine_config/03-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: openshift-gitops 5 | namespace: openshift-gitops 6 | spec: 7 | repo: 8 | replicas: 1 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-006_validate_machine_config/99-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: argoproj.io/v1alpha1 5 | kind: Application 6 | name: validate-machine-config 7 | namespace: openshift-gitops -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-008_validate-4.9CI-Failures/03-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: nginx 5 | namespace: source-ns 6 | status: 7 | health: 8 | status: Healthy 9 | sync: 10 | status: Synced 11 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-010_validate-ootb-manage-other-namespace/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: test-1-10-custom 5 | labels: 6 | kubernetes.io/metadata.name: test-1-10-custom 7 | argocd.argoproj.io/managed-by: openshift-gitops -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-010_validate-ootb-manage-other-namespace/03-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: test-1-10-custom 5 | namespace: openshift-gitops 6 | status: 7 | health: 8 | status: Healthy 9 | sync: 10 | status: Synced -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-010_validate-ootb-manage-other-namespace/04-unlabel-namespace.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: kuttl.dev/v1beta1 3 | kind: TestStep 4 | commands: 5 | - script: kubectl label ns test-1-10-custom argocd.argoproj.io/managed-by- 6 | - script: sleep 5 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-010_validate-ootb-manage-other-namespace/05-check-rbac.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | timeout: 1200 4 | error: 5 | - errors.yaml 6 | 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-010_validate-ootb-manage-other-namespace/99-delete.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: kuttl.dev/v1beta1 3 | kind: TestStep 4 | delete: 5 | - apiVersion: v1 6 | kind: Namespace 7 | name: test-1-10-custom 8 | - apiVersion: argoproj.io/v1alpha1 9 | kind: Application 10 | name: test-1-10-custom 11 | namespace: openshift-gitops 12 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-018_validate_disable_default_instance/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: openshift-gitops-operator-controller-manager 5 | namespace: openshift-gitops-operator 6 | status: 7 | readyReplicas: 1 8 | replicas: 1 9 | availableReplicas: 1 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-026-validate_backend_service_permissions/01-check-backend-service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/test/openshift/e2e/ignore-tests/sequential/1-026-validate_backend_service_permissions/01-check-backend-service.yaml -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-027_validate_operand_from_git/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: openshift-gitops 5 | namespace: openshift-gitops 6 | status: 7 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-027_validate_operand_from_git/99-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: v1 5 | kind: Namespace 6 | name: test-1-27-custom 7 | - apiVersion: argoproj.io/v1alpha1 8 | kind: Application 9 | name: 1-27-argocd 10 | namespace: openshift-gitops 11 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-028_validate_run_on_infra/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-028_validate_run_on_infra/02-custom-argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-028_validate_run_on_infra/04-check.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | timeout: 1200 4 | error: 5 | - errors.yaml -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-035_validate_argocd_secret_repopulate/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: openshift-gitops 5 | namespace: openshift-gitops 6 | status: 7 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-035_validate_argocd_secret_repopulate/02-remove_secret_data.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | oc patch secret/argocd-secret -p '{"data":null}' -n openshift-gitops -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-040_validate_quoted_RBAC_group_names/02-create_role.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | output=$(argocd proj role create default somerole) 6 | 7 | if ! [[ "$output" =~ "Role 'somerole' created" ]]; then 8 | echo "Error creating role" 9 | exit 1 10 | fi 11 | exit 0 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-050_validate_sso/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | sso: 7 | provider: dex 8 | dex: 9 | openShiftOAuth: true -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-050_validate_sso/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available 7 | sso: Unknown -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-050_validate_sso/02-remove-spec-sso.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | # patches the CR to remove .spec.sso 5 | - script: | 6 | oc patch -n $NAMESPACE argocd/argocd --type='json' -p='[{"op": "remove", "path": "/spec/sso"}]' 7 | - script: sleep 10 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-050_validate_sso/07-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available 7 | sso: Failed -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-050_validate_sso/07-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps.openshift.io/v1 2 | kind: DeploymentConfig 3 | metadata: 4 | name: keycloak 5 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-050_validate_sso/07-provider-keycloak-dex-spec.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | sso: 7 | provider: keycloak 8 | dex: 9 | config: test -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-050_validate_sso/08-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available 7 | sso: Running 8 | --- 9 | apiVersion: apps.openshift.io/v1 10 | kind: DeploymentConfig 11 | metadata: 12 | name: keycloak -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-050_validate_sso/08-remove-spec-dex.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | # patches the CR to remove .spec.sso 5 | - script: | 6 | oc patch -n $NAMESPACE argocd/argocd --type='json' -p='[{"op": "remove", "path": "/spec/sso/dex"}]' -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-056_validate_managed-by/02-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: argoproj.io/v1alpha1 5 | kind: ArgoCD 6 | name: example-argocd 7 | namespace: test-1-56-target 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-056_validate_managed-by/07-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: argoproj.io/v1alpha1 5 | kind: ArgoCD 6 | name: example-argocd-2 7 | namespace: test-1-56-target-2 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-056_validate_managed-by/07-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: test-1-56-custom-2 5 | labels: 6 | argocd.argoproj.io/managed-by: test-1-56-target-2 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-064_validate_tcp_reset_error/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: openshift-gitops 5 | namespace: openshift-gitops 6 | status: 7 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-064_validate_tcp_reset_error/04-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: guestbook 5 | namespace: test-1-27-custom 6 | status: 7 | health: 8 | status: Healthy 9 | sync: 10 | status: Synced -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-064_validate_tcp_reset_error/99-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: v1 5 | kind: Namespace 6 | name: test-1-27-custom 7 | - apiVersion: argoproj.io/v1alpha1 8 | kind: Application 9 | name: 1-27-argocd 10 | namespace: openshift-gitops 11 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-071_validate_node_selectors/02-custom-node-selector.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | oc patch gitopsservice cluster --type=merge --patch='{"spec": {"nodeSelector": {"key1": "value1"}}}' 6 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-071_validate_node_selectors/03-patch-run-on-infra.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | oc patch gitopsservice cluster --type=merge --patch='{"spec": {"runOnInfra": true, "tolerations": [{"effect": "NoSchedule", "key": "infra", "value": "reserved"}]}}' 6 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-077_validate_workload_status_monitoring_alert/01-install.yaml: -------------------------------------------------------------------------------- 1 | # apiVersion: argoproj.io/v1alpha1 2 | # kind: ArgoCD 3 | # metadata: 4 | # name: openshift-gitops 5 | # namespace: openshift-gitops 6 | # labels: 7 | # example: argocd 8 | # spec: 9 | # applicationSet: 10 | # image: test-image 11 | # monitoring: 12 | # enabled: true 13 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-078_validate_default_argocd_consoleLink/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: openshift-gitops 5 | namespace: openshift-gitops 6 | status: 7 | phase: Available 8 | --- 9 | apiVersion: console.openshift.io/v1 10 | kind: ConsoleLink 11 | metadata: 12 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-078_validate_default_argocd_consoleLink/02-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: console.openshift.io/v1 2 | kind: ConsoleLink 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-078_validate_default_argocd_consoleLink/04-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: console.openshift.io/v1 2 | kind: ConsoleLink 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-078_validate_default_argocd_consoleLink/06-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: console.openshift.io/v1 2 | kind: ConsoleLink 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-078_validate_default_argocd_consoleLink/08-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: console.openshift.io/v1 2 | kind: ConsoleLink 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-083_validate_apps_in_any_namespace/01-create-ns-managed-by.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: Namespace 4 | metadata: 5 | name: test-1-24-custom 6 | labels: 7 | argocd.argoproj.io/managed-by: openshift-gitops 8 | 9 | 10 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-083_validate_apps_in_any_namespace/02-add-source-ns.yaml: -------------------------------------------------------------------------------- 1 | 2 | apiVersion: argoproj.io/v1alpha1 3 | kind: ArgoCD 4 | metadata: 5 | name: openshift-gitops 6 | namespace: openshift-gitops 7 | spec: 8 | sourceNamespaces: 9 | - test-1-24-custom -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-083_validate_apps_in_any_namespace/03-delete.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: kuttl.dev/v1beta1 3 | kind: TestStep 4 | delete: 5 | - apiVersion: v1 6 | kind: Namespace 7 | name: test-1-24-custom -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-083_validate_apps_in_any_namespace/04-change-source-namespaces.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: openshift-gitops 5 | namespace: openshift-gitops 6 | spec: 7 | sourceNamespaces: -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-083_validate_apps_in_any_namespace/04-errors.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: Namespace 4 | metadata: 5 | labels: 6 | argocd.argoproj.io/managed-by-cluster-argocd: openshift-gitops 7 | kubernetes.io/metadata.name: test-1-24-custom 8 | name: test-1-24-custom -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-083_validate_apps_in_any_namespace/05-create-ns-and-add-source-ns.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: Namespace 4 | metadata: 5 | name: test-1-24-custom 6 | --- 7 | apiVersion: argoproj.io/v1alpha1 8 | kind: ArgoCD 9 | metadata: 10 | name: openshift-gitops 11 | namespace: openshift-gitops 12 | spec: 13 | sourceNamespaces: 14 | - test-1-24-custom -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-083_validate_apps_in_any_namespace/06-add-managed-by.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: Namespace 4 | metadata: 5 | name: test-1-24-custom 6 | labels: 7 | argocd.argoproj.io/managed-by: openshift-gitops -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-083_validate_apps_in_any_namespace/08-assert.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: Namespace 4 | metadata: 5 | labels: 6 | kubernetes.io/metadata.name: test-1-24-custom 7 | name: test-1-24-custom -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-083_validate_apps_in_any_namespace/08-change-source-namespaces.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: openshift-gitops 5 | namespace: openshift-gitops 6 | spec: 7 | sourceNamespaces: -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-083_validate_apps_in_any_namespace/99-delete.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: kuttl.dev/v1beta1 3 | kind: TestStep 4 | delete: 5 | - apiVersion: v1 6 | kind: Namespace 7 | name: test-1-24-custom -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-083_validate_apps_in_any_namespace/99-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: test-1-24-custom -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-084_validate_prune_templates/01-create-ns-managed-by.yaml: -------------------------------------------------------------------------------- 1 | # --- 2 | # apiVersion: v1 3 | # kind: Namespace 4 | # metadata: 5 | # name: namespace-gitops-1672 6 | # labels: 7 | # argocd.argoproj.io/managed-by: openshift-gitops -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-084_validate_prune_templates/03-errors.yaml: -------------------------------------------------------------------------------- 1 | # --- 2 | # apiVersion: template.openshift.io/v1 3 | # kind: Template 4 | # metadata: 5 | # name: redis-template-gitops 6 | # namespace: namespace-gitops-1672 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-084_validate_prune_templates/04-delete.yaml: -------------------------------------------------------------------------------- 1 | # --- 2 | # apiVersion: kuttl.dev/v1beta1 3 | # kind: TestStep 4 | # delete: 5 | # - apiVersion: v1 6 | # kind: Namespace 7 | # name: namespace-gitops-1672 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-105_validate_label_selector/02-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1beta1 2 | kind: ArgoCD 3 | metadata: 4 | name: test1 5 | namespace: test-argocd 6 | status: 7 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-105_validate_label_selector/02-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1beta1 2 | kind: ArgoCD 3 | metadata: 4 | name: test1 5 | namespace: test-argocd 6 | labels: 7 | example: basic 8 | spec: {} -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-105_validate_label_selector/03-add-label.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | # patches the argocd instance with the label 5 | - script: | 6 | kubectl label argocd test1 foo=bar -n test-argocd 7 | 8 | - script: sleep 30 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-105_validate_label_selector/03-assert.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: argoproj.io/v1beta1 3 | kind: ArgoCD 4 | metadata: 5 | name: test1 6 | namespace: test-argocd 7 | status: 8 | phase: Available 9 | --- -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-105_validate_label_selector/04-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1beta1 2 | kind: ArgoCD 3 | metadata: 4 | name: test1 5 | namespace: test-argocd 6 | labels: 7 | example: basic 8 | spec: 9 | rbac: 10 | policy: | 11 | g, system:cluster-admins, role:admin 12 | g, cluster-admins, role:admin 13 | scopes: '[email]' -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-105_validate_label_selector/05-remove-label.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | # patches the argocd instance by removing the label 5 | - script: | 6 | kubectl label argocd test1 foo- -n test-argocd 7 | - script: sleep 30 -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-105_validate_label_selector/06-assert.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: ConfigMap 4 | metadata: 5 | name: argocd-rbac-cm 6 | namespace: test-argocd 7 | data: 8 | policy.csv: | 9 | g, system:cluster-admins, role:admin 10 | g, cluster-admins, role:admin 11 | policy.default: role:readonly 12 | scopes: '[email]' -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-105_validate_label_selector/06-errors.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: ConfigMap 4 | metadata: 5 | name: argocd-rbac-cm 6 | namespace: test-argocd 7 | data: 8 | policy.csv: | 9 | g, system:cluster-admins, role:admin 10 | g, cluster-admins, role:admin 11 | policy.default: role:readonly 12 | scopes: '[people]' -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/1-105_validate_label_selector/06-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1beta1 2 | kind: ArgoCD 3 | metadata: 4 | name: test1 5 | namespace: test-argocd 6 | labels: 7 | example: basic 8 | spec: 9 | rbac: 10 | policy: | 11 | g, system:cluster-admins, role:admin 12 | g, cluster-admins, role:admin 13 | scopes: '[people]' 14 | -------------------------------------------------------------------------------- /test/openshift/e2e/ignore-tests/sequential/kuttl-test.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestSuite 3 | name: gitops-operator-e2e 4 | testDirs: 5 | - . 6 | suppress: 7 | - events 8 | timeout: 720 9 | parallel: 1 10 | reportFormat: JSON 11 | reportName: openshift-gitops-e2e 12 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-003_validate_console_link/01-assert.yaml: -------------------------------------------------------------------------------- 1 | # Check that our console link is installed correctly 2 | apiVersion: console.openshift.io/v1 3 | kind: ConsoleLink 4 | metadata: 5 | name: argocd 6 | spec: 7 | location: ApplicationMenu 8 | text: Cluster Argo CD 9 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-003_validate_console_link/01-check-console-link.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/test/openshift/e2e/parallel/1-003_validate_console_link/01-check-console-link.yaml -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-007_validate_namespace_scoped_install/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | server: 7 | route: 8 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-008_validate-custom-argocd-namespace/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | namespace: test-1-8-custom 6 | status: 7 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-008_validate-custom-argocd-namespace/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: test-1-8-custom 5 | --- 6 | apiVersion: argoproj.io/v1alpha1 7 | kind: ArgoCD 8 | metadata: 9 | name: argocd 10 | namespace: test-1-8-custom 11 | spec: 12 | server: 13 | route: 14 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-008_validate-custom-argocd-namespace/03-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: validate-custom-argocd 5 | namespace: test-1-8-custom 6 | status: 7 | health: 8 | status: Healthy 9 | sync: 10 | status: Synced -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-008_validate-custom-argocd-namespace/99-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: v1 5 | kind: Namespace 6 | name: test-1-8-custom -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-012_validate-managed-by-chain/01-assert.yaml: -------------------------------------------------------------------------------- 1 | # Wait for the Operator to become available 2 | apiVersion: argoproj.io/v1alpha1 3 | kind: ArgoCD 4 | metadata: 5 | name: argocd 6 | status: 7 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-012_validate-managed-by-chain/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: test-1-12-custom 5 | --- 6 | apiVersion: v1 7 | kind: Namespace 8 | metadata: 9 | name: test-1-12-custom2 10 | --- 11 | apiVersion: argoproj.io/v1alpha1 12 | kind: ArgoCD 13 | metadata: 14 | name: argocd 15 | spec: {} 16 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-012_validate-managed-by-chain/02-label-namespace.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Label the namespace that we want to manage 3 | apiVersion: kuttl.dev/v1beta1 4 | kind: TestStep 5 | commands: 6 | - script: kubectl label ns test-1-12-custom argocd.argoproj.io/managed-by=$NAMESPACE --overwrite -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-012_validate-managed-by-chain/04-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: test-1-12-custom 5 | status: 6 | health: 7 | status: Healthy 8 | sync: 9 | status: Synced -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-012_validate-managed-by-chain/07-label-namespace.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Label the namespace that we want to manage 3 | apiVersion: kuttl.dev/v1beta1 4 | kind: TestStep 5 | commands: 6 | - script: kubectl label ns test-1-12-custom2 argocd.argoproj.io/managed-by=$NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-012_validate-managed-by-chain/08-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: test-1-12-custom2 5 | status: 6 | health: 7 | status: Healthy 8 | sync: 9 | status: Synced -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-012_validate-managed-by-chain/99-delete.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: kuttl.dev/v1beta1 3 | kind: TestStep 4 | delete: 5 | - apiVersion: v1 6 | kind: Namespace 7 | name: test-1-12-custom 8 | - apiVersion: v1 9 | kind: Namespace 10 | name: test-1-12-custom2 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-019_validate_volume_mounts/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-021_validate_rolebindings/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-023_validate_repo_server_tls/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | namespace: test-1-23-custom 6 | status: 7 | phase: Available 8 | --- 9 | apiVersion: v1 10 | kind: Secret 11 | metadata: 12 | name: argocd-repo-server-tls 13 | namespace: test-1-23-custom -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-023_validate_repo_server_tls/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: test-1-23-custom 5 | --- 6 | apiVersion: argoproj.io/v1alpha1 7 | kind: ArgoCD 8 | metadata: 9 | name: argocd 10 | namespace: test-1-23-custom 11 | spec: 12 | repo: 13 | autotls: "openshift" -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-023_validate_repo_server_tls/02-change-argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | namespace: test-1-23-custom 6 | spec: 7 | repo: 8 | autotls: "openshift" 9 | verifytls: true -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-023_validate_repo_server_tls/03-check-workloads.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: sleep 5 5 | - script: | 6 | oc -n test-1-23-custom get deployment argocd-server \ 7 | -o jsonpath='{.spec.template.spec.containers[0].command}' \ 8 | | jq -r | grep -- '--repo-server-strict-tls' -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-023_validate_repo_server_tls/04-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: guestbook 5 | namespace: test-1-23-custom 6 | status: 7 | health: 8 | status: Healthy 9 | sync: 10 | status: Synced -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-023_validate_repo_server_tls/99-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: v1 5 | kind: Namespace 6 | name: test-1-23-custom -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-025-validate-managed-by-change/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | namespace: test-1-25-argo1 6 | status: 7 | phase: Available 8 | --- 9 | apiVersion: argoproj.io/v1alpha1 10 | kind: ArgoCD 11 | metadata: 12 | name: argocd 13 | namespace: test-1-25-argo2 14 | status: 15 | phase: Available 16 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-025-validate-managed-by-change/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: guestbook 5 | namespace: test-1-25-argo1 6 | status: 7 | health: 8 | status: Healthy 9 | sync: 10 | status: Synced -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-025-validate-managed-by-change/99-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: v1 5 | kind: Namespace 6 | name: test-1-25-target 7 | - apiVersion: v1 8 | kind: Namespace 9 | name: test-1-25-argo1 10 | - apiVersion: v1 11 | kind: Namespace 12 | name: test-1-25-argo2 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-029_validate_tls_secret_no_scale/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: v1 9 | kind: Secret 10 | metadata: 11 | name: argocd-tls -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-029_validate_tls_secret_no_scale/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-029_validate_tls_secret_no_scale/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: argocd-server 5 | status: 6 | observedGeneration: 1 7 | availableReplicas: 1 8 | replicas: 1 9 | readyReplicas: 1 10 | updatedReplicas: 1 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-029_validate_tls_secret_no_scale/03-sleep-and-recheck.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: sleep 10 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-032_validate_resource_inclusions/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-032_validate_resource_inclusions/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-032_validate_resource_inclusions/02-add_resource_inclusions.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | resourceInclusions: | 7 | - apiGroups: 8 | - tekton.dev 9 | clusters: 10 | - '*' 11 | kinds: 12 | - DaemonSet -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-032_validate_resource_inclusions/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-cm 5 | data: 6 | resource.inclusions: | 7 | - apiGroups: 8 | - tekton.dev 9 | clusters: 10 | - '*' 11 | kinds: 12 | - DaemonSet 13 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-033_validate_resource_exclusions/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-033_validate_resource_exclusions/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-033_validate_resource_exclusions/02-add_resource_exclusions.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | resourceExclusions: | 7 | - apiGroups: 8 | - tekton.dev 9 | clusters: 10 | - '*' 11 | kinds: 12 | - DaemonSet -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-033_validate_resource_exclusions/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-cm 5 | data: 6 | resource.exclusions: | 7 | - apiGroups: 8 | - tekton.dev 9 | clusters: 10 | - '*' 11 | kinds: 12 | - DaemonSet 13 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-036_validate_keycloak_resource_reqs/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-036_validate_keycloak_resource_reqs/02-update-sso-keycloak-provider.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | # patches the subscription to change sso provider to keycloak 5 | - script: | 6 | oc patch -n $NAMESPACE argocd/argocd --type='json' -p='[{"op": "add", "path": "/spec/sso", "value": {"provider": "keycloak"}}]' 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-037_validate_argocd_setting_replicas/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-037_validate_argocd_setting_replicas/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-037_validate_argocd_setting_replicas/02-scale_out_server.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | oc patch argocd argocd \ 6 | -n $NAMESPACE \ 7 | --type='json' \ 8 | -p='[{"op": "replace", "path": "/spec/server/replicas", "value": 3 }]' 9 | exit 0 10 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-037_validate_argocd_setting_replicas/03-scale_out_repo.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | oc patch argocd argocd \ 6 | -n $NAMESPACE \ 7 | --type='json' \ 8 | -p='[{"op": "replace", "path": "/spec/repo/replicas", "value": 3 }]' 9 | exit 0 10 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-037_validate_argocd_setting_replicas/04-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: argocd-server 5 | status: 6 | readyReplicas: 3 7 | --- 8 | apiVersion: apps/v1 9 | kind: Deployment 10 | metadata: 11 | name: argocd-repo-server 12 | status: 13 | readyReplicas: 3 14 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-037_validate_argocd_setting_replicas/05-scale_in_server.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | oc patch argocd argocd \ 6 | -n $NAMESPACE \ 7 | --type='json' \ 8 | -p='[{"op": "replace", "path": "/spec/server/replicas", "value": 1 }]' 9 | exit 0 10 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-037_validate_argocd_setting_replicas/06-scale_in_repo.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | oc patch argocd argocd \ 6 | -n $NAMESPACE \ 7 | --type='json' \ 8 | -p='[{"op": "replace", "path": "/spec/repo/replicas", "value": 1 }]' 9 | exit 0 10 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-037_validate_argocd_setting_replicas/07-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: argocd-server 5 | status: 6 | readyReplicas: 1 7 | --- 8 | apiVersion: apps/v1 9 | kind: Deployment 10 | metadata: 11 | name: argocd-repo-server 12 | status: 13 | readyReplicas: 1 14 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-038_validate_productized_images/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-038_validate_productized_images/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-039_validate_fix_argocd-tls-certs-cm/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-039_validate_fix_argocd-tls-certs-cm/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | labels: 6 | example: example-argocd 7 | spec: 8 | server: 9 | route: 10 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-039_validate_fix_argocd-tls-certs-cm/02-modify_configmap.yaml: -------------------------------------------------------------------------------- 1 | kind: ConfigMap 2 | apiVersion: v1 3 | data: 4 | test.example.com: '-----BEGIN CERTIFICATE----- -----END CERTIFICATE-----' 5 | metadata: 6 | name: argocd-tls-certs-cm -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-039_validate_fix_argocd-tls-certs-cm/03-modify_argocd_cr.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | tls: 7 | initialCerts: 8 | test.example.com: BEGIN CERTIFICATE 9 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-039_validate_fix_argocd-tls-certs-cm/04-errors.yaml: -------------------------------------------------------------------------------- 1 | kind: ConfigMap 2 | apiVersion: v1 3 | metadata: 4 | name: argocd-tls-certs-cm 5 | data: 6 | test.example.com: BEGIN CERTIFICATE -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-042_validate_status_host/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: route.openshift.io/v1 9 | kind: Route 10 | metadata: 11 | name: example-argocd-server -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-042_validate_status_host/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | labels: 6 | example: example-argocd 7 | spec: 8 | server: 9 | route: 10 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-042_validate_status_host/03-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | host: modified-route -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-042_validate_status_host/03-modify_route_URL.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | oc patch route example-argocd-server -n $NAMESPACE --type='json' -p='[{"op": "replace", "path": "/spec/host", "value":"modified-route"}]' -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-042_validate_status_host/04-disable_route.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | labels: 6 | example: example-argocd 7 | spec: 8 | server: 9 | route: 10 | enabled: false -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-042_validate_status_host/04-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | host: modified-route -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-043_validate_log_level_format/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-043_validate_log_level_format/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-043_validate_log_level_format/02-change-loglevel.yaml: -------------------------------------------------------------------------------- 1 | 2 | apiVersion: argoproj.io/v1alpha1 3 | kind: ArgoCD 4 | metadata: 5 | name: argocd 6 | spec: 7 | server: 8 | logLevel: debug 9 | logFormat: json 10 | repo: 11 | logLevel: debug 12 | logFormat: json 13 | controller: 14 | logLevel: debug 15 | logFormat: json -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-045_validate_repo_exec_timeout/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-045_validate_repo_exec_timeout/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-045_validate_repo_exec_timeout/02-change-exec-timeout.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | repo: 7 | execTimeout: 300 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-047_validate_custom_env/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-047_validate_custom_env/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-047_validate_custom_env/02-change-env-vars.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | server: 7 | env: 8 | - name: FOO 9 | value: bar 10 | repo: 11 | env: 12 | - name: FOO 13 | value: bar 14 | controller: 15 | env: 16 | - name: FOO 17 | value: bar -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-048_validate_controller_sharding/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-048_validate_controller_sharding/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-048_validate_controller_sharding/02-change-sharding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | controller: 7 | sharding: 8 | enabled: true 9 | replicas: 3 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-048_validate_controller_sharding/04-change-sharding.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | controller: 7 | sharding: 8 | enabled: false 9 | replicas: 3 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-048_validate_controller_sharding/04-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: argocd-application-controller-1 5 | --- 6 | apiVersion: v1 7 | kind: Pod 8 | metadata: 9 | name: argocd-application-controller-2 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-049_validate_parallelism_limit/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: apps/v1 9 | kind: StatefulSet 10 | metadata: 11 | name: argocd-application-controller 12 | status: 13 | readyReplicas: 1 14 | replicas: 1 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-049_validate_parallelism_limit/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-049_validate_parallelism_limit/03-change-limit.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | controller: 7 | parallelismLimit: 20 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-049_validate_parallelism_limit/05-change-back-to-default.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: {} -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-052_validate_rolebinding_number/01-label_namespace.yaml: -------------------------------------------------------------------------------- 1 | # Add the managed-by label to the namespace created by Kuttl 2 | apiVersion: kuttl.dev/v1beta1 3 | kind: TestStep 4 | commands: 5 | - script: | 6 | oc label namespace $NAMESPACE argocd.argoproj.io/managed-by=openshift-gitops 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-053_validate_cluster_admin_rbac/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: openshift-gitops 5 | namespace: openshift-gitops 6 | status: 7 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-053_validate_cluster_admin_rbac/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: openshift-gitops 5 | namespace: openshift-gitops 6 | spec: 7 | rbac: 8 | policy: | 9 | g, system:cluster-admins, role:admin 10 | g, cluster-admins, role:admin -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-054_validate_deploymentconfig/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-054_validate_deploymentconfig/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | server: 7 | route: 8 | enabled: true 9 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-054_validate_deploymentconfig/04-scaledown-deploymentconfig.yaml: -------------------------------------------------------------------------------- 1 | # Point targetRevision to a branch with 0 replicas 2 | # in DeploymentConfig's manifest 3 | apiVersion: argoproj.io/v1alpha1 4 | kind: Application 5 | metadata: 6 | name: app-deploymentconfig 7 | spec: 8 | project: default 9 | source: 10 | path: test/examples/deploymentconfig-example_replica_0 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-057_validate_notifications/04-delete-app.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | 7 | kubectl delete -n $NAMESPACE application.argoproj.io my-app-3 8 | - script: sleep 5 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-058_validate_prometheus_rule/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-058_validate_prometheus_rule/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | server: 7 | route: 8 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-058_validate_prometheus_rule/03-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: test-1-58-custom 5 | status: 6 | health: 7 | status: Healthy 8 | sync: 9 | status: Synced -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-061_validate_resource_tracking_method/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: v1 9 | kind: ConfigMap 10 | metadata: 11 | name: argocd-cm 12 | data: 13 | application.resourceTrackingMethod: label 14 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-061_validate_resource_tracking_method/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-061_validate_resource_tracking_method/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-cm 5 | data: 6 | application.resourceTrackingMethod: annotation 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-061_validate_resource_tracking_method/02-patch_cm_annotation.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | 7 | oc patch argocds.argoproj.io argocd --type=merge -p '{"spec":{"resourceTrackingMethod":"annotation"}}' -n $NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-061_validate_resource_tracking_method/03-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-cm 5 | data: 6 | application.resourceTrackingMethod: annotation+label 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-061_validate_resource_tracking_method/03-patch_cm_annotation_label.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | 7 | oc patch argocds.argoproj.io argocd --type=merge -p '{"spec":{"resourceTrackingMethod":"annotation+label"}}' -n $NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-061_validate_resource_tracking_method/04-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-cm 5 | data: 6 | application.resourceTrackingMethod: label 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-061_validate_resource_tracking_method/04-patch_cm_invalid_method.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | 7 | oc patch argocds.argoproj.io argocd --type=merge -p '{"spec":{"resourceTrackingMethod":"invalid_method"}}' -n $NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-062_validate_extra_config/01-argocd-with-extraconfig.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | extraConfig: 7 | "admin.enabled": "true" # enable admin user through extraConfig -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-062_validate_extra_config/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: v1 9 | kind: ConfigMap 10 | metadata: 11 | name: argocd-cm 12 | data: 13 | admin.enabled: "true" -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-062_validate_extra_config/02-argocd-with-firstclass-and-extraconfig copy.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | disableAdmin: true 7 | extraConfig: 8 | "admin.enabled": "true" # override admin user through extraConfig -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-062_validate_extra_config/02-assert.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: ConfigMap 4 | metadata: 5 | name: argocd-cm 6 | data: 7 | admin.enabled: "true" -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-062_validate_extra_config/03-assert.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: ConfigMap 4 | metadata: 5 | name: argocd-cm 6 | data: 7 | admin.enabled: "true" # operator should reject any manual updates to the configmap. -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-062_validate_extra_config/03-update-configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-cm 5 | data: 6 | admin.enabled: "false" -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-063_validate_statefulset_restart/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: apps/v1 9 | kind: StatefulSet 10 | metadata: 11 | name: example-argocd-application-controller 12 | status: 13 | readyReplicas: 1 14 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-063_validate_statefulset_restart/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-063_validate_statefulset_restart/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: StatefulSet 3 | metadata: 4 | name: example-argocd-application-controller 5 | status: 6 | readyReplicas: 1 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-065_validate_redis_ha_anti_affinity/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | ha: 7 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-066_validate_redis_secure_comm_no_autotls_no_ha/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-066_validate_redis_secure_comm_no_autotls_no_ha/04-create_annotation.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | oc annotate secret argocd-operator-redis-tls argocds.argoproj.io/name=argocd -n $NAMESPACE 7 | sleep 30 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-067_validate_redis_secure_comm_no_autotls_ha/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | ha: 7 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-067_validate_redis_secure_comm_no_autotls_ha/04-create_annotation.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | oc annotate secret argocd-operator-redis-tls argocds.argoproj.io/name=argocd -n $NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-069_validate_redis_secure_comm_autotls_ha/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | ha: 7 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-069_validate_redis_secure_comm_autotls_ha/02-enable_autotls.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | 7 | oc patch argocds.argoproj.io argocd --type=merge -p '{"spec":{"redis":{"autotls":"openshift"}}}' -n $NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-070_validate_config_management_plugin/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: guestbook 5 | namespace: argocd 6 | status: 7 | health: 8 | status: Healthy 9 | sync: 10 | status: Synced 11 | --- 12 | kind: ConfigMap 13 | apiVersion: v1 14 | metadata: 15 | name: guestbook 16 | namespace: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-070_validate_config_management_plugin/99-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: v1 5 | kind: Namespace 6 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-071_validate_SCC_HA/02-create-argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | server: 7 | route: 8 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-071_validate_SCC_HA/03-modify-argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | ha: 7 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-071_validate_SCC_HA/99-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | apiVersion: kuttl.dev/v1beta1 5 | kind: TestStep 6 | delete: 7 | - apiVersion: security.openshift.io/v1 8 | kind: SecurityContextConstraints 9 | metadata: 10 | name: restricted-dropcaps 11 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-072_validate_liveness_probe_removed/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-072_validate_liveness_probe_removed/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-073_validate_rhsso/01-argocd-rhsso.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd-keycloak 5 | labels: 6 | example: keycloak 7 | spec: 8 | sso: 9 | provider: keycloak 10 | keycloak: 11 | rootCA: "---BEGIN---END---" 12 | server: 13 | route: 14 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-073_validate_rhsso/02-sleep.yaml: -------------------------------------------------------------------------------- 1 | # wait for operator to create a new keycloak realm and update OIDC configuration. 2 | apiVersion: kuttl.dev/v1beta1 3 | kind: TestStep 4 | commands: 5 | - script: sleep 60 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-073_validate_rhsso/99-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - command: oc delete argocd example-argocd-keycloak -n $NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-074_validate_terminating_namespace_block/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: gitops-2242-ns-first 5 | labels: 6 | argocd.argoproj.io/managed-by: gitops-2242-ns-main 7 | --- 8 | apiVersion: v1 9 | kind: ConfigMap 10 | metadata: 11 | name: my-config-map-2 12 | namespace: gitops-2242-ns-first -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-074_validate_terminating_namespace_block/03-delete-ns.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | 7 | oc delete ns gitops-2242-ns-first --wait=false 8 | 9 | exit 0 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-074_validate_terminating_namespace_block/04-create-ns.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: gitops-2242-ns-second 5 | labels: 6 | argocd.argoproj.io/managed-by: gitops-2242-ns-main -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-075_validate_dex_anyuid/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: apps/v1 9 | kind: Deployment 10 | metadata: 11 | name: argocd-dex-server 12 | status: 13 | readyReplicas: 1 14 | replicas: 1 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-075_validate_dex_anyuid/02-change_dex_scc_to_anyuid.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | oc adm policy add-scc-to-user anyuid -z argocd-argocd-dex-server -n $NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-075_validate_dex_anyuid/03-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: argocd-dex-server 5 | status: 6 | readyReplicas: 1 7 | replicas: 1 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-075_validate_dex_anyuid/03-restart_dex_pod.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | set -e 6 | oc rollout restart deployment/argocd-dex-server -n $NAMESPACE -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-079_validate_vars_for_notificaitons/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | notifications: 7 | enabled: True 8 | server: 9 | route: 10 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-079_validate_vars_for_notificaitons/02-modify-argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | notifications: 7 | enabled: True 8 | env: 9 | - name: foo 10 | value: bar 11 | server: 12 | route: 13 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-080_validate_regex_support_argocd_rbac/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | labels: 6 | example: basic 7 | spec: {} -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-080_validate_regex_support_argocd_rbac/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-rbac-cm 5 | data: 6 | policy.matchMode: regex -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-080_validate_regex_support_argocd_rbac/02-modify-argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | rbac: 7 | policyMatcherMode: 'regex' 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-080_validate_regex_support_argocd_rbac/03-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-rbac-cm 5 | data: 6 | policy.matchMode: '' -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-080_validate_regex_support_argocd_rbac/03-try-modify.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-rbac-cm 5 | data: 6 | policy.matchMode: '' -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-080_validate_regex_support_argocd_rbac/04-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: argocd-rbac-cm 5 | data: 6 | policy.matchMode: glob -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-080_validate_regex_support_argocd_rbac/04-modify-argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | rbac: 7 | policyMatcherMode: 'glob' -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-082_validate_node_placement/01-default-node-selector.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | labels: 6 | example: basic 7 | spec: {} -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-082_validate_node_placement/02-custom-node-placement.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | labels: 6 | example: basic 7 | spec: 8 | nodePlacement: 9 | nodeSelector: 10 | key1: value1 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-083_validate_kustomize_namereference/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | namespace: namespace-gitops-2038 6 | status: 7 | phase: Available 8 | 9 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-083_validate_kustomize_namereference/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: namespace-gitops-2038 5 | --- 6 | apiVersion: argoproj.io/v1alpha1 7 | kind: ArgoCD 8 | metadata: 9 | name: argocd 10 | namespace: namespace-gitops-2038 11 | spec: 12 | server: 13 | route: 14 | enabled: true 15 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-083_validate_kustomize_namereference/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | namespace: namespace-gitops-2038 5 | annotations: 6 | foo: gitops-configmap 7 | name: gitops-configmap 8 | 9 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-083_validate_kustomize_namereference/99-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: v1 5 | kind: Namespace 6 | name: namespace-gitops-2038 7 | 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-084_validate_status_host_ingress/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: networking.k8s.io/v1 9 | kind: Ingress 10 | metadata: 11 | name: example-argocd-server 12 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-084_validate_status_host_ingress/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | host: test-crane.apps.rh-4.12-111111.dev.openshift.org 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-087_validate_repo_server_settings/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-087_validate_repo_server_settings/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | server: 7 | route: 8 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-087_validate_repo_server_settings/02-assert.yaml: -------------------------------------------------------------------------------- 1 | kind: Deployment 2 | apiVersion: apps/v1 3 | metadata: 4 | name: example-argocd-repo-server 5 | spec: 6 | template: 7 | spec: 8 | serviceAccountName: default 9 | automountServiceAccountToken: false 10 | serviceAccount: default 11 | status: 12 | readyReplicas: 1 -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-087_validate_repo_server_settings/02-modify-argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | repo: 7 | mountsatoken: false 8 | serviceaccount: default -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-087_validate_repo_server_settings/04-modify-serviceaccount.yaml: -------------------------------------------------------------------------------- 1 | kind: ServiceAccount 2 | apiVersion: v1 3 | metadata: 4 | name: modified-default 5 | --- 6 | apiVersion: argoproj.io/v1alpha1 7 | kind: ArgoCD 8 | metadata: 9 | name: example-argocd 10 | spec: 11 | repo: 12 | mountsatoken: true 13 | serviceaccount: modified-default -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-087_validate_repo_server_settings/05-reset-repo-settings.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | repo: 7 | mountsatoken: 8 | serviceaccount: -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-095_validate_dex_clientsecret/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: v1 9 | kind: ServiceAccount 10 | metadata: 11 | name: example-argocd-argocd-dex-server 12 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-095_validate_dex_clientsecret/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | labels: 6 | examples: route 7 | spec: 8 | sso: 9 | provider: dex 10 | dex: 11 | openShiftOAuth: true 12 | server: 13 | route: 14 | enabled: true 15 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-098_validate_dex_clientsecret/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | status: 6 | phase: Available 7 | --- 8 | apiVersion: v1 9 | kind: ServiceAccount 10 | metadata: 11 | name: example-argocd-argocd-dex-server -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-098_validate_dex_clientsecret/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | sso: 7 | provider: dex 8 | dex: 9 | openShiftOAuth: true -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-099_validate_server_autoscale/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: example-argocd 5 | spec: 6 | server: 7 | replicas: 2 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-102_validate_handle_terminating_namespaces/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: gitops-service-argocd 5 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-102_validate_handle_terminating_namespaces/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: gitops-service-argocd 5 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-102_validate_handle_terminating_namespaces/03-delete-ns.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - command: kubectl delete ns jane 5 | ignoreFailure: true 6 | timeout: 30 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-102_validate_handle_terminating_namespaces/04-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: john 5 | labels: 6 | argocd.argoproj.io/managed-by: gitops-service-argocd 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-102_validate_handle_terminating_namespaces/04-create-ns.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: john 5 | labels: 6 | argocd.argoproj.io/managed-by: gitops-service-argocd 7 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-102_validate_handle_terminating_namespaces/05-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestAssert 3 | timeout: 600 4 | --- 5 | apiVersion: argoproj.io/v1alpha1 6 | kind: Application 7 | metadata: 8 | name: my-app 9 | namespace: gitops-service-argocd 10 | status: 11 | sync: 12 | status: Synced 13 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-103_argocd_alpha_to_beta_conversion/01-alpha_argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | dex: 7 | openShiftOAuth: true 8 | server: 9 | route: 10 | enabled: true -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-103_argocd_alpha_to_beta_conversion/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1beta1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | sso: 7 | provider: dex 8 | dex: 9 | openShiftOAuth: true 10 | server: 11 | route: 12 | enabled: true 13 | status: 14 | phase: Available 15 | sso: Running 16 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-103_argocd_alpha_to_beta_conversion/02-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: argoproj.io/v1alpha1 5 | kind: ArgoCD 6 | metadata: 7 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/1-103_argocd_alpha_to_beta_conversion/02-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1beta1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | sso: 7 | provider: dex 8 | dex: 9 | openShiftOAuth: true 10 | server: 11 | route: 12 | enabled: true 13 | -------------------------------------------------------------------------------- /test/openshift/e2e/parallel/kuttl-test.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestSuite 3 | name: gitops-operator-e2e 4 | testDirs: 5 | - . 6 | suppress: 7 | - events 8 | parallel: 5 9 | timeout: 1200 10 | reportFormat: JSON 11 | reportName: openshift-gitops-e2e 12 | -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-001_validate_kam_service/01-check-kam-service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/test/openshift/e2e/sequential/1-001_validate_kam_service/01-check-kam-service.yaml -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-002_validate_backend_service/01-check-backend-service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/test/openshift/e2e/sequential/1-002_validate_backend_service/01-check-backend-service.yaml -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-008_validate-4.9CI-Failures/03-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: Application 3 | metadata: 4 | name: nginx 5 | namespace: source-ns 6 | status: 7 | health: 8 | status: Healthy 9 | sync: 10 | status: Synced 11 | -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-020_validate_redis_ha_nonha/02-enable-ha.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: openshift-gitops 5 | namespace: openshift-gitops 6 | spec: 7 | ha: 8 | enabled: true 9 | -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-020_validate_redis_ha_nonha/02-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Service 3 | metadata: 4 | name: openshift-gitops-redis 5 | namespace: openshift-gitops 6 | --- 7 | apiVersion: apps/v1 8 | kind: Deployment 9 | metadata: 10 | name: openshift-gitops-redis 11 | namespace: openshift-gitops 12 | -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-020_validate_redis_ha_nonha/04-disable-ha.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: openshift-gitops 5 | namespace: openshift-gitops 6 | spec: 7 | ha: 8 | enabled: false 9 | -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-020_validate_redis_ha_nonha/04-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps/v1 2 | kind: Deployment 3 | metadata: 4 | name: openshift-gitops-redis-ha-haproxy 5 | namespace: openshift-gitops 6 | --- 7 | apiVersion: apps/v1 8 | kind: StatefulSet 9 | metadata: 10 | name: openshift-gitops-redis-ha-server 11 | namespace: openshift-gitops 12 | -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-026-validate_backend_service_permissions/01-check-backend-service.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/iam-veeramalla/gitops-operator/7de6c65f74ed8f93be9ea247d2157a88c9b5ea1f/test/openshift/e2e/sequential/1-026-validate_backend_service_permissions/01-check-backend-service.yaml -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-028_validate_run_on_infra/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-028_validate_run_on_infra/02-custom-argocd.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-028_validate_run_on_infra/04-check.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | timeout: 1200 4 | error: 5 | - errors.yaml -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-035_validate_argocd_secret_repopulate/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: openshift-gitops 5 | namespace: openshift-gitops 6 | status: 7 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-035_validate_argocd_secret_repopulate/02-remove_secret_data.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | oc patch secret/argocd-secret -p '{"data":null}' -n openshift-gitops -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-040_validate_quoted_RBAC_group_names/02-create_role.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | output=$(argocd proj role create default somerole) 6 | 7 | if ! [[ "$output" =~ "Role 'somerole' created" ]]; then 8 | echo "Error creating role" 9 | exit 1 10 | fi 11 | exit 0 -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-050_validate_sso/01-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | sso: 7 | provider: dex 8 | dex: 9 | openShiftOAuth: true -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-050_validate_sso/02-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available 7 | sso: Unknown -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-050_validate_sso/02-remove-spec-sso.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | # patches the CR to remove .spec.sso 5 | - script: | 6 | oc patch -n $NAMESPACE argocd/argocd --type='json' -p='[{"op": "remove", "path": "/spec/sso"}]' 7 | - script: sleep 10 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-050_validate_sso/07-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available 7 | sso: Failed -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-050_validate_sso/07-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: apps.openshift.io/v1 2 | kind: DeploymentConfig 3 | metadata: 4 | name: keycloak 5 | -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-050_validate_sso/07-provider-keycloak-dex-spec.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | spec: 6 | sso: 7 | provider: keycloak 8 | dex: 9 | config: test -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-050_validate_sso/08-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: argocd 5 | status: 6 | phase: Available 7 | sso: Running 8 | --- 9 | apiVersion: apps.openshift.io/v1 10 | kind: DeploymentConfig 11 | metadata: 12 | name: keycloak -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-050_validate_sso/08-remove-spec-dex.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | # patches the CR to remove .spec.sso 5 | - script: | 6 | oc patch -n $NAMESPACE argocd/argocd --type='json' -p='[{"op": "remove", "path": "/spec/sso/dex"}]' -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-056_validate_managed-by/02-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: argoproj.io/v1alpha1 5 | kind: ArgoCD 6 | name: example-argocd 7 | namespace: test-1-56-target 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-056_validate_managed-by/07-delete.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | delete: 4 | - apiVersion: argoproj.io/v1alpha1 5 | kind: ArgoCD 6 | name: example-argocd-2 7 | namespace: test-1-56-target-2 -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-056_validate_managed-by/07-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Namespace 3 | metadata: 4 | name: test-1-56-custom-2 5 | labels: 6 | argocd.argoproj.io/managed-by: test-1-56-target-2 -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-071_validate_node_selectors/02-custom-node-selector.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | oc patch gitopsservice cluster --type=merge --patch='{"spec": {"nodeSelector": {"key1": "value1"}}}' 6 | -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-071_validate_node_selectors/03-patch-run-on-infra.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | - script: | 5 | oc patch gitopsservice cluster --type=merge --patch='{"spec": {"runOnInfra": true, "tolerations": [{"effect": "NoSchedule", "key": "infra", "value": "reserved"}]}}' 6 | -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-077_validate_workload_status_monitoring_alert/01-install.yaml: -------------------------------------------------------------------------------- 1 | # apiVersion: argoproj.io/v1alpha1 2 | # kind: ArgoCD 3 | # metadata: 4 | # name: openshift-gitops 5 | # namespace: openshift-gitops 6 | # labels: 7 | # example: argocd 8 | # spec: 9 | # applicationSet: 10 | # image: test-image 11 | # monitoring: 12 | # enabled: true 13 | -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-078_validate_default_argocd_consoleLink/01-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: ArgoCD 3 | metadata: 4 | name: openshift-gitops 5 | namespace: openshift-gitops 6 | status: 7 | phase: Available 8 | --- 9 | apiVersion: console.openshift.io/v1 10 | kind: ConsoleLink 11 | metadata: 12 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-078_validate_default_argocd_consoleLink/02-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: console.openshift.io/v1 2 | kind: ConsoleLink 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-078_validate_default_argocd_consoleLink/04-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: console.openshift.io/v1 2 | kind: ConsoleLink 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-078_validate_default_argocd_consoleLink/06-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: console.openshift.io/v1 2 | kind: ConsoleLink 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-078_validate_default_argocd_consoleLink/08-assert.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: console.openshift.io/v1 2 | kind: ConsoleLink 3 | metadata: 4 | name: argocd -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-084_validate_prune_templates/01-create-ns-managed-by.yaml: -------------------------------------------------------------------------------- 1 | # --- 2 | # apiVersion: v1 3 | # kind: Namespace 4 | # metadata: 5 | # name: namespace-gitops-1672 6 | # labels: 7 | # argocd.argoproj.io/managed-by: openshift-gitops -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-084_validate_prune_templates/03-errors.yaml: -------------------------------------------------------------------------------- 1 | # --- 2 | # apiVersion: template.openshift.io/v1 3 | # kind: Template 4 | # metadata: 5 | # name: redis-template-gitops 6 | # namespace: namespace-gitops-1672 -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-084_validate_prune_templates/04-delete.yaml: -------------------------------------------------------------------------------- 1 | # --- 2 | # apiVersion: kuttl.dev/v1beta1 3 | # kind: TestStep 4 | # delete: 5 | # - apiVersion: v1 6 | # kind: Namespace 7 | # name: namespace-gitops-1672 -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-100_validate_rollouts_resources_creation/01-install-rolloutmanager.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: RolloutManager 3 | metadata: 4 | name: example-rollout-manager 5 | labels: 6 | example: example-rollout-manager 7 | spec: {} 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-100_validate_rollouts_resources_creation/02-assert.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: argoproj.io/v1alpha1 3 | kind: RolloutManager 4 | metadata: 5 | name: example-rollout-manager 6 | status: 7 | phase: Available 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-101_validate_rollout_policyrules/01-install-rollloutmanager.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1alpha1 2 | kind: RolloutManager 3 | metadata: 4 | name: example-rollout-manager 5 | labels: 6 | example: example-rollout-manager 7 | spec: {} 8 | -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-105_validate_label_selector/02-errors.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1beta1 2 | kind: ArgoCD 3 | metadata: 4 | name: test1 5 | namespace: test-argocd 6 | status: 7 | phase: Available -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-105_validate_label_selector/02-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1beta1 2 | kind: ArgoCD 3 | metadata: 4 | name: test1 5 | namespace: test-argocd 6 | labels: 7 | example: basic 8 | spec: {} -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-105_validate_label_selector/03-add-label.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | # patches the argocd instance with the label 5 | - script: | 6 | kubectl label argocd test1 foo=bar -n test-argocd 7 | 8 | - script: sleep 30 -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-105_validate_label_selector/03-assert.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: argoproj.io/v1beta1 3 | kind: ArgoCD 4 | metadata: 5 | name: test1 6 | namespace: test-argocd 7 | status: 8 | phase: Available 9 | --- -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-105_validate_label_selector/04-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1beta1 2 | kind: ArgoCD 3 | metadata: 4 | name: test1 5 | namespace: test-argocd 6 | labels: 7 | example: basic 8 | spec: 9 | rbac: 10 | policy: | 11 | g, system:cluster-admins, role:admin 12 | g, cluster-admins, role:admin 13 | scopes: '[email]' -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-105_validate_label_selector/05-remove-label.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestStep 3 | commands: 4 | # patches the argocd instance by removing the label 5 | - script: | 6 | kubectl label argocd test1 foo- -n test-argocd 7 | - script: sleep 30 -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-105_validate_label_selector/06-assert.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: ConfigMap 4 | metadata: 5 | name: argocd-rbac-cm 6 | namespace: test-argocd 7 | data: 8 | policy.csv: | 9 | g, system:cluster-admins, role:admin 10 | g, cluster-admins, role:admin 11 | policy.default: role:readonly 12 | scopes: '[email]' -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-105_validate_label_selector/06-errors.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | apiVersion: v1 3 | kind: ConfigMap 4 | metadata: 5 | name: argocd-rbac-cm 6 | namespace: test-argocd 7 | data: 8 | policy.csv: | 9 | g, system:cluster-admins, role:admin 10 | g, cluster-admins, role:admin 11 | policy.default: role:readonly 12 | scopes: '[people]' -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/1-105_validate_label_selector/06-install.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: argoproj.io/v1beta1 2 | kind: ArgoCD 3 | metadata: 4 | name: test1 5 | namespace: test-argocd 6 | labels: 7 | example: basic 8 | spec: 9 | rbac: 10 | policy: | 11 | g, system:cluster-admins, role:admin 12 | g, cluster-admins, role:admin 13 | scopes: '[people]' 14 | -------------------------------------------------------------------------------- /test/openshift/e2e/sequential/kuttl-test.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: kuttl.dev/v1beta1 2 | kind: TestSuite 3 | name: gitops-operator-e2e 4 | testDirs: 5 | - . 6 | suppress: 7 | - events 8 | timeout: 720 9 | parallel: 1 10 | reportFormat: JSON 11 | reportName: openshift-gitops-e2e 12 | --------------------------------------------------------------------------------