From a787720f2ae619ebc253a31ac3ffc11017538aa9 Mon Sep 17 00:00:00 2001 From: gitea-admin Date: Sat, 7 Mar 2026 15:00:05 +0000 Subject: [PATCH] Initial render: k3s-dev environment --- .../applications/abinitio-common/config.yaml | 25 + .../abinitio-common/passwords.yaml | 25 + .../abinitio-common/resources.yaml | 25 + .../abinitio-db/authgateway-db.yaml | 25 + .../abinitio-db/controlcenter-db.yaml | 25 + .../abinitio-db/metadatahub-db.yaml | 25 + .../abinitio-platform/authgateway.yaml | 25 + .../abinitio-platform/blueprints.yaml | 25 + .../abinitio-platform/controlcenter.yaml | 25 + .../abinitio-platform/datacatalog.yaml | 25 + .../applications/abinitio-platform/dqa.yaml | 25 + .../applications/abinitio-platform/eme.yaml | 25 + .../enterprise-data-masking.yaml | 25 + .../abinitio-platform/expressit.yaml | 25 + .../abinitio-platform/metadata-promotion.yaml | 25 + .../abinitio-platform/metadatahub.yaml | 25 + .../abinitio-platform/portal.yaml | 25 + .../abinitio-platform/queryit.yaml | 25 + .../abinitio-platform/runtime-locator.yaml | 25 + .../applications/abinitio-platform/rwi.yaml | 25 + .../abinitio-platform/semantic-discovery.yaml | 25 + .../applications/abinitio-platform/tdm.yaml | 25 + .../abinitio-platform/testing-framework.yaml | 25 + .../applications/abinitio-platform/trw.yaml | 25 + .../abinitio-system/ab-runtime-operator.yaml | 25 + .../certificates/cert-manager.yaml | 25 + .../k3s-dev/applications/database/cnpg.yaml | 25 + .../applications/ingress/nginx-ingress.yaml | 25 + .../applications/storage/csi-driver-nfs.yaml | 25 + .../appprojects/abinitio-common-project.yaml | 20 + .../appprojects/abinitio-db-project.yaml | 20 + .../abinitio-platform-project.yaml | 20 + .../appprojects/abinitio-system-project.yaml | 20 + .../appprojects/certificates-project.yaml | 20 + .../k3s-dev/appprojects/database-project.yaml | 20 + .../k3s-dev/appprojects/ingress-project.yaml | 20 + .../k3s-dev/appprojects/storage-project.yaml | 20 + ...ts.io_v1beta1_externalsecret_abinitio.yaml | 22 + ...crets.io_v1beta1_externalsecret_admin.yaml | 22 + ...o_v1beta1_externalsecret_ag-appserver.yaml | 22 + ...v1beta1_externalsecret_ag-db-importer.yaml | 22 + ...s.io_v1beta1_externalsecret_ag-report.yaml | 22 + ...v1beta1_externalsecret_ag-ui-importer.yaml | 22 + ...ets.io_v1beta1_externalsecret_aiadmin.yaml | 22 + ..._v1beta1_externalsecret_aic-join-user.yaml | 22 + ...o_v1beta1_externalsecret_azure-client.yaml | 22 + ...rets.io_v1beta1_externalsecret_bridge.yaml | 22 + ...v1beta1_externalsecret_cafe-join-user.yaml | 22 + ...ets.io_v1beta1_externalsecret_cc-jdbc.yaml | 22 + ...o_v1beta1_externalsecret_cc-join-user.yaml | 22 + ...o_v1beta1_externalsecret_dcs-hmac-key.yaml | 22 + ..._v1beta1_externalsecret_dcs-join-user.yaml | 22 + ...beta1_externalsecret_dcs-utility-user.yaml | 22 + ...o_v1beta1_externalsecret_ei-join-user.yaml | 22 + ..._v1beta1_externalsecret_eme-join-user.yaml | 22 + ...v1beta1_externalsecret_mhub-appserver.yaml | 22 + ...beta1_externalsecret_mhub-db-importer.yaml | 22 + ...v1beta1_externalsecret_mhub-join-user.yaml | 22 + ...io_v1beta1_externalsecret_mhub-report.yaml | 22 + ...beta1_externalsecret_mhub-ui-importer.yaml | 22 + ...eta1_externalsecret_mhub-utility-user.yaml | 22 + ...ets.io_v1beta1_externalsecret_ocagent.yaml | 22 + ...eta1_externalsecret_password-key-file.yaml | 19 + ...o_v1beta1_externalsecret_qi-join-user.yaml | 22 + ...eta1_externalsecret_qiadmin-join-user.yaml | 22 + ...ernalsecret_runtime-locator-join-user.yaml | 22 + ...o_v1beta1_externalsecret_sd-join-user.yaml | 22 + ..._v1beta1_externalsecret_trw-join-user.yaml | 22 + ...anager.io_v1_certificate_abinitio-tls.yaml | 12 + ...ab-shared-data-and-appconf-root-claim.yaml | 12 + .../v1_serviceaccount_abinitio-sa.yaml | 5 + ...o_v1beta1_externalsecret_ag-appserver.yaml | 32 + ...v1beta1_externalsecret_ag-db-importer.yaml | 32 + ...s.io_v1beta1_externalsecret_ag-report.yaml | 32 + ...gresql.cnpg.io_v1_cluster_authgateway.yaml | 45 + .../v1_configmap_authgateway-sql.yaml | 15 + ...ets.io_v1beta1_externalsecret_cc-jdbc.yaml | 33 + ...esql.cnpg.io_v1_cluster_controlcenter.yaml | 37 + .../v1_configmap_controlcenter-sql.yaml | 7310 ++++++++++++ ...v1beta1_externalsecret_mhub-appserver.yaml | 32 + ...beta1_externalsecret_mhub-db-importer.yaml | 32 + ...io_v1beta1_externalsecret_mhub-report.yaml | 32 + ...gresql.cnpg.io_v1_cluster_metadatahub.yaml | 45 + .../v1_configmap_metadatahub-sql.yaml | 15 + ...ps_v1_deployment_authgateway-importer.yaml | 362 + .../apps_v1_deployment_authgateway.yaml | 312 + ...configmap_authgateway-external-config.yaml | 1462 +++ .../v1_configmap_authgateway-importer.yaml | 73 + ...olumeclaim_authgateway-importer-claim.yaml | 18 + .../v1_service_authgateway-importer.yaml | 23 + .../v1_service_authgateway-jgroup.yaml | 25 + .../authgateway/v1_service_authgateway.yaml | 27 + .../apps_v1_deployment_blueprints.yaml | 362 + .../blueprints/v1_configmap_blueprints.yaml | 94 + ...ersistentvolumeclaim_blueprints-claim.yaml | 18 + .../blueprints/v1_service_blueprints.yaml | 31 + ...v1_deployment_controlcenter-scheduler.yaml | 348 + .../apps_v1_deployment_controlcenter.yaml | 311 + ..._v1_role_controlcenter-scheduler-role.yaml | 94 + ...nding_controlcenter-scheduler-role-rb.yaml | 13 + ...nfigmap_controlcenter-external-config.yaml | 67 + .../v1_configmap_controlcenter-scheduler.yaml | 28 + ...meclaim_controlcenter-scheduler-claim.yaml | 18 + .../v1_service_controlcenter-jgroup.yaml | 25 + .../v1_service_controlcenter-scheduler.yaml | 23 + .../v1_service_controlcenter.yaml | 27 + ...iceaccount_controlcenter-scheduler-sa.yaml | 12 + .../apps_v1_deployment_datacatalog.yaml | 312 + ...configmap_datacatalog-external-config.yaml | 60 + .../v1_service_datacatalog-jgroup.yaml | 25 + .../datacatalog/v1_service_datacatalog.yaml | 27 + .../dqa/apps_v1_deployment_dqa.yaml | 368 + .../dqa/v1_configmap_dqa.yaml | 77 + .../v1_persistentvolumeclaim_dqa-claim.yaml | 18 + .../abinitio-platform/dqa/v1_service_dqa.yaml | 23 + .../eme/apps_v1_statefulset_eme.yaml | 375 + .../eme/v1_configmap_eme.yaml | 35 + .../v1_persistentvolumeclaim_eme-claim.yaml | 18 + .../eme/v1_service_eme-headless.yaml | 23 + .../abinitio-platform/eme/v1_service_eme.yaml | 23 + ...v1_deployment_enterprise-data-masking.yaml | 361 + .../v1_configmap_enterprise-data-masking.yaml | 90 + ...meclaim_enterprise-data-masking-claim.yaml | 18 + .../v1_service_enterprise-data-masking.yaml | 27 + .../apps_v1_deployment_expressit-bridge.yaml | 364 + .../apps_v1_deployment_expressit.yaml | 312 + .../v1_configmap_expressit-bridge.yaml | 48 + ...1_configmap_expressit-external-config.yaml | 57 + ...entvolumeclaim_expressit-bridge-claim.yaml | 18 + .../v1_service_expressit-bridge.yaml | 23 + .../v1_service_expressit-jgroup.yaml | 25 + .../expressit/v1_service_expressit.yaml | 27 + ...apps_v1_deployment_metadata-promotion.yaml | 354 + .../v1_configmap_metadata-promotion.yaml | 81 + ...tvolumeclaim_metadata-promotion-claim.yaml | 18 + .../v1_service_metadata-promotion.yaml | 27 + .../apps_v1_deployment_metadata-loader.yaml | 399 + ...ps_v1_deployment_metadatahub-importer.yaml | 382 + .../apps_v1_deployment_metadatahub.yaml | 315 + .../v1_configmap_metadata-loader.yaml | 34 + ...configmap_metadatahub-external-config.yaml | 155 + .../v1_configmap_metadatahub-importer.yaml | 80 + ...tentvolumeclaim_metadata-loader-claim.yaml | 18 + ...olumeclaim_metadatahub-importer-claim.yaml | 18 + .../v1_service_metadata-loader.yaml | 23 + .../v1_service_metadatahub-importer.yaml | 23 + .../v1_service_metadatahub-jgroup.yaml | 25 + .../metadatahub/v1_service_metadatahub.yaml | 27 + .../portal/apps_v1_deployment_cafe.yaml | 310 + .../apps_v1_deployment_portal-nginx.yaml | 326 + ...8s.io_v1_ingress_portal-nginx-ingress.yaml | 57 + .../v1_configmap_cafe-external-config.yaml | 58 + ...onfigmap_portal-nginx-external-config.yaml | 192 + ..._configmap_portal-nginx-platform-data.yaml | 108 + .../portal/v1_service_cafe-jgroup.yaml | 25 + .../portal/v1_service_cafe.yaml | 27 + .../portal/v1_service_portal-nginx.yaml | 27 + .../queryit/apps_v1_deployment_queryit-0.yaml | 409 + .../apps_v1_deployment_queryit-admin.yaml | 312 + .../queryit/v1_configmap_queryit-0.yaml | 71 + ...nfigmap_queryit-admin-external-config.yaml | 52 + ...persistentvolumeclaim_queryit-0-claim.yaml | 18 + .../queryit/v1_service_queryit-0.yaml | 31 + .../v1_service_queryit-admin-jgroup.yaml | 25 + .../queryit/v1_service_queryit-admin.yaml | 27 + .../apps_v1_deployment_runtime-locator.yaml | 168 + ...tingsystemruntimetemplate_hello-world.yaml | 133 + ...zation.k8s.io_v1_role_runtime-locator.yaml | 48 + ...k8s.io_v1_rolebinding_runtime-locator.yaml | 20 + ...v1_configmap_runtime-locator-examples.yaml | 47 + ..._configmap_runtime-locator-nginx-conf.yaml | 73 + .../v1_configmap_runtime-locator.yaml | 30 + .../v1_service_runtime-locator.yaml | 31 + .../v1_serviceaccount_runtime-locator.yaml | 12 + .../rwi/apps_v1_deployment_rwi.yaml | 362 + .../rwi/v1_configmap_rwi.yaml | 29 + .../v1_persistentvolumeclaim_rwi-claim.yaml | 18 + .../abinitio-platform/rwi/v1_service_rwi.yaml | 27 + ...apps_v1_deployment_semantic-discovery.yaml | 364 + .../v1_configmap_semantic-discovery.yaml | 95 + ...tvolumeclaim_semantic-discovery-claim.yaml | 18 + .../v1_service_semantic-discovery.yaml | 27 + .../tdm/batch_v1_job_tdm-4.4.1.1-1.yaml | 327 + .../tdm/v1_configmap_tdm.yaml | 28 + ...ch_v1_job_testing-framework-4.4.1.1-1.yaml | 327 + .../v1_configmap_testing-framework.yaml | 28 + .../trw/apps_v1_deployment_trw.yaml | 316 + .../trw/v1_configmap_trw-external-config.yaml | 54 + .../trw/v1_service_trw-jgroup.yaml | 25 + .../abinitio-platform/trw/v1_service_trw.yaml | 27 + ...tio-system-runtime-controller-webhook.yaml | 38 + ...ystemruntimeclaims.cloud.abinitio.com.yaml | 100 + ...systemruntimepools.cloud.abinitio.com.yaml | 2689 +++++ ...temruntimeprofiles.cloud.abinitio.com.yaml | 860 ++ ...eresourcesrequests.cloud.abinitio.com.yaml | 88 + ...tingsystemruntimes.cloud.abinitio.com.yaml | 9886 +++++++++++++++++ ...emruntimetemplates.cloud.abinitio.com.yaml | 9818 ++++++++++++++++ ...tio-system-runtime-controller-manager.yaml | 95 + ...-runtime-internal-manager-clusterrole.yaml | 21 + ..._abinitio-system-runtime-manager-role.yaml | 81 + ...e-internal-manager-clusterrolebinding.yaml | 12 + ...io-system-runtime-manager-rolebinding.yaml | 12 + ...v1_role_cooperatingsystemruntime-role.yaml | 19 + ...-cooperatingsystemruntime-rolebinding.yaml | 12 + ..._configmap_ab-runtime-operator-config.yaml | 56 + ...-external-config-provider-permissions.yaml | 8 + ...tio-system-runtime-controller-manager.yaml | 30 + ...tio-system-runtime-controller-webhook.yaml | 21 + ...ookconfiguration_cert-manager-webhook.yaml | 36 + ...ookconfiguration_cert-manager-webhook.yaml | 44 + ...n_certificaterequests.cert-manager.io.yaml | 329 + ...finition_certificates.cert-manager.io.yaml | 783 ++ ...ition_challenges.acme.cert-manager.io.yaml | 2051 ++++ ...nition_clusterissuers.cert-manager.io.yaml | 2558 +++++ ...rcedefinition_issuers.cert-manager.io.yaml | 2558 +++++ ...efinition_orders.acme.cert-manager.io.yaml | 268 + ...v1_deployment_cert-manager-cainjector.yaml | 57 + ...ps_v1_deployment_cert-manager-webhook.yaml | 97 + .../apps_v1_deployment_cert-manager.yaml | 77 + ...h_v1_job_cert-manager-startupapicheck.yaml | 54 + ..._clusterissuer_letsencrypt-production.yaml | 15 + ...1_clusterrole_cert-manager-cainjector.yaml | 69 + ...clusterrole_cert-manager-cluster-view.yaml | 22 + ...er-controller-approve:cert-manager-io.yaml | 22 + ..._cert-manager-controller-certificates.yaml | 70 + ...controller-certificatesigningrequests.yaml | 44 + ...le_cert-manager-controller-challenges.yaml | 106 + ...ert-manager-controller-clusterissuers.yaml | 47 + ..._cert-manager-controller-ingress-shim.yaml | 70 + ...rrole_cert-manager-controller-issuers.yaml | 47 + ...errole_cert-manager-controller-orders.yaml | 67 + ...s.io_v1_clusterrole_cert-manager-edit.yaml | 44 + ...s.io_v1_clusterrole_cert-manager-view.yaml | 36 + ...-manager-webhook:subjectaccessreviews.yaml | 19 + ...errolebinding_cert-manager-cainjector.yaml | 20 + ...er-controller-approve:cert-manager-io.yaml | 20 + ..._cert-manager-controller-certificates.yaml | 20 + ...controller-certificatesigningrequests.yaml | 20 + ...ng_cert-manager-controller-challenges.yaml | 20 + ...ert-manager-controller-clusterissuers.yaml | 20 + ..._cert-manager-controller-ingress-shim.yaml | 20 + ...nding_cert-manager-controller-issuers.yaml | 20 + ...inding_cert-manager-controller-orders.yaml | 20 + ...-manager-webhook:subjectaccessreviews.yaml | 21 + ...ert-manager-cainjector:leaderelection.yaml | 31 + ...t-manager-startupapicheck:create-cert.yaml | 24 + ..._cert-manager-webhook:dynamic-serving.yaml | 31 + ...o_v1_role_cert-manager:leaderelection.yaml | 30 + ...ert-manager-cainjector:leaderelection.yaml | 21 + ...t-manager-startupapicheck:create-cert.yaml | 25 + ..._cert-manager-webhook:dynamic-serving.yaml | 22 + ...lebinding_cert-manager:leaderelection.yaml | 22 + .../v1_configmap_cert-manager-webhook.yaml | 17 + .../v1_service_cert-manager-webhook.yaml | 24 + ...erviceaccount_cert-manager-cainjector.yaml | 14 + ...eaccount_cert-manager-startupapicheck.yaml | 18 + ...1_serviceaccount_cert-manager-webhook.yaml | 14 + .../v1_serviceaccount_cert-manager.yaml | 14 + ...n_cnpg-mutating-webhook-configuration.yaml | 95 + ...cnpg-validating-webhook-configuration.yaml | 116 + ...definition_backups.postgresql.cnpg.io.yaml | 445 + ...usterimagecatalogs.postgresql.cnpg.io.yaml | 81 + ...efinition_clusters.postgresql.cnpg.io.yaml | 6570 +++++++++++ ...finition_databases.postgresql.cnpg.io.yaml | 372 + ...on_failoverquorums.postgresql.cnpg.io.yaml | 77 + ...tion_imagecatalogs.postgresql.cnpg.io.yaml | 80 + ...definition_poolers.postgresql.cnpg.io.yaml | 8866 +++++++++++++++ ...ition_publications.postgresql.cnpg.io.yaml | 195 + ...n_scheduledbackups.postgresql.cnpg.io.yaml | 191 + ...tion_subscriptions.postgresql.cnpg.io.yaml | 149 + ...pps_v1_deployment_cnpg-cloudnative-pg.yaml | 104 + ..._clusterrole_cnpg-cloudnative-pg-edit.yaml | 30 + ..._clusterrole_cnpg-cloudnative-pg-view.yaml | 28 + ...io_v1_clusterrole_cnpg-cloudnative-pg.yaml | 237 + ...lusterrolebinding_cnpg-cloudnative-pg.yaml | 18 + ...figmap_cnpg-controller-manager-config.yaml | 12 + .../v1_configmap_cnpg-default-monitoring.yaml | 493 + .../cnpg/v1_service_cnpg-webhook-service.yaml | 20 + ...v1_serviceaccount_cnpg-cloudnative-pg.yaml | 11 + ...configuration_ingress-nginx-admission.yaml | 35 + ...1_deployment_ingress-nginx-controller.yaml | 130 + ...v1_job_ingress-nginx-admission-create.yaml | 58 + ..._v1_job_ingress-nginx-admission-patch.yaml | 60 + ...tworking.k8s.io_v1_ingressclass_nginx.yaml | 14 + ...1_clusterrole_ingress-nginx-admission.yaml | 23 + ...n.k8s.io_v1_clusterrole_ingress-nginx.yaml | 82 + ...errolebinding_ingress-nginx-admission.yaml | 23 + ...o_v1_clusterrolebinding_ingress-nginx.yaml | 19 + ...8s.io_v1_role_ingress-nginx-admission.yaml | 24 + ...rization.k8s.io_v1_role_ingress-nginx.yaml | 91 + ...1_rolebinding_ingress-nginx-admission.yaml | 24 + ...n.k8s.io_v1_rolebinding_ingress-nginx.yaml | 21 + ...v1_configmap_ingress-nginx-controller.yaml | 14 + ...ce_ingress-nginx-controller-admission.yaml | 24 + ...vice_ingress-nginx-controller-metrics.yaml | 27 + .../v1_service_ingress-nginx-controller.yaml | 34 + ...erviceaccount_ingress-nginx-admission.yaml | 17 + .../v1_serviceaccount_ingress-nginx.yaml | 14 + .../apps_v1_daemonset_csi-nfs-node.yaml | 158 + ...apps_v1_deployment_csi-nfs-controller.yaml | 177 + ...terrole_nfs-external-provisioner-role.yaml | 110 + ...lebinding_nfs-csi-provisioner-binding.yaml | 18 + ...ge.k8s.io_v1_csidriver_nfs.csi.k8s.io.yaml | 9 + ...rage.k8s.io_v1_storageclass_local-nfs.yaml | 17 + ..._serviceaccount_csi-nfs-controller-sa.yaml | 11 + .../v1_serviceaccount_csi-nfs-node-sa.yaml | 11 + 306 files changed, 75879 insertions(+) create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-common/config.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-common/passwords.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-common/resources.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-db/authgateway-db.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-db/controlcenter-db.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-db/metadatahub-db.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-platform/authgateway.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-platform/blueprints.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-platform/controlcenter.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-platform/datacatalog.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-platform/dqa.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-platform/eme.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-platform/enterprise-data-masking.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-platform/expressit.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-platform/metadata-promotion.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-platform/metadatahub.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-platform/portal.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-platform/queryit.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-platform/runtime-locator.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-platform/rwi.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-platform/semantic-discovery.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-platform/tdm.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-platform/testing-framework.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-platform/trw.yaml create mode 100644 rendered/argocd/k3s-dev/applications/abinitio-system/ab-runtime-operator.yaml create mode 100644 rendered/argocd/k3s-dev/applications/certificates/cert-manager.yaml create mode 100644 rendered/argocd/k3s-dev/applications/database/cnpg.yaml create mode 100644 rendered/argocd/k3s-dev/applications/ingress/nginx-ingress.yaml create mode 100644 rendered/argocd/k3s-dev/applications/storage/csi-driver-nfs.yaml create mode 100644 rendered/argocd/k3s-dev/appprojects/abinitio-common-project.yaml create mode 100644 rendered/argocd/k3s-dev/appprojects/abinitio-db-project.yaml create mode 100644 rendered/argocd/k3s-dev/appprojects/abinitio-platform-project.yaml create mode 100644 rendered/argocd/k3s-dev/appprojects/abinitio-system-project.yaml create mode 100644 rendered/argocd/k3s-dev/appprojects/certificates-project.yaml create mode 100644 rendered/argocd/k3s-dev/appprojects/database-project.yaml create mode 100644 rendered/argocd/k3s-dev/appprojects/ingress-project.yaml create mode 100644 rendered/argocd/k3s-dev/appprojects/storage-project.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_abinitio.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_admin.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ag-appserver.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ag-db-importer.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ag-report.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ag-ui-importer.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_aiadmin.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_aic-join-user.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_azure-client.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_bridge.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_cafe-join-user.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_cc-jdbc.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_cc-join-user.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_dcs-hmac-key.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_dcs-join-user.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_dcs-utility-user.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ei-join-user.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_eme-join-user.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-appserver.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-db-importer.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-join-user.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-report.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-ui-importer.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-utility-user.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ocagent.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_password-key-file.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_qi-join-user.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_qiadmin-join-user.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_runtime-locator-join-user.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_sd-join-user.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_trw-join-user.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/resources/cert-manager.io_v1_certificate_abinitio-tls.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/resources/v1_persistentvolumeclaim_ab-shared-data-and-appconf-root-claim.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-common/resources/v1_serviceaccount_abinitio-sa.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-db/authgateway-db/external-secrets.io_v1beta1_externalsecret_ag-appserver.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-db/authgateway-db/external-secrets.io_v1beta1_externalsecret_ag-db-importer.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-db/authgateway-db/external-secrets.io_v1beta1_externalsecret_ag-report.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-db/authgateway-db/postgresql.cnpg.io_v1_cluster_authgateway.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-db/authgateway-db/v1_configmap_authgateway-sql.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-db/controlcenter-db/external-secrets.io_v1beta1_externalsecret_cc-jdbc.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-db/controlcenter-db/postgresql.cnpg.io_v1_cluster_controlcenter.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-db/controlcenter-db/v1_configmap_controlcenter-sql.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-db/metadatahub-db/external-secrets.io_v1beta1_externalsecret_mhub-appserver.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-db/metadatahub-db/external-secrets.io_v1beta1_externalsecret_mhub-db-importer.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-db/metadatahub-db/external-secrets.io_v1beta1_externalsecret_mhub-report.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-db/metadatahub-db/postgresql.cnpg.io_v1_cluster_metadatahub.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-db/metadatahub-db/v1_configmap_metadatahub-sql.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/authgateway/apps_v1_deployment_authgateway-importer.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/authgateway/apps_v1_deployment_authgateway.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/authgateway/v1_configmap_authgateway-external-config.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/authgateway/v1_configmap_authgateway-importer.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/authgateway/v1_persistentvolumeclaim_authgateway-importer-claim.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/authgateway/v1_service_authgateway-importer.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/authgateway/v1_service_authgateway-jgroup.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/authgateway/v1_service_authgateway.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/blueprints/apps_v1_deployment_blueprints.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/blueprints/v1_configmap_blueprints.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/blueprints/v1_persistentvolumeclaim_blueprints-claim.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/blueprints/v1_service_blueprints.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/controlcenter/apps_v1_deployment_controlcenter-scheduler.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/controlcenter/apps_v1_deployment_controlcenter.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/controlcenter/rbac.authorization.k8s.io_v1_role_controlcenter-scheduler-role.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/controlcenter/rbac.authorization.k8s.io_v1_rolebinding_controlcenter-scheduler-role-rb.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/controlcenter/v1_configmap_controlcenter-external-config.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/controlcenter/v1_configmap_controlcenter-scheduler.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/controlcenter/v1_persistentvolumeclaim_controlcenter-scheduler-claim.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/controlcenter/v1_service_controlcenter-jgroup.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/controlcenter/v1_service_controlcenter-scheduler.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/controlcenter/v1_service_controlcenter.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/controlcenter/v1_serviceaccount_controlcenter-scheduler-sa.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/datacatalog/apps_v1_deployment_datacatalog.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/datacatalog/v1_configmap_datacatalog-external-config.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/datacatalog/v1_service_datacatalog-jgroup.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/datacatalog/v1_service_datacatalog.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/dqa/apps_v1_deployment_dqa.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/dqa/v1_configmap_dqa.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/dqa/v1_persistentvolumeclaim_dqa-claim.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/dqa/v1_service_dqa.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/eme/apps_v1_statefulset_eme.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/eme/v1_configmap_eme.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/eme/v1_persistentvolumeclaim_eme-claim.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/eme/v1_service_eme-headless.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/eme/v1_service_eme.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/enterprise-data-masking/apps_v1_deployment_enterprise-data-masking.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/enterprise-data-masking/v1_configmap_enterprise-data-masking.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/enterprise-data-masking/v1_persistentvolumeclaim_enterprise-data-masking-claim.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/enterprise-data-masking/v1_service_enterprise-data-masking.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/expressit/apps_v1_deployment_expressit-bridge.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/expressit/apps_v1_deployment_expressit.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/expressit/v1_configmap_expressit-bridge.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/expressit/v1_configmap_expressit-external-config.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/expressit/v1_persistentvolumeclaim_expressit-bridge-claim.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/expressit/v1_service_expressit-bridge.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/expressit/v1_service_expressit-jgroup.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/expressit/v1_service_expressit.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/metadata-promotion/apps_v1_deployment_metadata-promotion.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/metadata-promotion/v1_configmap_metadata-promotion.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/metadata-promotion/v1_persistentvolumeclaim_metadata-promotion-claim.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/metadata-promotion/v1_service_metadata-promotion.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/metadatahub/apps_v1_deployment_metadata-loader.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/metadatahub/apps_v1_deployment_metadatahub-importer.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/metadatahub/apps_v1_deployment_metadatahub.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/metadatahub/v1_configmap_metadata-loader.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/metadatahub/v1_configmap_metadatahub-external-config.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/metadatahub/v1_configmap_metadatahub-importer.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/metadatahub/v1_persistentvolumeclaim_metadata-loader-claim.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/metadatahub/v1_persistentvolumeclaim_metadatahub-importer-claim.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/metadatahub/v1_service_metadata-loader.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/metadatahub/v1_service_metadatahub-importer.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/metadatahub/v1_service_metadatahub-jgroup.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/metadatahub/v1_service_metadatahub.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/portal/apps_v1_deployment_cafe.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/portal/apps_v1_deployment_portal-nginx.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/portal/networking.k8s.io_v1_ingress_portal-nginx-ingress.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/portal/v1_configmap_cafe-external-config.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/portal/v1_configmap_portal-nginx-external-config.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/portal/v1_configmap_portal-nginx-platform-data.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/portal/v1_service_cafe-jgroup.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/portal/v1_service_cafe.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/portal/v1_service_portal-nginx.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/queryit/apps_v1_deployment_queryit-0.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/queryit/apps_v1_deployment_queryit-admin.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/queryit/v1_configmap_queryit-0.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/queryit/v1_configmap_queryit-admin-external-config.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/queryit/v1_persistentvolumeclaim_queryit-0-claim.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/queryit/v1_service_queryit-0.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/queryit/v1_service_queryit-admin-jgroup.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/queryit/v1_service_queryit-admin.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/runtime-locator/apps_v1_deployment_runtime-locator.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/runtime-locator/cloud.abinitio.com_v1_cooperatingsystemruntimetemplate_hello-world.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/runtime-locator/rbac.authorization.k8s.io_v1_role_runtime-locator.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/runtime-locator/rbac.authorization.k8s.io_v1_rolebinding_runtime-locator.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/runtime-locator/v1_configmap_runtime-locator-examples.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/runtime-locator/v1_configmap_runtime-locator-nginx-conf.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/runtime-locator/v1_configmap_runtime-locator.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/runtime-locator/v1_service_runtime-locator.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/runtime-locator/v1_serviceaccount_runtime-locator.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/rwi/apps_v1_deployment_rwi.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/rwi/v1_configmap_rwi.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/rwi/v1_persistentvolumeclaim_rwi-claim.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/rwi/v1_service_rwi.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/semantic-discovery/apps_v1_deployment_semantic-discovery.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/semantic-discovery/v1_configmap_semantic-discovery.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/semantic-discovery/v1_persistentvolumeclaim_semantic-discovery-claim.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/semantic-discovery/v1_service_semantic-discovery.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/tdm/batch_v1_job_tdm-4.4.1.1-1.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/tdm/v1_configmap_tdm.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/testing-framework/batch_v1_job_testing-framework-4.4.1.1-1.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/testing-framework/v1_configmap_testing-framework.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/trw/apps_v1_deployment_trw.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/trw/v1_configmap_trw-external-config.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/trw/v1_service_trw-jgroup.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-platform/trw/v1_service_trw.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator/admissionregistration.k8s.io_v1_mutatingwebhookconfiguration_abinitio-system-runtime-controller-webhook.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator/apiextensions.k8s.io_v1_customresourcedefinition_cooperatingsystemruntimeclaims.cloud.abinitio.com.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator/apiextensions.k8s.io_v1_customresourcedefinition_cooperatingsystemruntimepools.cloud.abinitio.com.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator/apiextensions.k8s.io_v1_customresourcedefinition_cooperatingsystemruntimeprofiles.cloud.abinitio.com.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator/apiextensions.k8s.io_v1_customresourcedefinition_cooperatingsystemruntimeresourcesrequests.cloud.abinitio.com.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator/apiextensions.k8s.io_v1_customresourcedefinition_cooperatingsystemruntimes.cloud.abinitio.com.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator/apiextensions.k8s.io_v1_customresourcedefinition_cooperatingsystemruntimetemplates.cloud.abinitio.com.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator/apps_v1_deployment_abinitio-system-runtime-controller-manager.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator/rbac.authorization.k8s.io_v1_clusterrole_abinitio-system-runtime-internal-manager-clusterrole.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator/rbac.authorization.k8s.io_v1_clusterrole_abinitio-system-runtime-manager-role.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator/rbac.authorization.k8s.io_v1_clusterrolebinding_abinitio-system-runtime-internal-manager-clusterrolebinding.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator/rbac.authorization.k8s.io_v1_clusterrolebinding_abinitio-system-runtime-manager-rolebinding.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator/rbac.authorization.k8s.io_v1_role_cooperatingsystemruntime-role.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator/rbac.authorization.k8s.io_v1_rolebinding_run-cooperatingsystemruntime-rolebinding.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator/v1_configmap_ab-runtime-operator-config.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator/v1_secret_ab-runtime-operator-external-config-provider-permissions.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator/v1_service_abinitio-system-runtime-controller-manager.yaml create mode 100644 rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator/v1_service_abinitio-system-runtime-controller-webhook.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/admissionregistration.k8s.io_v1_mutatingwebhookconfiguration_cert-manager-webhook.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/admissionregistration.k8s.io_v1_validatingwebhookconfiguration_cert-manager-webhook.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/apiextensions.k8s.io_v1_customresourcedefinition_certificaterequests.cert-manager.io.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/apiextensions.k8s.io_v1_customresourcedefinition_certificates.cert-manager.io.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/apiextensions.k8s.io_v1_customresourcedefinition_challenges.acme.cert-manager.io.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/apiextensions.k8s.io_v1_customresourcedefinition_clusterissuers.cert-manager.io.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/apiextensions.k8s.io_v1_customresourcedefinition_issuers.cert-manager.io.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/apiextensions.k8s.io_v1_customresourcedefinition_orders.acme.cert-manager.io.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/apps_v1_deployment_cert-manager-cainjector.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/apps_v1_deployment_cert-manager-webhook.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/apps_v1_deployment_cert-manager.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/batch_v1_job_cert-manager-startupapicheck.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/cert-manager.io_v1_clusterissuer_letsencrypt-production.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrole_cert-manager-cainjector.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrole_cert-manager-cluster-view.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrole_cert-manager-controller-approve:cert-manager-io.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrole_cert-manager-controller-certificates.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrole_cert-manager-controller-certificatesigningrequests.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrole_cert-manager-controller-challenges.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrole_cert-manager-controller-clusterissuers.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrole_cert-manager-controller-ingress-shim.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrole_cert-manager-controller-issuers.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrole_cert-manager-controller-orders.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrole_cert-manager-edit.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrole_cert-manager-view.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrole_cert-manager-webhook:subjectaccessreviews.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrolebinding_cert-manager-cainjector.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrolebinding_cert-manager-controller-approve:cert-manager-io.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrolebinding_cert-manager-controller-certificates.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrolebinding_cert-manager-controller-certificatesigningrequests.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrolebinding_cert-manager-controller-challenges.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrolebinding_cert-manager-controller-clusterissuers.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrolebinding_cert-manager-controller-ingress-shim.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrolebinding_cert-manager-controller-issuers.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrolebinding_cert-manager-controller-orders.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_clusterrolebinding_cert-manager-webhook:subjectaccessreviews.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_role_cert-manager-cainjector:leaderelection.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_role_cert-manager-startupapicheck:create-cert.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_role_cert-manager-webhook:dynamic-serving.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_role_cert-manager:leaderelection.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_rolebinding_cert-manager-cainjector:leaderelection.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_rolebinding_cert-manager-startupapicheck:create-cert.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_rolebinding_cert-manager-webhook:dynamic-serving.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/rbac.authorization.k8s.io_v1_rolebinding_cert-manager:leaderelection.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/v1_configmap_cert-manager-webhook.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/v1_service_cert-manager-webhook.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/v1_serviceaccount_cert-manager-cainjector.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/v1_serviceaccount_cert-manager-startupapicheck.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/v1_serviceaccount_cert-manager-webhook.yaml create mode 100644 rendered/manifests/k3s-dev/certificates/cert-manager/v1_serviceaccount_cert-manager.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/admissionregistration.k8s.io_v1_mutatingwebhookconfiguration_cnpg-mutating-webhook-configuration.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/admissionregistration.k8s.io_v1_validatingwebhookconfiguration_cnpg-validating-webhook-configuration.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/apiextensions.k8s.io_v1_customresourcedefinition_backups.postgresql.cnpg.io.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/apiextensions.k8s.io_v1_customresourcedefinition_clusterimagecatalogs.postgresql.cnpg.io.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/apiextensions.k8s.io_v1_customresourcedefinition_clusters.postgresql.cnpg.io.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/apiextensions.k8s.io_v1_customresourcedefinition_databases.postgresql.cnpg.io.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/apiextensions.k8s.io_v1_customresourcedefinition_failoverquorums.postgresql.cnpg.io.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/apiextensions.k8s.io_v1_customresourcedefinition_imagecatalogs.postgresql.cnpg.io.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/apiextensions.k8s.io_v1_customresourcedefinition_poolers.postgresql.cnpg.io.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/apiextensions.k8s.io_v1_customresourcedefinition_publications.postgresql.cnpg.io.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/apiextensions.k8s.io_v1_customresourcedefinition_scheduledbackups.postgresql.cnpg.io.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/apiextensions.k8s.io_v1_customresourcedefinition_subscriptions.postgresql.cnpg.io.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/apps_v1_deployment_cnpg-cloudnative-pg.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/rbac.authorization.k8s.io_v1_clusterrole_cnpg-cloudnative-pg-edit.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/rbac.authorization.k8s.io_v1_clusterrole_cnpg-cloudnative-pg-view.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/rbac.authorization.k8s.io_v1_clusterrole_cnpg-cloudnative-pg.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/rbac.authorization.k8s.io_v1_clusterrolebinding_cnpg-cloudnative-pg.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/v1_configmap_cnpg-controller-manager-config.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/v1_configmap_cnpg-default-monitoring.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/v1_service_cnpg-webhook-service.yaml create mode 100644 rendered/manifests/k3s-dev/database/cnpg/v1_serviceaccount_cnpg-cloudnative-pg.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/admissionregistration.k8s.io_v1_validatingwebhookconfiguration_ingress-nginx-admission.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/apps_v1_deployment_ingress-nginx-controller.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/batch_v1_job_ingress-nginx-admission-create.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/batch_v1_job_ingress-nginx-admission-patch.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/networking.k8s.io_v1_ingressclass_nginx.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/rbac.authorization.k8s.io_v1_clusterrole_ingress-nginx-admission.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/rbac.authorization.k8s.io_v1_clusterrole_ingress-nginx.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/rbac.authorization.k8s.io_v1_clusterrolebinding_ingress-nginx-admission.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/rbac.authorization.k8s.io_v1_clusterrolebinding_ingress-nginx.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/rbac.authorization.k8s.io_v1_role_ingress-nginx-admission.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/rbac.authorization.k8s.io_v1_role_ingress-nginx.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/rbac.authorization.k8s.io_v1_rolebinding_ingress-nginx-admission.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/rbac.authorization.k8s.io_v1_rolebinding_ingress-nginx.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/v1_configmap_ingress-nginx-controller.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/v1_service_ingress-nginx-controller-admission.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/v1_service_ingress-nginx-controller-metrics.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/v1_service_ingress-nginx-controller.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/v1_serviceaccount_ingress-nginx-admission.yaml create mode 100644 rendered/manifests/k3s-dev/ingress/nginx-ingress/v1_serviceaccount_ingress-nginx.yaml create mode 100644 rendered/manifests/k3s-dev/storage/csi-driver-nfs/apps_v1_daemonset_csi-nfs-node.yaml create mode 100644 rendered/manifests/k3s-dev/storage/csi-driver-nfs/apps_v1_deployment_csi-nfs-controller.yaml create mode 100644 rendered/manifests/k3s-dev/storage/csi-driver-nfs/rbac.authorization.k8s.io_v1_clusterrole_nfs-external-provisioner-role.yaml create mode 100644 rendered/manifests/k3s-dev/storage/csi-driver-nfs/rbac.authorization.k8s.io_v1_clusterrolebinding_nfs-csi-provisioner-binding.yaml create mode 100644 rendered/manifests/k3s-dev/storage/csi-driver-nfs/storage.k8s.io_v1_csidriver_nfs.csi.k8s.io.yaml create mode 100644 rendered/manifests/k3s-dev/storage/csi-driver-nfs/storage.k8s.io_v1_storageclass_local-nfs.yaml create mode 100644 rendered/manifests/k3s-dev/storage/csi-driver-nfs/v1_serviceaccount_csi-nfs-controller-sa.yaml create mode 100644 rendered/manifests/k3s-dev/storage/csi-driver-nfs/v1_serviceaccount_csi-nfs-node-sa.yaml diff --git a/rendered/argocd/k3s-dev/applications/abinitio-common/config.yaml b/rendered/argocd/k3s-dev/applications/abinitio-common/config.yaml new file mode 100644 index 0000000..d0c9382 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-common/config.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-common-config + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-common-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-common/config" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-common/passwords.yaml b/rendered/argocd/k3s-dev/applications/abinitio-common/passwords.yaml new file mode 100644 index 0000000..25437f3 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-common/passwords.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-common-passwords + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-common-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-common/passwords" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-common/resources.yaml b/rendered/argocd/k3s-dev/applications/abinitio-common/resources.yaml new file mode 100644 index 0000000..c2d7d90 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-common/resources.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-common-resources + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-common-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-common/resources" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-db/authgateway-db.yaml b/rendered/argocd/k3s-dev/applications/abinitio-db/authgateway-db.yaml new file mode 100644 index 0000000..669cacb --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-db/authgateway-db.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-db-authgateway-db + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-db-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-db/authgateway-db" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio-db + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-db/controlcenter-db.yaml b/rendered/argocd/k3s-dev/applications/abinitio-db/controlcenter-db.yaml new file mode 100644 index 0000000..6b19a12 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-db/controlcenter-db.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-db-controlcenter-db + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-db-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-db/controlcenter-db" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio-db + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-db/metadatahub-db.yaml b/rendered/argocd/k3s-dev/applications/abinitio-db/metadatahub-db.yaml new file mode 100644 index 0000000..8bec9b8 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-db/metadatahub-db.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-db-metadatahub-db + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-db-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-db/metadatahub-db" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio-db + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-platform/authgateway.yaml b/rendered/argocd/k3s-dev/applications/abinitio-platform/authgateway.yaml new file mode 100644 index 0000000..93032fc --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-platform/authgateway.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-platform-authgateway + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-platform-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-platform/authgateway" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-platform/blueprints.yaml b/rendered/argocd/k3s-dev/applications/abinitio-platform/blueprints.yaml new file mode 100644 index 0000000..cec76f6 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-platform/blueprints.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-platform-blueprints + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-platform-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-platform/blueprints" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-platform/controlcenter.yaml b/rendered/argocd/k3s-dev/applications/abinitio-platform/controlcenter.yaml new file mode 100644 index 0000000..a635e52 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-platform/controlcenter.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-platform-controlcenter + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-platform-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-platform/controlcenter" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-platform/datacatalog.yaml b/rendered/argocd/k3s-dev/applications/abinitio-platform/datacatalog.yaml new file mode 100644 index 0000000..f999b29 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-platform/datacatalog.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-platform-datacatalog + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-platform-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-platform/datacatalog" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-platform/dqa.yaml b/rendered/argocd/k3s-dev/applications/abinitio-platform/dqa.yaml new file mode 100644 index 0000000..f1ac125 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-platform/dqa.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-platform-dqa + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-platform-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-platform/dqa" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-platform/eme.yaml b/rendered/argocd/k3s-dev/applications/abinitio-platform/eme.yaml new file mode 100644 index 0000000..ff51ccb --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-platform/eme.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-platform-eme + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-platform-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-platform/eme" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-platform/enterprise-data-masking.yaml b/rendered/argocd/k3s-dev/applications/abinitio-platform/enterprise-data-masking.yaml new file mode 100644 index 0000000..1995b7e --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-platform/enterprise-data-masking.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-platform-enterprise-data-masking + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-platform-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-platform/enterprise-data-masking" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-platform/expressit.yaml b/rendered/argocd/k3s-dev/applications/abinitio-platform/expressit.yaml new file mode 100644 index 0000000..c5e9887 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-platform/expressit.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-platform-expressit + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-platform-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-platform/expressit" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-platform/metadata-promotion.yaml b/rendered/argocd/k3s-dev/applications/abinitio-platform/metadata-promotion.yaml new file mode 100644 index 0000000..651dbd4 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-platform/metadata-promotion.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-platform-metadata-promotion + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-platform-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-platform/metadata-promotion" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-platform/metadatahub.yaml b/rendered/argocd/k3s-dev/applications/abinitio-platform/metadatahub.yaml new file mode 100644 index 0000000..d6c6216 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-platform/metadatahub.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-platform-metadatahub + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-platform-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-platform/metadatahub" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-platform/portal.yaml b/rendered/argocd/k3s-dev/applications/abinitio-platform/portal.yaml new file mode 100644 index 0000000..4246fd6 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-platform/portal.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-platform-portal + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-platform-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-platform/portal" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-platform/queryit.yaml b/rendered/argocd/k3s-dev/applications/abinitio-platform/queryit.yaml new file mode 100644 index 0000000..a869f8c --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-platform/queryit.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-platform-queryit + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-platform-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-platform/queryit" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-platform/runtime-locator.yaml b/rendered/argocd/k3s-dev/applications/abinitio-platform/runtime-locator.yaml new file mode 100644 index 0000000..31134eb --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-platform/runtime-locator.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-platform-runtime-locator + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-platform-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-platform/runtime-locator" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-platform/rwi.yaml b/rendered/argocd/k3s-dev/applications/abinitio-platform/rwi.yaml new file mode 100644 index 0000000..de92f4c --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-platform/rwi.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-platform-rwi + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-platform-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-platform/rwi" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-platform/semantic-discovery.yaml b/rendered/argocd/k3s-dev/applications/abinitio-platform/semantic-discovery.yaml new file mode 100644 index 0000000..a3ea69f --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-platform/semantic-discovery.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-platform-semantic-discovery + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-platform-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-platform/semantic-discovery" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-platform/tdm.yaml b/rendered/argocd/k3s-dev/applications/abinitio-platform/tdm.yaml new file mode 100644 index 0000000..d34edc3 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-platform/tdm.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-platform-tdm + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-platform-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-platform/tdm" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-platform/testing-framework.yaml b/rendered/argocd/k3s-dev/applications/abinitio-platform/testing-framework.yaml new file mode 100644 index 0000000..52e29d4 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-platform/testing-framework.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-platform-testing-framework + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-platform-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-platform/testing-framework" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-platform/trw.yaml b/rendered/argocd/k3s-dev/applications/abinitio-platform/trw.yaml new file mode 100644 index 0000000..d76ff89 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-platform/trw.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-platform-trw + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-platform-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-platform/trw" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/abinitio-system/ab-runtime-operator.yaml b/rendered/argocd/k3s-dev/applications/abinitio-system/ab-runtime-operator.yaml new file mode 100644 index 0000000..c90ffd8 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/abinitio-system/ab-runtime-operator.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: abinitio-system-ab-runtime-operator + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: abinitio-system-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/abinitio-system/ab-runtime-operator" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio-system + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/certificates/cert-manager.yaml b/rendered/argocd/k3s-dev/applications/certificates/cert-manager.yaml new file mode 100644 index 0000000..e1fea84 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/certificates/cert-manager.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: certificates-cert-manager + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: certificates-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/certificates/cert-manager" + destination: + server: "https://kubernetes.default.svc" + namespace: cert-manager + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/database/cnpg.yaml b/rendered/argocd/k3s-dev/applications/database/cnpg.yaml new file mode 100644 index 0000000..f6236fe --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/database/cnpg.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: database-cnpg + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: database-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/database/cnpg" + destination: + server: "https://kubernetes.default.svc" + namespace: abinitio-db + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/ingress/nginx-ingress.yaml b/rendered/argocd/k3s-dev/applications/ingress/nginx-ingress.yaml new file mode 100644 index 0000000..c765ffe --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/ingress/nginx-ingress.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: ingress-nginx-ingress + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: ingress-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/ingress/nginx-ingress" + destination: + server: "https://kubernetes.default.svc" + namespace: ingress-nginx + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/applications/storage/csi-driver-nfs.yaml b/rendered/argocd/k3s-dev/applications/storage/csi-driver-nfs.yaml new file mode 100644 index 0000000..7ce31e3 --- /dev/null +++ b/rendered/argocd/k3s-dev/applications/storage/csi-driver-nfs.yaml @@ -0,0 +1,25 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: storage-csi-driver-nfs + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: storage-project + source: + repoURL: "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + targetRevision: HEAD + path: "rendered/manifests/k3s-dev/storage/csi-driver-nfs" + destination: + server: "https://kubernetes.default.svc" + namespace: kube-system + syncPolicy: + syncOptions: + - CreateNamespace=true + - ServerSideApply=true + automated: + selfHeal: true + prune: true diff --git a/rendered/argocd/k3s-dev/appprojects/abinitio-common-project.yaml b/rendered/argocd/k3s-dev/appprojects/abinitio-common-project.yaml new file mode 100644 index 0000000..63c25e4 --- /dev/null +++ b/rendered/argocd/k3s-dev/appprojects/abinitio-common-project.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: abinitio-common-project + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "-1" +spec: + description: "Abinitio-common project generated for environment k3s-dev" + sourceRepos: + - "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + destinations: + - server: "https://kubernetes.default.svc" + namespace: abinitio + clusterResourceWhitelist: + - group: "*" + kind: "*" + namespaceResourceBlacklist: + - group: "" + kind: "ResourceQuota" diff --git a/rendered/argocd/k3s-dev/appprojects/abinitio-db-project.yaml b/rendered/argocd/k3s-dev/appprojects/abinitio-db-project.yaml new file mode 100644 index 0000000..bdb1bbb --- /dev/null +++ b/rendered/argocd/k3s-dev/appprojects/abinitio-db-project.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: abinitio-db-project + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "-1" +spec: + description: "Abinitio-db project generated for environment k3s-dev" + sourceRepos: + - "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + destinations: + - server: "https://kubernetes.default.svc" + namespace: abinitio-db + clusterResourceWhitelist: + - group: "*" + kind: "*" + namespaceResourceBlacklist: + - group: "" + kind: "ResourceQuota" diff --git a/rendered/argocd/k3s-dev/appprojects/abinitio-platform-project.yaml b/rendered/argocd/k3s-dev/appprojects/abinitio-platform-project.yaml new file mode 100644 index 0000000..60a6d03 --- /dev/null +++ b/rendered/argocd/k3s-dev/appprojects/abinitio-platform-project.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: abinitio-platform-project + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "-1" +spec: + description: "Abinitio-platform project generated for environment k3s-dev" + sourceRepos: + - "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + destinations: + - server: "https://kubernetes.default.svc" + namespace: abinitio + clusterResourceWhitelist: + - group: "*" + kind: "*" + namespaceResourceBlacklist: + - group: "" + kind: "ResourceQuota" diff --git a/rendered/argocd/k3s-dev/appprojects/abinitio-system-project.yaml b/rendered/argocd/k3s-dev/appprojects/abinitio-system-project.yaml new file mode 100644 index 0000000..dd80370 --- /dev/null +++ b/rendered/argocd/k3s-dev/appprojects/abinitio-system-project.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: abinitio-system-project + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "-1" +spec: + description: "Abinitio-system project generated for environment k3s-dev" + sourceRepos: + - "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + destinations: + - server: "https://kubernetes.default.svc" + namespace: abinitio-system + clusterResourceWhitelist: + - group: "*" + kind: "*" + namespaceResourceBlacklist: + - group: "" + kind: "ResourceQuota" diff --git a/rendered/argocd/k3s-dev/appprojects/certificates-project.yaml b/rendered/argocd/k3s-dev/appprojects/certificates-project.yaml new file mode 100644 index 0000000..b26fbb8 --- /dev/null +++ b/rendered/argocd/k3s-dev/appprojects/certificates-project.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: certificates-project + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "-1" +spec: + description: "Certificates project generated for environment k3s-dev" + sourceRepos: + - "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + destinations: + - server: "https://kubernetes.default.svc" + namespace: cert-manager + clusterResourceWhitelist: + - group: "*" + kind: "*" + namespaceResourceBlacklist: + - group: "" + kind: "ResourceQuota" diff --git a/rendered/argocd/k3s-dev/appprojects/database-project.yaml b/rendered/argocd/k3s-dev/appprojects/database-project.yaml new file mode 100644 index 0000000..32e86ee --- /dev/null +++ b/rendered/argocd/k3s-dev/appprojects/database-project.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: database-project + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "-1" +spec: + description: "Database project generated for environment k3s-dev" + sourceRepos: + - "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + destinations: + - server: "https://kubernetes.default.svc" + namespace: abinitio-db + clusterResourceWhitelist: + - group: "*" + kind: "*" + namespaceResourceBlacklist: + - group: "" + kind: "ResourceQuota" diff --git a/rendered/argocd/k3s-dev/appprojects/ingress-project.yaml b/rendered/argocd/k3s-dev/appprojects/ingress-project.yaml new file mode 100644 index 0000000..eac705c --- /dev/null +++ b/rendered/argocd/k3s-dev/appprojects/ingress-project.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: ingress-project + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "-1" +spec: + description: "Ingress project generated for environment k3s-dev" + sourceRepos: + - "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + destinations: + - server: "https://kubernetes.default.svc" + namespace: ingress-nginx + clusterResourceWhitelist: + - group: "*" + kind: "*" + namespaceResourceBlacklist: + - group: "" + kind: "ResourceQuota" diff --git a/rendered/argocd/k3s-dev/appprojects/storage-project.yaml b/rendered/argocd/k3s-dev/appprojects/storage-project.yaml new file mode 100644 index 0000000..e83238d --- /dev/null +++ b/rendered/argocd/k3s-dev/appprojects/storage-project.yaml @@ -0,0 +1,20 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: storage-project + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "-1" +spec: + description: "Storage project generated for environment k3s-dev" + sourceRepos: + - "https://gitea.k3s.sg.ic.cloudguild.gcp.abinitio.com/gitea-admin/ab-initio-manifests.git" + destinations: + - server: "https://kubernetes.default.svc" + namespace: kube-system + clusterResourceWhitelist: + - group: "*" + kind: "*" + namespaceResourceBlacklist: + - group: "" + kind: "ResourceQuota" diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_abinitio.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_abinitio.yaml new file mode 100644 index 0000000..d874c9b --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_abinitio.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: abinitio + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/abinitio + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/abinitio + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: abinitio diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_admin.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_admin.yaml new file mode 100644 index 0000000..de56849 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_admin.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: admin + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/admin + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/admin + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: admin diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ag-appserver.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ag-appserver.yaml new file mode 100644 index 0000000..284c1b3 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ag-appserver.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: ag-appserver + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/ag-appserver + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/ag-appserver + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: ag-appserver diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ag-db-importer.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ag-db-importer.yaml new file mode 100644 index 0000000..ce7bd0e --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ag-db-importer.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: ag-db-importer + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/ag-db-importer + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/ag-db-importer + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: ag-db-importer diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ag-report.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ag-report.yaml new file mode 100644 index 0000000..756bbcd --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ag-report.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: ag-report + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/ag-report + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/ag-report + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: ag-report diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ag-ui-importer.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ag-ui-importer.yaml new file mode 100644 index 0000000..02e69d6 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ag-ui-importer.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: ag-ui-importer + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/ag-ui-importer + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/ag-ui-importer + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: ag-ui-importer diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_aiadmin.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_aiadmin.yaml new file mode 100644 index 0000000..5f4d30f --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_aiadmin.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: aiadmin + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/aiadmin + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/aiadmin + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: aiadmin diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_aic-join-user.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_aic-join-user.yaml new file mode 100644 index 0000000..6b77309 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_aic-join-user.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: aic-join-user + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/aic-join-user + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/aic-join-user + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: aic-join-user diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_azure-client.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_azure-client.yaml new file mode 100644 index 0000000..c9e51d3 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_azure-client.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: azure-client + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/azure-client + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/azure-client + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: azure-client diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_bridge.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_bridge.yaml new file mode 100644 index 0000000..012ad59 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_bridge.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: bridge + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/bridge + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/bridge + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: bridge diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_cafe-join-user.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_cafe-join-user.yaml new file mode 100644 index 0000000..c1048e0 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_cafe-join-user.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: cafe-join-user + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/cafe-join-user + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/cafe-join-user + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: cafe-join-user diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_cc-jdbc.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_cc-jdbc.yaml new file mode 100644 index 0000000..d2ae14d --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_cc-jdbc.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: cc-jdbc + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/cc-jdbc + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/cc-jdbc + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: cc-jdbc diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_cc-join-user.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_cc-join-user.yaml new file mode 100644 index 0000000..ffd04fe --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_cc-join-user.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: cc-join-user + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/cc-join-user + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/cc-join-user + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: cc-join-user diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_dcs-hmac-key.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_dcs-hmac-key.yaml new file mode 100644 index 0000000..108af6a --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_dcs-hmac-key.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: dcs-hmac-key + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/dcs-hmac-key + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/dcs-hmac-key + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: dcs-hmac-key diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_dcs-join-user.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_dcs-join-user.yaml new file mode 100644 index 0000000..a010237 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_dcs-join-user.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: dcs-join-user + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/dcs-join-user + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/dcs-join-user + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: dcs-join-user diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_dcs-utility-user.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_dcs-utility-user.yaml new file mode 100644 index 0000000..349bcf1 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_dcs-utility-user.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: dcs-utility-user + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/dcs-utility-user + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/dcs-utility-user + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: dcs-utility-user diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ei-join-user.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ei-join-user.yaml new file mode 100644 index 0000000..4ad1e59 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ei-join-user.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: ei-join-user + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/ei-join-user + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/ei-join-user + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: ei-join-user diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_eme-join-user.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_eme-join-user.yaml new file mode 100644 index 0000000..f90236d --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_eme-join-user.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: eme-join-user + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/eme-join-user + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/eme-join-user + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: eme-join-user diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-appserver.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-appserver.yaml new file mode 100644 index 0000000..8db5da2 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-appserver.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: mhub-appserver + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/mhub-appserver + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/mhub-appserver + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: mhub-appserver diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-db-importer.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-db-importer.yaml new file mode 100644 index 0000000..9bbb173 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-db-importer.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: mhub-db-importer + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/mhub-db-importer + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/mhub-db-importer + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: mhub-db-importer diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-join-user.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-join-user.yaml new file mode 100644 index 0000000..c3e4615 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-join-user.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: mhub-join-user + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/mhub-join-user + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/mhub-join-user + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: mhub-join-user diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-report.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-report.yaml new file mode 100644 index 0000000..9d4a1a2 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-report.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: mhub-report + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/mhub-report + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/mhub-report + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: mhub-report diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-ui-importer.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-ui-importer.yaml new file mode 100644 index 0000000..45c6b27 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-ui-importer.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: mhub-ui-importer + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/mhub-ui-importer + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/mhub-ui-importer + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: mhub-ui-importer diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-utility-user.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-utility-user.yaml new file mode 100644 index 0000000..33e73c6 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_mhub-utility-user.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: mhub-utility-user + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/mhub-utility-user + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/mhub-utility-user + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: mhub-utility-user diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ocagent.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ocagent.yaml new file mode 100644 index 0000000..bf6e669 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_ocagent.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: ocagent + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/ocagent + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/ocagent + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: ocagent diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_password-key-file.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_password-key-file.yaml new file mode 100644 index 0000000..ed876d1 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_password-key-file.yaml @@ -0,0 +1,19 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: password-key-file + namespace: abinitio +spec: + data: + - remoteRef: + decodingStrategy: Base64 + key: secret/abinitio/password-key-file + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: password-key-file diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_qi-join-user.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_qi-join-user.yaml new file mode 100644 index 0000000..befdcc2 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_qi-join-user.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: qi-join-user + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/qi-join-user + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/qi-join-user + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: qi-join-user diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_qiadmin-join-user.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_qiadmin-join-user.yaml new file mode 100644 index 0000000..e7e66c2 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_qiadmin-join-user.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: qiadmin-join-user + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/qiadmin-join-user + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/qiadmin-join-user + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: qiadmin-join-user diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_runtime-locator-join-user.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_runtime-locator-join-user.yaml new file mode 100644 index 0000000..c66bff6 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_runtime-locator-join-user.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: runtime-locator-join-user + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/runtime-locator-join-user + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/runtime-locator-join-user + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: runtime-locator-join-user diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_sd-join-user.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_sd-join-user.yaml new file mode 100644 index 0000000..f3d885d --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_sd-join-user.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: sd-join-user + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/sd-join-user + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/sd-join-user + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: sd-join-user diff --git a/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_trw-join-user.yaml b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_trw-join-user.yaml new file mode 100644 index 0000000..41c5562 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/passwords/external-secrets.io_v1beta1_externalsecret_trw-join-user.yaml @@ -0,0 +1,22 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: trw-join-user + namespace: abinitio +spec: + data: + - remoteRef: + key: secret/abinitio/trw-join-user + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/trw-join-user + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + creationPolicy: Owner + name: trw-join-user diff --git a/rendered/manifests/k3s-dev/abinitio-common/resources/cert-manager.io_v1_certificate_abinitio-tls.yaml b/rendered/manifests/k3s-dev/abinitio-common/resources/cert-manager.io_v1_certificate_abinitio-tls.yaml new file mode 100644 index 0000000..8aedc04 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/resources/cert-manager.io_v1_certificate_abinitio-tls.yaml @@ -0,0 +1,12 @@ +apiVersion: cert-manager.io/v1 +kind: Certificate +metadata: + name: abinitio-tls + namespace: abinitio +spec: + dnsNames: + - aidp.k3s.sg.ic.cloudguild.gcp.abinitio.com + issuerRef: + kind: ClusterIssuer + name: selfsigned-ca-issuer + secretName: abinitio-tls diff --git a/rendered/manifests/k3s-dev/abinitio-common/resources/v1_persistentvolumeclaim_ab-shared-data-and-appconf-root-claim.yaml b/rendered/manifests/k3s-dev/abinitio-common/resources/v1_persistentvolumeclaim_ab-shared-data-and-appconf-root-claim.yaml new file mode 100644 index 0000000..198452c --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/resources/v1_persistentvolumeclaim_ab-shared-data-and-appconf-root-claim.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: ab-shared-data-and-appconf-root-claim + namespace: abinitio +spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 100Gi + storageClassName: local-nfs diff --git a/rendered/manifests/k3s-dev/abinitio-common/resources/v1_serviceaccount_abinitio-sa.yaml b/rendered/manifests/k3s-dev/abinitio-common/resources/v1_serviceaccount_abinitio-sa.yaml new file mode 100644 index 0000000..38cd813 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-common/resources/v1_serviceaccount_abinitio-sa.yaml @@ -0,0 +1,5 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: abinitio-sa + namespace: abinitio diff --git a/rendered/manifests/k3s-dev/abinitio-db/authgateway-db/external-secrets.io_v1beta1_externalsecret_ag-appserver.yaml b/rendered/manifests/k3s-dev/abinitio-db/authgateway-db/external-secrets.io_v1beta1_externalsecret_ag-appserver.yaml new file mode 100644 index 0000000..53f429a --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-db/authgateway-db/external-secrets.io_v1beta1_externalsecret_ag-appserver.yaml @@ -0,0 +1,32 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: ag-appserver + namespace: abinitio-db +spec: + data: + - remoteRef: + key: secret/abinitio/ag-appserver + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/ag-appserver + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + name: ag-appserver + template: + data: + jdbc-uri: jdbc:postgresql://authgateway-db-rw.abinitio-db:5432/authgateway?password={{ + .password }}&user={{ .username }} + password: '{{ .password }}' + pgpass: authgateway-db-rw:5432:authgateway:{{ .username }}:{{ .password }} + uri: postgresql://{{ .username }}:{{ .password }}@authgateway-db-rw.abinitio-db:5432/authgateway + username: '{{ .username }}' + metadata: + labels: + cnpg.io/reload: "true" diff --git a/rendered/manifests/k3s-dev/abinitio-db/authgateway-db/external-secrets.io_v1beta1_externalsecret_ag-db-importer.yaml b/rendered/manifests/k3s-dev/abinitio-db/authgateway-db/external-secrets.io_v1beta1_externalsecret_ag-db-importer.yaml new file mode 100644 index 0000000..e27db61 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-db/authgateway-db/external-secrets.io_v1beta1_externalsecret_ag-db-importer.yaml @@ -0,0 +1,32 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: ag-db-importer + namespace: abinitio-db +spec: + data: + - remoteRef: + key: secret/abinitio/ag-db-importer + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/ag-db-importer + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + name: ag-db-importer + template: + data: + jdbc-uri: jdbc:postgresql://authgateway-db-rw.abinitio-db:5432/authgateway?password={{ + .password }}&user={{ .username }} + password: '{{ .password }}' + pgpass: authgateway-db-rw:5432:authgateway:{{ .username }}:{{ .password }} + uri: postgresql://{{ .username }}:{{ .password }}@authgateway-db-rw.abinitio-db:5432/authgateway + username: '{{ .username }}' + metadata: + labels: + cnpg.io/reload: "true" diff --git a/rendered/manifests/k3s-dev/abinitio-db/authgateway-db/external-secrets.io_v1beta1_externalsecret_ag-report.yaml b/rendered/manifests/k3s-dev/abinitio-db/authgateway-db/external-secrets.io_v1beta1_externalsecret_ag-report.yaml new file mode 100644 index 0000000..7ebf2c0 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-db/authgateway-db/external-secrets.io_v1beta1_externalsecret_ag-report.yaml @@ -0,0 +1,32 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: ag-report + namespace: abinitio-db +spec: + data: + - remoteRef: + key: secret/abinitio/ag-report + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/ag-report + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + name: ag-report + template: + data: + jdbc-uri: jdbc:postgresql://authgateway-db-rw.abinitio-db:5432/authgateway?password={{ + .password }}&user={{ .username }} + password: '{{ .password }}' + pgpass: authgateway-db-rw:5432:authgateway:{{ .username }}:{{ .password }} + uri: postgresql://{{ .username }}:{{ .password }}@authgateway-db-rw.abinitio-db:5432/authgateway + username: '{{ .username }}' + metadata: + labels: + cnpg.io/reload: "true" diff --git a/rendered/manifests/k3s-dev/abinitio-db/authgateway-db/postgresql.cnpg.io_v1_cluster_authgateway.yaml b/rendered/manifests/k3s-dev/abinitio-db/authgateway-db/postgresql.cnpg.io_v1_cluster_authgateway.yaml new file mode 100644 index 0000000..07303ad --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-db/authgateway-db/postgresql.cnpg.io_v1_cluster_authgateway.yaml @@ -0,0 +1,45 @@ +apiVersion: postgresql.cnpg.io/v1 +kind: Cluster +metadata: + name: authgateway + namespace: abinitio-db +spec: + bootstrap: + initdb: + database: authgateway + owner: ag_appserver + postInitApplicationSQLRefs: + configMapRefs: + - key: authgateway.sql + name: authgateway-sql + secret: + name: ag-appserver + imageName: ghcr.io/cloudnative-pg/postgresql:16 + instances: 2 + managed: + roles: + - login: true + name: ag_appserver + passwordSecret: + name: ag-appserver + - login: true + name: ag_importer + passwordSecret: + name: ag-db-importer + - login: true + name: ag_report + passwordSecret: + name: ag-report + postgresql: + parameters: + effective_cache_size: 6GB + shared_buffers: 3GB + resources: + limits: + cpu: 3 + memory: 12Gi + requests: + cpu: 1 + memory: 4Gi + storage: + size: 30Gi diff --git a/rendered/manifests/k3s-dev/abinitio-db/authgateway-db/v1_configmap_authgateway-sql.yaml b/rendered/manifests/k3s-dev/abinitio-db/authgateway-db/v1_configmap_authgateway-sql.yaml new file mode 100644 index 0000000..9297138 --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-db/authgateway-db/v1_configmap_authgateway-sql.yaml @@ -0,0 +1,15 @@ +apiVersion: v1 +data: + authgateway.sql: | + CREATE ROLE ag_importer; + CREATE ROLE ag_report; + CREATE SCHEMA ag_meta AUTHORIZATION ag_appserver; + CREATE SCHEMA ag_main AUTHORIZATION ag_appserver; + GRANT USAGE ON SCHEMA ag_meta TO ag_importer; + GRANT USAGE ON SCHEMA ag_main TO ag_importer; + GRANT USAGE ON SCHEMA ag_meta TO ag_report; + GRANT USAGE ON SCHEMA ag_main TO ag_report; +kind: ConfigMap +metadata: + name: authgateway-sql + namespace: abinitio-db diff --git a/rendered/manifests/k3s-dev/abinitio-db/controlcenter-db/external-secrets.io_v1beta1_externalsecret_cc-jdbc.yaml b/rendered/manifests/k3s-dev/abinitio-db/controlcenter-db/external-secrets.io_v1beta1_externalsecret_cc-jdbc.yaml new file mode 100644 index 0000000..4b1985b --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-db/controlcenter-db/external-secrets.io_v1beta1_externalsecret_cc-jdbc.yaml @@ -0,0 +1,33 @@ +apiVersion: external-secrets.io/v1beta1 +kind: ExternalSecret +metadata: + name: cc-jdbc + namespace: abinitio-db +spec: + data: + - remoteRef: + key: secret/abinitio/cc-jdbc + property: username + secretKey: username + - remoteRef: + key: secret/abinitio/cc-jdbc + property: password + secretKey: password + refreshInterval: 1m + secretStoreRef: + kind: ClusterSecretStore + name: vault-store + target: + name: cc-jdbc + template: + data: + jdbc-uri: jdbc:postgresql://controlcenter-db-rw.abinitio-db:5432/controlcenter?password={{ + .password }}&user={{ .username }} + password: '{{ .password }}' + pgpass: controlcenter-db-rw:5432:controlcenter:{{ .username }}:{{ .password + }} + uri: postgresql://{{ .username }}:{{ .password }}@controlcenter-db-rw.abinitio-db:5432/controlcenter + username: '{{ .username }}' + metadata: + labels: + cnpg.io/reload: "true" diff --git a/rendered/manifests/k3s-dev/abinitio-db/controlcenter-db/postgresql.cnpg.io_v1_cluster_controlcenter.yaml b/rendered/manifests/k3s-dev/abinitio-db/controlcenter-db/postgresql.cnpg.io_v1_cluster_controlcenter.yaml new file mode 100644 index 0000000..360f0ea --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-db/controlcenter-db/postgresql.cnpg.io_v1_cluster_controlcenter.yaml @@ -0,0 +1,37 @@ +apiVersion: postgresql.cnpg.io/v1 +kind: Cluster +metadata: + name: controlcenter + namespace: abinitio-db +spec: + bootstrap: + initdb: + database: controlcenter + owner: cc_jdbc + postInitApplicationSQLRefs: + configMapRefs: + - key: controlcenter.sql + name: controlcenter-sql + secret: + name: cc-jdbc + imageName: ghcr.io/cloudnative-pg/postgresql:16 + instances: 2 + managed: + roles: + - login: true + name: cc_jdbc + passwordSecret: + name: cc-jdbc + postgresql: + parameters: + effective_cache_size: 4GB + shared_buffers: 2GB + resources: + limits: + cpu: 2 + memory: 8Gi + requests: + cpu: 1 + memory: 4Gi + storage: + size: 30Gi diff --git a/rendered/manifests/k3s-dev/abinitio-db/controlcenter-db/v1_configmap_controlcenter-sql.yaml b/rendered/manifests/k3s-dev/abinitio-db/controlcenter-db/v1_configmap_controlcenter-sql.yaml new file mode 100644 index 0000000..d7cf7dd --- /dev/null +++ b/rendered/manifests/k3s-dev/abinitio-db/controlcenter-db/v1_configmap_controlcenter-sql.yaml @@ -0,0 +1,7310 @@ +apiVersion: v1 +data: + controlcenter.sql: "-- Generated with Control>Center version 4.4.1.2\n\nSET ROLE + \"cc_jdbc\";\n\nSET search_path=\"public\";\n\n-- create database schema\nCREATE + OR REPLACE FUNCTION create_language_plpgsql()\nRETURNS BOOLEAN AS $$\n CREATE + LANGUAGE plpgsql;\n SELECT TRUE;\n$$ LANGUAGE SQL;\n\nSELECT CASE WHEN NOT\n + \ (\n SELECT TRUE AS exists\n FROM pg_language\n WHERE + \ lanname = 'plpgsql'\n UNION\n SELECT FALSE AS exists\n ORDER + BY exists DESC\n LIMIT 1\n )\nTHEN\n create_language_plpgsql()\nELSE\n + \ FALSE\nEND AS plpgsql_created;\n\nDROP FUNCTION create_language_plpgsql();\nCREATE + TABLE OpAnalysisAggregator (\n AnalysisAggregatorId bigint not null,\n + \ AnalysisObjectId bigint not null,\n Name varchar(256) not null,\n + \ MetricName varchar(256) not null,\n Units varchar(256) not null,\n + \ AggregationType varchar(256) not null,\n primary key (AnalysisAggregatorId),\n + \ unique (AnalysisObjectId, MetricName, Units, AggregationType),\n unique + (AnalysisObjectId, Name)\n );\nCREATE TABLE OpAnalysisAggregatorSQL (\n AnalysisAggregatorSQLId + bigint not null,\n AnalysisAggregatorId bigint not null,\n JoinTableName + varchar(256),\n JoinPKName varchar(256),\n BaseTableName varchar(256),\n + \ BaseFKName varchar(256),\n JoinType varchar(256),\n AggregatorSQL + varchar(2048) not null,\n SelectSQL varchar(2048),\n primary key + (AnalysisAggregatorSQLId)\n );\nCREATE TABLE OpAnalysisObject (\n AnalysisObjectId + bigint not null,\n Name varchar(256) not null,\n TableName varchar(256) + not null,\n BucketSQL varchar(2048) not null,\n primary key (AnalysisObjectId),\n + \ unique (Name)\n );\nCREATE TABLE OpAnalysisRow (\n AnalysisRowId + bigint not null,\n AnalysisObjectId bigint not null,\n Name varchar(256) + not null,\n primary key (AnalysisRowId),\n unique (AnalysisObjectId, + Name)\n );\nCREATE TABLE OpAnalysisRowSQL (\n AnalysisRowSQLId bigint + not null,\n AnalysisRowId bigint not null,\n JoinTableName varchar(256) + not null,\n JoinPKName varchar(256) not null,\n BaseTableName varchar(256) + not null,\n BaseFKName varchar(256) not null,\n JoinType varchar(256) + not null,\n SelectSQL varchar(2048),\n primary key (AnalysisRowSQLId)\n + \ );\nCREATE TABLE OpApplication (\n ApplicationId bigint not null,\n + \ SystemId bigint not null,\n Name varchar(128) not null,\n Description + varchar(1024),\n EndJobCutHorizon timestamp,\n IsApplicationNeverAutoGen + char(1) not null check (IsApplicationNeverAutoGen in ('N','Y')),\n WarningNotificationGroupId + bigint,\n ErrorNotificationGroupId bigint,\n SuccessNotificationGroupId + bigint,\n primary key (ApplicationId),\n unique (SystemId, Name)\n + \ );\nCREATE TABLE OpAudit (\n AuditId bigint not null,\n UpdateStamp + timestamp not null,\n PrincipalId bigint not null,\n PrincipalName + varchar(128) not null,\n Verb varchar(32) not null,\n VerbContext + varchar(1024),\n ObjectTable varchar(32) not null,\n ObjectId bigint + not null,\n ObjectLogicalIdentifier varchar(1024) not null,\n SystemId + bigint,\n SystemName varchar(128),\n primary key (AuditId)\n );\nCREATE + TABLE OpAutoGenStats (\n AutoGenStatsId bigint not null,\n SystemId + bigint not null,\n LastRun timestamp,\n LastNumJobs integer,\n LastStartInclusive + timestamp,\n LastEndExclusive timestamp,\n NextRun timestamp,\n + \ NextStartInclusive timestamp,\n NextEndExclusive timestamp,\n primary + key (AutoGenStatsId),\n unique (SystemId)\n );\nCREATE TABLE OpBridge + (\n BridgeId bigint not null,\n HostId bigint not null,\n Port + integer not null,\n Path varchar(256),\n IsHttps char(1) not null + check (IsHttps in ('N','Y')),\n RPCUsername varchar(128),\n RPCPassword + varchar(2048),\n SecurityConfig varchar(256),\n SecurityTypeEnum + varchar(64) not null,\n SecurityHashTypeEnum varchar(64) not null,\n kdfIterations + integer,\n kdfSalt varchar(2048),\n EligibleForKeyCheck char(1) + check (EligibleForKeyCheck in ('N','Y')),\n primary key (BridgeId),\n unique + (HostId, Port)\n );\nCREATE TABLE OpCalendar (\n CalendarId bigint not + null,\n SystemId bigint not null,\n Name varchar(128) not null,\n + \ BookDate varchar(64),\n primary key (CalendarId),\n unique + (SystemId, Name)\n );\nCREATE TABLE OpCalendarYear (\n CalendarId bigint + not null,\n Year integer not null,\n Days varchar(366),\n primary + key (CalendarId, Year)\n );\nCREATE TABLE OpConfigValue (\n ConfigValueId + bigint not null,\n Name varchar(128) not null,\n Description varchar(1024),\n + \ ValueTypeEnum varchar(64),\n IsHidden char(1) not null check (IsHidden + in ('N','Y')),\n Value varchar(2048),\n primary key (ConfigValueId),\n + \ unique (Name)\n );\nCREATE TABLE OpDailyCpuUsage (\n DailyCpuUsageId + bigint not null,\n KeyId bigint,\n Hostname varchar(128) not null,\n + \ ApplicationId bigint not null,\n CollectionDay timestamp not null,\n + \ ExecutableEnum varchar(64) not null,\n Username varchar(128) not + null,\n HostnamePlace varchar(128) not null,\n AbAgreementEnvironment + varchar(128) not null,\n AbAgreementProject varchar(128) not null,\n Value + float8,\n primary key (DailyCpuUsageId),\n unique (KeyId, Hostname, + ApplicationId, CollectionDay, ExecutableEnum, Username, HostnamePlace, AbAgreementEnvironment, + AbAgreementProject)\n );\nCREATE TABLE OpDailyCpuUsageRollupState (\n DailyCpuUsageRollupStateId + bigint not null,\n UpdateStamp timestamp not null,\n CollectionDay + timestamp not null,\n RollupStateEnum varchar(64) not null,\n primary + key (DailyCpuUsageRollupStateId),\n unique (CollectionDay)\n );\nCREATE + TABLE OpDay (\n JobDefinitionId bigint not null,\n DayIndex integer + not null,\n DayModeEnum varchar(64) not null,\n MonthDayOffset integer,\n + \ NonOperationalOffset integer,\n DayOfWeekEnum varchar(64),\n WeekOfMonthEnum + varchar(64),\n primary key (JobDefinitionId, DayIndex)\n );\nCREATE + TABLE OpEmeExecutable (\n EmeExecutableId bigint not null,\n UpdateStamp + timestamp not null,\n AbAirRoot varchar(256) not null,\n AbAirBranch + varchar(256) not null,\n EmeUrl varchar(256) not null,\n PublishedEmeName + varchar(256),\n primary key (EmeExecutableId),\n unique (AbAirRoot, + AbAirBranch, EmeUrl)\n );\nCREATE TABLE OpExecutable (\n ExecutableId + bigint not null,\n UpdateStamp timestamp not null,\n SystemId bigint + not null,\n Hostname varchar(128) not null,\n ExpandedPath varchar(512) + not null,\n ExecutableEnum varchar(64) not null,\n PrototypeExecutableId + bigint,\n FrequencyEnum varchar(64) not null,\n Frequency integer + not null,\n MicrographEnum varchar(64) not null,\n EmeExecutableId + bigint,\n primary key (ExecutableId),\n unique (SystemId, Hostname, + ExpandedPath)\n );\nCREATE TABLE OpFileAndEventConstraint (\n FileAndEventConstraintId + bigint not null,\n ConstraintDiscriminator varchar(32) not null,\n JobDefinitionId + bigint,\n FileURL varchar(4000),\n FileRetryIntervalSec varchar(64),\n + \ IsRepeatableForFileCreateTime char(1) check (IsRepeatableForFileCreateTime + in ('N','Y')),\n PropertyTypeId bigint,\n IsRegExSyntax char(1) + check (IsRegExSyntax in ('N','Y')),\n IsFirstMatchOnly char(1) check (IsFirstMatchOnly + in ('N','Y')),\n EventName varchar(256),\n ListSeparator varchar(64),\n + \ ConstraintIndex integer,\n primary key (FileAndEventConstraintId)\n + \ );\nCREATE TABLE OpFileSystem (\n FileSystemId bigint not null,\n HostId + bigint not null,\n Path varchar(512) not null,\n primary key (FileSystemId),\n + \ unique (HostId, Path)\n );\nCREATE TABLE OpFileSystemMetric (\n FileSystemMetricId + bigint not null,\n FileSystemId bigint not null,\n Name varchar(32) + not null,\n Units varchar(255) not null,\n ThresholdComparisonEnum + varchar(32),\n WarningThreshold float8,\n ErrorThreshold float8,\n + \ primary key (FileSystemMetricId),\n unique (FileSystemId, Name)\n + \ );\nCREATE TABLE OpFileSystemMetricValue (\n FileSystemMetricValueId + bigint not null,\n FileSystemMetricId bigint not null,\n CollectionTime + timestamp not null,\n Value float8 not null,\n primary key (FileSystemMetricValueId),\n + \ unique (FileSystemMetricId, CollectionTime)\n );\nCREATE TABLE OpGroupXref + (\n ChildPrincipalId bigint not null,\n ParentGroupId bigint not + null,\n primary key (ChildPrincipalId, ParentGroupId)\n );\nCREATE TABLE + OpHomeView (\n HomeViewId bigint not null,\n UpdateStamp timestamp + not null,\n Name varchar(128) not null,\n Ordinal integer not null,\n + \ IsMonitored char(1) not null check (IsMonitored in ('N','Y')),\n primary + key (HomeViewId),\n unique (Name)\n );\nCREATE TABLE OpHomeViewBox (\n + \ HomeViewBoxId bigint not null,\n UpdateStamp timestamp not null,\n + \ HomeViewId bigint not null,\n Type varchar(32) not null,\n Name + varchar(256) not null,\n Ordinal integer not null,\n primary key + (HomeViewBoxId),\n unique (HomeViewId, Type, Name)\n );\nCREATE TABLE + OpHost (\n HostId bigint not null,\n HostDiscriminator varchar(32) + not null,\n Hostname varchar(255) not null,\n IsMonitored char(1) + check (IsMonitored in ('N','Y')),\n Tag varchar(32),\n OperatingSystem + varchar(256),\n OperatingSystemDetail varchar(256),\n CpuClass varchar(256),\n + \ NumberOfCpus float8,\n NumberOfLogicalCpus float8,\n MaxEffectiveCpu + float8,\n CpuSpeedMhz float8,\n MaxWorkload float8,\n IsEphemeralHost + char(1) check (IsEphemeralHost in ('N','Y')),\n WarningNotificationGroupId + bigint,\n ErrorNotificationGroupId bigint,\n FatalNotificationGroupId + bigint,\n HostClusterId bigint,\n NetworkHostName varchar(256),\n + \ IsMultiScheduling char(1) check (IsMultiScheduling in ('N','Y')),\n PhysicalHostId + bigint,\n primary key (HostId),\n unique (Hostname)\n );\nCREATE + TABLE OpHostMetric (\n HostMetricId bigint not null,\n HostId bigint + not null,\n Name varchar(32) not null,\n Units varchar(255) not + null,\n ThresholdComparisonEnum varchar(32),\n WarningThreshold + float8,\n ErrorThreshold float8,\n primary key (HostMetricId),\n + \ unique (HostId, Name)\n );\nCREATE TABLE OpHostMetricValue (\n HostMetricValueId + bigint not null,\n HostMetricId bigint not null,\n CollectionTime + timestamp not null,\n Value float8 not null,\n primary key (HostMetricValueId),\n + \ unique (HostMetricId, CollectionTime)\n );\nCREATE TABLE OpJamonHourlyReport + (\n ReportId bigint not null,\n Label varchar(1000) not null,\n + \ NodeIdentifier varchar(100) not null,\n IntervalStart timestamp + not null,\n IntervalEnd timestamp not null,\n Count bigint,\n MeanValue + float8,\n StandardDeviation float8,\n MaxValue float8,\n MinValue + float8,\n MaxActive float8,\n primary key (ReportId),\n unique + (Label, NodeIdentifier, IntervalStart, IntervalEnd)\n );\nCREATE TABLE OpJamonPFSReport + (\n ReportId bigint not null,\n Label varchar(1000) not null,\n + \ NodeIdentifier varchar(100) not null,\n IntervalStart timestamp + not null,\n IntervalEnd timestamp not null,\n Count bigint,\n MeanValue + float8,\n StandardDeviation float8,\n MaxValue float8,\n MinValue + float8,\n MaxActive float8,\n primary key (ReportId),\n unique + (Label, NodeIdentifier, IntervalStart, IntervalEnd)\n );\nCREATE TABLE OpJob + (\n JobId bigint not null,\n UpdateStamp timestamp not null,\n JobGuid + varchar(64) not null,\n ApplicationId bigint not null,\n ParentJobId + bigint,\n JobDefinitionId bigint,\n ScheduledStartTime timestamp,\n + \ EffectiveScheduledStartTime timestamp,\n ScheduledStartTimeHHMM + varchar(5),\n ExecutableId bigint,\n RerunSuccessorJobId bigint,\n + \ RerunPredecessorJobId bigint,\n RerunGuid varchar(64),\n RunCount + integer,\n Vmid varchar(64),\n IsPriorRerunJobSucceeded char(1) + not null check (IsPriorRerunJobSucceeded in ('N','Y')),\n IsManuallyStopped + char(1) check (IsManuallyStopped in ('N','Y')),\n IsForcedJobState char(1) + check (IsForcedJobState in ('N','Y')),\n TestSetGuid varchar(64),\n IsRestartable + char(1) not null check (IsRestartable in ('N','Y')),\n IsIgnoredAsPredecessor + char(1) not null check (IsIgnoredAsPredecessor in ('N','Y')),\n IsIssuesIgnored + char(1) not null check (IsIssuesIgnored in ('N','Y')),\n CommandLine varchar(4000) + not null,\n JobEnum varchar(64) not null,\n ActionEnum varchar(64),\n + \ WorkingDirectory varchar(1024),\n Username varchar(128),\n AbWorkDir + varchar(512),\n AbDataDir varchar(1024),\n MonitorDirectory varchar(512),\n + \ AbHome varchar(1024) not null,\n RecFile varchar(1024),\n StdoutPath + varchar(1024),\n StderrPath varchar(1024),\n TrackingPath varchar(1024),\n + \ TrackingChannel varchar(256),\n ResolvedGraphPath varchar(1024),\n + \ Version varchar(16),\n AbAgreementEnvironment varchar(128),\n AbAgreementProject + varchar(128),\n HostClusterName varchar(256),\n ResolvedHostname + varchar(256) not null,\n StateEnum varchar(64) not null,\n EndTime + timestamp,\n StartTime timestamp,\n SeverestEventGuid varchar(64),\n + \ HighestSeverity integer not null,\n HighestEventGuid varchar(64),\n + \ IsMeasured char(1) not null check (IsMeasured in ('N','Y')),\n CPU + float8 not null,\n HostCPU float8 not null,\n DriverCPU float8 not + null,\n StartupCPU float8 not null,\n RollupCPU float8 not null,\n + \ NumViewChildren integer not null,\n NumRunningChildren integer + not null,\n ViewParentJobId bigint not null,\n ViewStart timestamp + not null,\n ViewEnd timestamp not null,\n MaxViewEndOfCompletedChildren + timestamp,\n IsSupportsDependencies char(1) not null check (IsSupportsDependencies + in ('N','Y')),\n EmeVersion bigint,\n EmeTag varchar(256),\n EmeStatus + varchar(64),\n DerivedName varchar(256) not null,\n JobDefinitionName + varchar(128) not null,\n JobDefinitionGroupName varchar(128) not null,\n + \ AnalysisDisabled bool,\n TraceId varchar(64),\n TraceDirectoryPath + varchar(1024),\n TraceExtraArgs varchar(512),\n IsTracing bool,\n + \ EventArrivalIndex integer not null,\n primary key (JobId),\n unique + (JobGuid)\n );\nCREATE TABLE OpJobCompletion (\n JobCompletionId bigint + not null,\n UpdateStamp timestamp not null,\n WatcherKey varchar(128) + not null,\n EndTime timestamp not null,\n primary key (JobCompletionId),\n + \ unique (WatcherKey)\n );\nCREATE TABLE OpJobDefinition (\n JobDefinitionId + bigint not null,\n UpdateStamp timestamp not null,\n JobDefinitionDiscriminator + varchar(32) not null,\n JobDefinitionGuid varchar(64) not null,\n Name + varchar(128) not null,\n Description varchar(1024),\n ApplicationId + bigint not null,\n ApproveEnum varchar(64),\n AutoIgnoreFailure + char(1) check (AutoIgnoreFailure in ('N','Y')),\n AutoIgnoreOnlyLastFailure + char(1) check (AutoIgnoreOnlyLastFailure in ('N','Y')),\n EmailOnSuccess + char(1) check (EmailOnSuccess in ('N','Y')),\n IsEnabled char(1) check + (IsEnabled in ('N','Y')),\n RuntimeId bigint,\n Sandbox varchar(1024),\n + \ JobPrefix varchar(256),\n KillExpiredJobs char(1) check (KillExpiredJobs + in ('N','Y')),\n IsNoMatchAnError char(1) check (IsNoMatchAnError in ('N','Y')),\n + \ DurationDefaultSec integer,\n StdoutFile varchar(1024),\n IsStdoutAppend + char(1) check (IsStdoutAppend in ('N','Y')),\n IsStdoutToLog char(1) check + (IsStdoutToLog in ('N','Y')),\n StderrFile varchar(1024),\n IsStderrAppend + char(1) check (IsStderrAppend in ('N','Y')),\n IsStderrToLog char(1) check + (IsStderrToLog in ('N','Y')),\n AutoRerunAttemptWindow integer,\n AutoRerunAttempts + integer,\n AutoRerunDelay integer,\n TraceId varchar(64),\n TraceDirectoryPath + varchar(1024),\n TraceExtraArgs varchar(512),\n ForceStart varchar(64),\n + \ JobDefinitionGroupId bigint,\n SuccessNotificationGroupId bigint,\n + \ WarningNotificationGroupId bigint,\n ErrorNotificationGroupId bigint,\n + \ IsManuallyGeneratedOnly char(1) check (IsManuallyGeneratedOnly in ('N','Y')),\n + \ IsOperatorVisible char(1) check (IsOperatorVisible in ('N','Y')),\n TraceStartDateTime + timestamp,\n TraceEndDateTime timestamp,\n ClusterNodeLabel varchar(255),\n + \ IsOriginalSLA char(1) check (IsOriginalSLA in ('N','Y')),\n ScheduledStartTime + timestamp,\n EffectiveScheduledStartTime timestamp,\n ProductionDayToUse + timestamp,\n primary key (JobDefinitionId),\n unique (JobDefinitionGuid, + ApproveEnum, ScheduledStartTime, EffectiveScheduledStartTime)\n );\nCREATE + TABLE OpJobDefinitionAction (\n JobDefinitionActionId bigint not null,\n + \ ActionDiscriminator varchar(32) not null,\n JobDefinitionId bigint,\n + \ ExecutablePath varchar(256),\n ExecutableEnum varchar(64),\n WorkingDirectory + varchar(256),\n IsEnabled char(1) check (IsEnabled in ('N','Y')),\n IsNotification + char(1) check (IsNotification in ('N','Y')),\n DurationSec integer,\n AutoIgnoreIssue + char(1) check (AutoIgnoreIssue in ('N','Y')),\n ActionEnum varchar(64),\n + \ primary key (JobDefinitionActionId)\n );\nCREATE TABLE OpJobDefinitionActionArgument + (\n JobDefinitionActionId bigint not null,\n ArgumentIndex integer + not null,\n Value varchar(4000),\n IsExpandable char(1) not null + check (IsExpandable in ('N','Y')),\n primary key (JobDefinitionActionId, + ArgumentIndex)\n );\nCREATE TABLE OpJobDefinitionDependency (\n JobDefinitionId + bigint not null,\n PredecessorJobDefinitionGuid varchar(64) not null,\n + \ primary key (JobDefinitionId, PredecessorJobDefinitionGuid)\n );\nCREATE + TABLE OpJobDefinitionPropertyValue (\n JobDefinitionId bigint not null,\n + \ PropertyTypeId bigint not null,\n PropertyValue varchar(1024),\n + \ IsWildcard char(1) not null check (IsWildcard in ('N','Y')),\n primary + key (JobDefinitionId, PropertyTypeId)\n );\nCREATE TABLE OpJobDefinitionStats + (\n JobDefinitionStatsId bigint not null,\n JobDefinitionGuid varchar(255) + not null,\n ScheduledStartTimeHHMM varchar(5) not null,\n NumSuccessfulJobs + integer not null,\n AvgStartDelaySec float8 not null,\n AvgDurationSec + float8 not null,\n primary key (JobDefinitionStatsId),\n unique + (JobDefinitionGuid, ScheduledStartTimeHHMM)\n );\nCREATE TABLE OpJobEvent (\n + \ JobEventId bigint not null,\n JobEventGuid varchar(64) not null,\n + \ JobId bigint not null,\n EventTypeEnum varchar(64) not null,\n + \ EventSeverity integer not null,\n EventTime timestamp not null,\n + \ ArrivalOrder integer not null,\n Source varchar(64),\n EventValue + varchar(512),\n Summary varchar(512),\n Detail varchar(1024),\n + \ Username varchar(1024),\n JobActionComment varchar(1024),\n primary + key (JobEventId),\n unique (JobEventGuid)\n );\nCREATE TABLE OpJobPredictedState + (\n JobId bigint not null,\n IsWedged char(1) not null check (IsWedged + in ('N','Y')),\n PredictedStartTime timestamp,\n PredictedEndTime + timestamp,\n HighestSeverity integer not null,\n LateStartTime timestamp,\n + \ ExpiredStartTime timestamp,\n LateEndTime timestamp,\n ExpiredEndTime + timestamp,\n primary key (JobId)\n );\nCREATE TABLE OpJobPropertyValue + (\n JobId bigint not null,\n PropertyTypeId bigint not null,\n PropertyValue + varchar(1024),\n primary key (JobId, PropertyTypeId)\n );\nCREATE TABLE + OpJobSet (\n JobSetId bigint not null,\n UpdateStamp timestamp not + null,\n JobSetGuid varchar(128) not null,\n Name varchar(128) not + null,\n IsMonitored char(1) not null check (IsMonitored in ('N','Y')),\n + \ SystemId bigint,\n HostName varchar(255),\n GroupByName + varchar(32) not null,\n GroupByLabel varchar(256),\n FilterText + varchar(1024),\n BadStatusTypeEnum varchar(64) not null,\n IssuesSeverityOrderEnum + varchar(64) not null,\n OrderByName varchar(32) not null,\n IsOrderAscending + char(1) not null check (IsOrderAscending in ('N','Y')),\n IsShowOrderByLabel + char(1) not null check (IsShowOrderByLabel in ('N','Y')),\n JobMax integer + not null,\n Tag varchar(32),\n primary key (JobSetId),\n unique + (Name),\n unique (JobSetGuid)\n );\nCREATE TABLE OpKey (\n KeyId + bigint not null,\n KeyGuid varchar(512) not null,\n Hostname varchar(128),\n + \ HostRole varchar(512),\n CoreRating float8,\n CustomerProject + varchar(512),\n CustomerRole varchar(512),\n NumberOfCpus float8,\n + \ NumberOfLogicalCpus float8,\n primary key (KeyId),\n unique + (KeyGuid)\n );\nCREATE TABLE OpKeyFile (\n KeyFileId bigint not null,\n + \ KeyId bigint not null,\n ImportTime timestamp not null,\n KeyDocument + text not null,\n primary key (KeyFileId),\n unique (KeyId)\n );\nCREATE + TABLE OpKeyServerReport (\n KeyServerReportId bigint not null,\n UpdateStamp + timestamp not null,\n ProductId bigint not null,\n JobId varchar(64) + not null,\n ReportStatus varchar(64) not null,\n ReportMode varchar(64) + not null,\n ErrorMessage varchar(64) not null,\n Report text not + null,\n primary key (KeyServerReportId)\n );\nCREATE TABLE OpLogAlertRule + (\n LogAlertRuleId bigint not null,\n LogAlertPattern varchar(1024) + not null,\n DataBaseType varchar(64),\n CustomErrorMessage varchar(1024),\n + \ IsTableSpaceError char(1) not null check (IsTableSpaceError in ('N','Y')),\n + \ IsEnabled char(1) not null check (IsEnabled in ('N','Y')),\n primary + key (LogAlertRuleId),\n unique (LogAlertPattern)\n );\nCREATE TABLE + OpMetric (\n MetricId bigint not null,\n ExecutableId bigint,\n + \ EmeExecutableId bigint,\n Name varchar(128) not null,\n Expression + varchar(1024) not null,\n IsRuntime char(1) not null check (IsRuntime in + ('N','Y')),\n IsSummary char(1) not null check (IsSummary in ('N','Y')),\n + \ Units varchar(255),\n WarningExpression varchar(255),\n ErrorExpression + varchar(255),\n MinimumVersion varchar(32),\n FrequencyEnum varchar(64),\n + \ Frequency integer,\n primary key (MetricId),\n unique (ExecutableId, + EmeExecutableId, Name)\n );\nCREATE TABLE OpMetricValue (\n MetricValueId + bigint not null,\n JobId bigint not null,\n MetricId bigint not + null,\n CollectionTime timestamp not null,\n IsSummary char(1) not + null check (IsSummary in ('N','Y')),\n Hostname varchar(128),\n KeyId + bigint,\n Value float8,\n StringValue varchar(255),\n Error + varchar(1024),\n ApplicationId bigint not null,\n SystemId bigint + not null,\n ExecutableId bigint,\n JobDefinitionGuid varchar(64),\n + \ JobGuid varchar(64) not null,\n Bucket bigint not null,\n ActionEnum + varchar(64),\n StateEnum varchar(64) not null,\n ScheduledStartTime + timestamp,\n ScheduledStartTimeHHMM varchar(5),\n AnalysisDisabled + bool,\n primary key (MetricValueId),\n unique (JobId, MetricId, + CollectionTime, IsSummary, Hostname, KeyId)\n );\nCREATE TABLE OpMonitoredEvent + (\n MonitoredEventId bigint not null,\n UpdateStamp timestamp not + null,\n EventTypeDiscriminator varchar(32) not null,\n MonitoredEventGuid + varchar(128) not null,\n ErrorCode varchar(64),\n EventCategory + varchar(64),\n EventSeverity integer not null,\n EventTime timestamp + not null,\n EventValue varchar(512),\n Summary varchar(512),\n Detail + varchar(1024),\n SourceObjectGuid varchar(128),\n SourceObjectType + varchar(32),\n LifecycleState varchar(32) not null,\n DismissComment + varchar(1024),\n MonitoredObjectGuid varchar(256) not null,\n RepeatCount + integer,\n RepeatStartTime timestamp,\n SystemId bigint,\n ReporterId + bigint,\n ProductId bigint,\n HostId bigint,\n primary key + (MonitoredEventId),\n unique (MonitoredEventGuid)\n );\nCREATE TABLE + OpMonitoredStatus (\n MonitoredStatusId bigint not null,\n StatusTypeDiscriminator + varchar(32) not null,\n LastEventId bigint,\n SeverestEventId bigint,\n + \ HostId bigint,\n ProductId bigint,\n ReporterId bigint,\n + \ SystemId bigint,\n primary key (MonitoredStatusId)\n );\nCREATE + TABLE OpNotificationGroup (\n NotificationGroupId bigint not null,\n Name + varchar(128) not null,\n Description varchar(1024),\n primary key + (NotificationGroupId),\n unique (Name)\n );\nCREATE TABLE OpNotificationGroupRecipient + (\n NotificationGroupId bigint not null,\n RecipientId bigint not + null,\n primary key (NotificationGroupId, RecipientId)\n );\nCREATE + TABLE OpOSAuthentication (\n OSAuthenticationId bigint not null,\n OSAuthenticationGuid + varchar(64) not null,\n OSAuthenticationTypeEnum varchar(64) not null,\n + \ HostId bigint,\n VirtualHostname varchar(256),\n Username + varchar(128),\n Password varchar(2048),\n FunctionalUser varchar(256),\n + \ primary key (OSAuthenticationId),\n unique (HostId, VirtualHostname, + Username, FunctionalUser),\n unique (OSAuthenticationGuid)\n );\nCREATE + TABLE OpPrincipal (\n PrincipalId bigint not null,\n PrincipalDiscriminator + varchar(32) not null,\n Name varchar(128) not null,\n LCName varchar(128) + not null,\n DisplayName varchar(128),\n Description varchar(1024),\n + \ IsBuiltin char(1) not null check (IsBuiltin in ('N','Y')),\n IsEnabled + char(1) check (IsEnabled in ('N','Y')),\n Password varchar(2048),\n primary + key (PrincipalId),\n unique (LCName),\n unique (Name)\n );\nCREATE + TABLE OpPrivilege (\n PrivilegeId bigint not null,\n PrincipalId + bigint not null,\n RoleEnum varchar(32) not null,\n SystemId bigint,\n + \ primary key (PrivilegeId),\n unique (PrincipalId, RoleEnum, SystemId)\n + \ );\nCREATE TABLE OpProduct (\n ProductId bigint not null,\n UpdateStamp + timestamp not null,\n ProductGuid varchar(128) not null,\n ProductTypeId + bigint not null,\n ProductName varchar(256) not null,\n Version + varchar(128),\n Description varchar(256),\n IsDetected char(1) not + null check (IsDetected in ('N','Y')),\n IsItThisCC char(1) not null check + (IsItThisCC in ('N','Y')),\n IsMonitored char(1) not null check (IsMonitored + in ('N','Y')),\n Tag varchar(32),\n HostId bigint not null,\n MonitorDirectory + varchar(512),\n ConfigurationUser varchar(64),\n ContextRoot varchar(128),\n + \ Url varchar(512),\n LogFilePath varchar(1024),\n AbApplicationHub + varchar(1024),\n AbHome varchar(1024),\n AbWorkDir varchar(512),\n + \ AbDataDir varchar(1024),\n RootDirectory varchar(1024),\n WorkDir + varchar(1024),\n ConfigFile varchar(1024),\n JdbcUrl varchar(256),\n + \ KeyNumCpus varchar(64),\n KeyExpiryDate timestamp,\n KeyFilePath + varchar(1024),\n Port integer,\n KeyServerGroup varchar(256),\n + \ KeyBundleId varchar(256),\n KeyBundleKeyType varchar(32),\n PathEnvValue + varchar(1024),\n StartCommandString varchar(256),\n StopCommandString + varchar(256),\n RestartCommandString varchar(256),\n StatusCommandString + varchar(256),\n GoodStatusRegex varchar(512),\n GoodStatusText varchar(128),\n + \ BadStatusRegex varchar(512),\n BadStatusText varchar(128),\n ProductStatusEnum + varchar(64) not null,\n WarningNotificationGroupId bigint,\n ErrorNotificationGroupId + bigint,\n FatalNotificationGroupId bigint,\n primary key (ProductId),\n + \ unique (ProductName),\n unique (ProductGuid)\n );\nCREATE TABLE + OpProductType (\n ProductTypeId bigint not null,\n TypeName varchar(64) + not null,\n ProductName varchar(256) not null,\n ProductNameString + varchar(256),\n ProductVendor varchar(128) not null,\n ProductVariety + varchar(16) not null,\n KeyFileProductId varchar(64),\n IsAddByAdmin + char(1) not null check (IsAddByAdmin in ('N','Y')),\n ConfigurationUserTreatment + varchar(16) not null,\n ContextRootTreatment varchar(16) not null,\n UrlTreatment + varchar(16) not null,\n LogFilePathTreatment varchar(16) not null,\n AbHomeTreatment + varchar(16) not null,\n AbApplicationHubTreatment varchar(16) not null,\n + \ AbWorkDirTreatment varchar(16) not null,\n AbDataDirTreatment varchar(16) + not null,\n RootDirectoryTreatment varchar(16) not null,\n WorkDirTreatment + varchar(16) not null,\n ConfigFileTreatment varchar(16) not null,\n PortTreatment + varchar(16) not null,\n VersionTreatment varchar(16) not null,\n RootDirectoryEnvVar + varchar(64),\n StartCommandString varchar(256),\n StopCommandString + varchar(256),\n RestartCommandString varchar(256),\n StatusCommandString + varchar(256),\n GoodStatusRegex varchar(512),\n GoodStatusText varchar(128),\n + \ BadStatusRegex varchar(512),\n BadStatusText varchar(128),\n AbAppIdentifier + varchar(256),\n primary key (ProductTypeId),\n unique (TypeName)\n + \ );\nCREATE TABLE OpProductXref (\n LeftProductId bigint not null,\n + \ ProductRelationship varchar(16) not null,\n RightProductId bigint + not null,\n primary key (LeftProductId, ProductRelationship, RightProductId)\n + \ );\nCREATE TABLE OpPropertyType (\n PropertyTypeId bigint not null,\n + \ PropertyTypeDiscriminator varchar(32) not null,\n SystemId bigint + not null,\n Name varchar(128) not null,\n Description varchar(1024),\n + \ MarkForDelete char(1) check (MarkForDelete in ('N','Y')),\n ColumnSequence + integer not null,\n DefaultValue varchar(1024),\n CustomTypeEnum + varchar(64),\n BuiltinPropertyExpression varchar(256),\n primary + key (PropertyTypeId),\n unique (SystemId, ColumnSequence),\n unique + (SystemId, Name)\n );\nCREATE TABLE OpQueue (\n QueueId bigint not null,\n + \ UpdateStamp timestamp not null,\n HostId bigint not null,\n Directory + varchar(256) not null,\n MonitorDirectory varchar(512),\n SystemId + bigint not null,\n Name varchar(128) not null,\n QueueType varchar(256) + not null,\n QueueVersion integer not null,\n Owner varchar(128) + not null,\n NumPartitions integer not null,\n QueueAttributes varchar(256),\n + \ WarningNotificationGroupId bigint,\n ErrorNotificationGroupId bigint,\n + \ IsIssuesIgnored char(1) not null check (IsIssuesIgnored in ('N','Y')),\n + \ IsQueueDeleted char(1) not null check (IsQueueDeleted in ('N','Y')),\n + \ primary key (QueueId),\n unique (SystemId, Name),\n unique + (HostId, Directory)\n );\nCREATE TABLE OpQueueClient (\n QueueClientId + bigint not null,\n QueueId bigint not null,\n QueueSubscriberId + bigint,\n JobId bigint not null,\n GraphComponent varchar(256) not + null,\n GraphComponentEnum varchar(32) not null,\n EventTime timestamp + not null,\n primary key (QueueClientId)\n );\nCREATE TABLE OpQueueMetric + (\n QueueMetricId bigint not null,\n QueueMetricDiscriminator varchar(32) + not null,\n ThresholdComparisonEnum varchar(32) not null,\n WarningThreshold + integer,\n ErrorThreshold integer,\n MetricEnum varchar(32) not + null,\n QueueId bigint,\n QueueSubscriberId bigint,\n primary + key (QueueMetricId)\n );\nCREATE TABLE OpQueueMetricValue (\n QueueMetricValueId + bigint not null,\n QueueMetricId bigint not null,\n CollectionTime + timestamp not null,\n Value float8 not null,\n MetricStatusEnum + varchar(32) not null,\n primary key (QueueMetricValueId),\n unique + (QueueMetricId, CollectionTime)\n );\nCREATE TABLE OpQueueStats (\n QueueStatsId + bigint not null,\n QueueId bigint not null,\n LastCollectionTime + timestamp not null,\n QueueStatusEnum varchar(32) not null,\n LastAlertTime + timestamp,\n primary key (QueueStatsId),\n unique (QueueId)\n );\nCREATE + TABLE OpQueueSubscriber (\n QueueSubscriberId bigint not null,\n QueueId + bigint not null,\n IdSubdirectory varchar(256) not null,\n IsIssuesIgnored + char(1) not null check (IsIssuesIgnored in ('N','Y')),\n IsSubscriberDeleted + char(1) not null check (IsSubscriberDeleted in ('N','Y')),\n primary key + (QueueSubscriberId)\n );\nCREATE TABLE OpQuickLink (\n QuickLinkId bigint + not null,\n Name varchar(128),\n Description varchar(1024),\n Url + varchar(2048),\n IconName varchar(128),\n IsHidden char(1) not null + check (IsHidden in ('N','Y')),\n Sequence integer not null,\n primary + key (QuickLinkId)\n );\nCREATE TABLE OpRecipient (\n RecipientId bigint + not null,\n RecipientTypeDiscriminator varchar(32) not null,\n Name + varchar(128) not null,\n Description varchar(1024),\n EmailAddresses + varchar(2048),\n HttpAddress varchar(2048),\n primary key (RecipientId),\n + \ unique (Name)\n );\nCREATE TABLE OpRecipientHeader (\n RecipientHeaderId + bigint not null,\n RecipientId bigint not null,\n Type varchar(64) + not null,\n Name varchar(128) not null,\n Value varchar(1024),\n + \ Sequence integer not null,\n Properties varchar(1024),\n primary + key (RecipientHeaderId),\n unique (RecipientId, Type, Name)\n );\nCREATE + TABLE OpReporter (\n ReporterId bigint not null,\n PhysicalHostId + bigint not null,\n WorkingDirectory varchar(512) not null,\n ReporterGuid + varchar(128) not null,\n ProductId bigint,\n LogicalHostId bigint + not null,\n Username varchar(128),\n AbHome varchar(256),\n ReporterUserModeEnum + varchar(32),\n IsScheduling char(1) check (IsScheduling in ('N','Y')),\n + \ WebServiceVersion varchar(16) not null,\n ReporterConfigPath varchar(256),\n + \ ReporterLogPath varchar(256),\n LastWebServiceTime timestamp not + null,\n IsStopped char(1) check (IsStopped in ('N','Y')),\n IncludeInCCStatus + char(1) not null check (IncludeInCCStatus in ('N','Y')),\n NeedsRestart + char(1) not null check (NeedsRestart in ('N','Y')),\n ReporterConfigSetId + bigint,\n primary key (ReporterId),\n unique (PhysicalHostId, WorkingDirectory)\n + \ );\nCREATE TABLE OpReporterConfigItem (\n ReporterConfigItemId bigint + not null,\n PropertyTypeDiscriminator varchar(32) not null,\n ReporterDefaultConfigItemId + bigint,\n LongValue bigint,\n DoubleValue float8,\n StringValue + varchar(1024),\n BooleanValue char(1) check (BooleanValue in ('N','Y')),\n + \ PasswordValue varchar(2048),\n ReporterConfigSetId bigint not null,\n + \ primary key (ReporterConfigItemId)\n );\nCREATE TABLE OpReporterConfigSet + (\n ReporterConfigSetId bigint not null,\n Name varchar(256) not + null,\n Source varchar(1024) not null,\n Version varchar(64) not + null,\n Description varchar(1024),\n ReporterConfigSetType varchar(32) + not null,\n ReporterConfigSetPatternType varchar(32),\n ReporterConfigSetPattern + varchar(1024),\n primary key (ReporterConfigSetId),\n unique (Name)\n + \ );\nCREATE TABLE OpReporterDefaultConfigItem (\n ReporterDefaultConfigItemId + bigint not null,\n Name varchar(256) not null,\n StartVersion varchar(16) + not null,\n EndVersion varchar(16),\n Description varchar(255),\n + \ ItemType varchar(64) not null,\n Value varchar(255),\n ReporterParameterGroupType + varchar(32) not null,\n ReporterConfigValueType varchar(32) not null,\n + \ primary key (ReporterDefaultConfigItemId),\n unique (Name)\n );\nCREATE + TABLE OpReporterDirectory (\n ReporterId bigint not null,\n Directory + varchar(256)\n );\nCREATE TABLE OpResourcePart (\n ResourcePartId bigint + not null,\n UpdateStamp timestamp not null,\n ResourceRequestId + bigint not null,\n ResourceSettingId bigint not null,\n InstanceName + varchar(256),\n RequiredQuantity integer not null,\n primary key + (ResourcePartId),\n unique (ResourceRequestId, ResourceSettingId)\n );\nCREATE + TABLE OpResourcePool (\n ResourcePoolId bigint not null,\n UpdateStamp + timestamp not null,\n ResourceServerId bigint not null,\n Url varchar(512) + not null,\n primary key (ResourcePoolId),\n unique (ResourceServerId, + Url)\n );\nCREATE TABLE OpResourceRequest (\n ResourceRequestId bigint + not null,\n UpdateStamp timestamp not null,\n ResourceRequestDiscriminator + varchar(32) not null,\n ResourceServerId bigint not null,\n Handle + integer not null,\n WhenRequested timestamp,\n WhenGranted timestamp,\n + \ ClientSandboxUrl varchar(1024),\n ClientProject varchar(1024),\n + \ ClientPlanName varchar(1024),\n ClientPrincipal varchar(256),\n + \ ClientJobGuid varchar(256),\n ResourceTaskName varchar(1024),\n + \ ResourcePriority integer,\n ResourceIsTentative char(1) check (ResourceIsTentative + in ('N','Y')),\n ResourceEventName varchar(1024),\n primary key + (ResourceRequestId),\n unique (ResourceServerId, Handle)\n );\nCREATE + TABLE OpResourceServer (\n ResourceServerId bigint not null,\n UpdateStamp + timestamp not null,\n Hostname varchar(256) not null,\n AbWorkDir + varchar(512) not null,\n MonitorDirectory varchar(512),\n ArrivalOrder + integer not null,\n StartStamp timestamp,\n StopStamp timestamp,\n + \ ProductId bigint,\n primary key (ResourceServerId),\n unique + (Hostname, AbWorkDir)\n );\nCREATE TABLE OpResourceSetting (\n ResourceSettingId + bigint not null,\n UpdateStamp timestamp not null,\n ResourcePoolId + bigint not null,\n SettingName varchar(256) not null,\n IsGroup + char(1) not null check (IsGroup in ('N','Y')),\n SettingGroup varchar(256),\n + \ MaxQuantity integer not null,\n UsedQuantity integer not null,\n + \ IsVariable char(1) not null check (IsVariable in ('N','Y')),\n primary + key (ResourceSettingId),\n unique (ResourcePoolId, SettingName, IsGroup)\n + \ );\nCREATE TABLE OpRuntime (\n RuntimeId bigint not null,\n RuntimeTypeDiscriminator + varchar(32) not null,\n Name varchar(128) not null,\n OSAuthenticationId + bigint not null,\n BridgeId bigint not null,\n AbHome varchar(256) + not null,\n SystemId bigint,\n FilesystemRoot varchar(1024),\n SchedulingHostId + bigint,\n ConfigEnvGuid varchar(64),\n Tag varchar(32),\n primary + key (RuntimeId),\n unique (Name, SystemId)\n );\nCREATE TABLE OpSystem + (\n SystemId bigint not null,\n UpdateStamp timestamp not null,\n + \ SystemGuid varchar(128) not null,\n Name varchar(128) not null,\n + \ Description varchar(1024),\n ProductionDayHHMM varchar(64) not + null,\n TimeZoneId varchar(64) not null,\n ExcludeJobColumns varchar(1024),\n + \ ExcludeJobDefinitionColumns varchar(1024),\n IsAutoGenEnabled char(1) + not null check (IsAutoGenEnabled in ('N','Y')),\n AutoGenRangeMins integer + not null,\n AutoGenOffsetMins integer not null,\n AutoGenDailyFrequency + integer not null,\n MarkForDelete char(1) not null check (MarkForDelete + in ('N','Y')),\n primary key (SystemId),\n unique (Name),\n unique + (SystemGuid)\n );\nCREATE TABLE OpTimeConstraint (\n JobDefinitionId + bigint not null,\n ModeEnum varchar(64) not null,\n StartDate timestamp,\n + \ EndDate timestamp,\n TimeZoneId varchar(128),\n StartTimes + varchar(512),\n MonthsOfYear varchar(64),\n CalendarId bigint,\n + \ primary key (JobDefinitionId)\n );\nCREATE TABLE OpZMVDenormalizedDay + (\n DenormalizedDayId bigint not null,\n JobId bigint not null,\n + \ ApplicationId bigint not null,\n ExecutableId bigint,\n Hostname + varchar(128),\n KeyId bigint,\n MetricId bigint not null,\n CollectionDay + timestamp not null,\n CollectionTime timestamp not null,\n Value + float8,\n primary key (DenormalizedDayId),\n unique (JobId, ApplicationId, + ExecutableId, Hostname, KeyId, MetricId, CollectionDay, CollectionTime)\n );\nCREATE + TABLE OpZMVDifference (\n DifferenceId bigint not null,\n JobId + bigint not null,\n ApplicationId bigint not null,\n ExecutableId + bigint,\n Hostname varchar(128),\n KeyId bigint,\n MetricId + bigint not null,\n CollectionDay timestamp not null,\n CollectionTime + timestamp not null,\n Value float8,\n primary key (DifferenceId),\n + \ unique (JobId, ApplicationId, ExecutableId, Hostname, KeyId, MetricId, + CollectionDay, CollectionTime)\n );\n-- create constraints\ncreate sequence + hibernate_sequence start with 1 increment by 1;\n \ncreate index IDX_JDPROPVALUE_PROPTYPEID + \n on OpJobDefinitionPropertyValue (PropertyTypeId);\n \ncreate index IDX_JOBPROPVALUE_PROPTYPEID + \n on OpJobPropertyValue (PropertyTypeId);\n \nalter table if exists OpAnalysisAggregator + \n add constraint FKrfit5fi48b9jragbnu88jte7b \n foreign key (AnalysisObjectId) + \n references OpAnalysisObject;\n \nalter table if exists OpAnalysisAggregatorSQL + \n add constraint FK1hnbwq56yhs2yuy1d4cooh4l8 \n foreign key (AnalysisAggregatorId) + \n references OpAnalysisAggregator;\n \nalter table if exists OpAnalysisRow + \n add constraint FKkck9t25618jy83xsleeoeiovw \n foreign key (AnalysisObjectId) + \n references OpAnalysisObject;\n \nalter table if exists OpAnalysisRowSQL + \n add constraint FKjrb0ul88q3jv0u0frxwrq0e2 \n foreign key (AnalysisRowId) + \n references OpAnalysisRow;\n \nalter table if exists OpApplication \n + \ add constraint FKkdgdh04oj75sec9dwiyhg16ye \n foreign key (SystemId) + \n references OpSystem;\n \nalter table if exists OpApplication \n add + constraint FKmc3ylwrh5i9d0aakg5vk8rlx5 \n foreign key (WarningNotificationGroupId) + \n references OpNotificationGroup;\n \nalter table if exists OpApplication + \n add constraint FKc9bq3d4daq4ee597etpnm4g97 \n foreign key (ErrorNotificationGroupId) + \n references OpNotificationGroup;\n \nalter table if exists OpApplication + \n add constraint FKjpcf8tq0npea5s9mf6tbrrioi \n foreign key (SuccessNotificationGroupId) + \n references OpNotificationGroup;\n \nalter table if exists OpAutoGenStats + \n add constraint FKs0xei25r31jtsghpelm9p3sg0 \n foreign key (SystemId) + \n references OpSystem;\n \nalter table if exists OpBridge \n add + constraint FKm1n717usrfscv5xywbh93kotc \n foreign key (HostId) \n references + OpHost;\n \nalter table if exists OpCalendar \n add constraint FK37katf1nkit4d6okja33erenk + \n foreign key (SystemId) \n references OpSystem;\n \nalter table + if exists OpCalendarYear \n add constraint FKci2yumr9qfmm7es3n6b2xbc4 \n + \ foreign key (CalendarId) \n references OpCalendar;\n \nalter table + if exists OpDailyCpuUsage \n add constraint FKshn2d7ldgnpjt8wids5ffhog3 + \n foreign key (KeyId) \n references OpKey;\n \nalter table if exists + OpDailyCpuUsage \n add constraint FKi9hybiyfiu4k57mog9cp3d5ve \n foreign + key (ApplicationId) \n references OpApplication;\n \nalter table if exists + OpDay \n add constraint FKbtr4fr587l83sp43h7b0nkgrf \n foreign key + (JobDefinitionId) \n references OpTimeConstraint;\n \nalter table if exists + OpExecutable \n add constraint FK1o5714a6kc0h91ohhjf6womjm \n foreign + key (SystemId) \n references OpSystem;\n \nalter table if exists OpExecutable + \n add constraint FKk2hb991clofp9lrgyuxe617hd \n foreign key (PrototypeExecutableId) + \n references OpExecutable;\n \nalter table if exists OpExecutable \n add + constraint FKn6n881daxoes4m1jmjmybor4y \n foreign key (EmeExecutableId) + \n references OpEmeExecutable;\n \nalter table if exists OpFileAndEventConstraint + \n add constraint FKeyxv51r0ufj61m24wku8777m \n foreign key (JobDefinitionId) + \n references OpJobDefinition;\n \nalter table if exists OpFileAndEventConstraint + \n add constraint FK6426q08fm01ultq8g5ul2x2io \n foreign key (PropertyTypeId) + \n references OpPropertyType;\n \nalter table if exists OpFileSystem \n + \ add constraint FKk1o6ur8hu9b7rkxoxvn2ccp3n \n foreign key (HostId) + \n references OpHost;\n \nalter table if exists OpFileSystemMetric \n add + constraint FKe211qe0w7lql8o9ip4dnu9ept \n foreign key (FileSystemId) \n + \ references OpFileSystem;\n \nalter table if exists OpFileSystemMetricValue + \n add constraint FKefhmrbke9v6hjj6xc8n7d7k5y \n foreign key (FileSystemMetricId) + \n references OpFileSystemMetric;\n \nalter table if exists OpGroupXref + \n add constraint FKnsceus2ues6hh1q9h6660xdbx \n foreign key (ParentGroupId) + \n references OpPrincipal;\n \nalter table if exists OpGroupXref \n add + constraint FK4dk4e99w6vm2f4ljj3roopiqe \n foreign key (ChildPrincipalId) + \n references OpPrincipal;\n \nalter table if exists OpHomeViewBox \n add + constraint FK1au4or6bwn2bmv275ia14q2uc \n foreign key (HomeViewId) \n references + OpHomeView;\n \nalter table if exists OpHost \n add constraint FK6pxxhbxnx4eyg84vsq7qpju36 + \n foreign key (WarningNotificationGroupId) \n references OpNotificationGroup;\n + \nalter table if exists OpHost \n add constraint FKfrocf12l5kpt8p9ykpi3l757g + \n foreign key (ErrorNotificationGroupId) \n references OpNotificationGroup;\n + \nalter table if exists OpHost \n add constraint FK6q3t3oxkw9ug5ktdhjh6jdcqd + \n foreign key (FatalNotificationGroupId) \n references OpNotificationGroup;\n + \nalter table if exists OpHost \n add constraint FK81x4ia1lxpc5xii088bw204nf + \n foreign key (HostClusterId) \n references OpHost;\n \nalter table + if exists OpHost \n add constraint FKn3gq0uk9idjjtgrwnavc1fbeu \n foreign + key (PhysicalHostId) \n references OpHost;\n \nalter table if exists OpHostMetric + \n add constraint FK5ovk29s5qkp3b0uuss5kjqw9i \n foreign key (HostId) + \n references OpHost;\n \nalter table if exists OpHostMetricValue \n add + constraint FKnyba4hteseqrvjs2wk8pdtdoy \n foreign key (HostMetricId) \n + \ references OpHostMetric;\n \nalter table if exists OpJob \n add constraint + FKryte4ef9b98pyway03ue994t9 \n foreign key (ApplicationId) \n references + OpApplication;\n \nalter table if exists OpJob \n add constraint FKme88sr2rpdmjlbguyt74doma9 + \n foreign key (ParentJobId) \n references OpJob;\n \nalter table + if exists OpJob \n add constraint FKgb0kywo3kkkm7ool7ac46h3gd \n foreign + key (JobDefinitionId) \n references OpJobDefinition;\n \nalter table if + exists OpJob \n add constraint FK4x5f4lc1bbxd1byakigqicdg \n foreign + key (ExecutableId) \n references OpExecutable;\n \nalter table if exists + OpJob \n add constraint FK45aou1q6yltpf6pbbn1eh1bb1 \n foreign key + (RerunSuccessorJobId) \n references OpJob;\n \nalter table if exists OpJob + \n add constraint FKc38c9mppospavtgvq6rogiok0 \n foreign key (RerunPredecessorJobId) + \n references OpJob;\n \nalter table if exists OpJobDefinition \n add + constraint FKjamygtsh883or4w03pspxumo1 \n foreign key (ApplicationId) \n + \ references OpApplication;\n \nalter table if exists OpJobDefinition \n + \ add constraint FKmjg16wiu5c330j6mntdyovvf7 \n foreign key (RuntimeId) + \n references OpRuntime;\n \nalter table if exists OpJobDefinition \n add + constraint FK6q9s91u88wokobh9tusv5655d \n foreign key (JobDefinitionGroupId) + \n references OpJobDefinition;\n \nalter table if exists OpJobDefinition + \n add constraint FKnfxldt2fyaoj877hpjobvovfl \n foreign key (SuccessNotificationGroupId) + \n references OpNotificationGroup;\n \nalter table if exists OpJobDefinition + \n add constraint FK4vybvi3jvkm6usnxu789txwao \n foreign key (WarningNotificationGroupId) + \n references OpNotificationGroup;\n \nalter table if exists OpJobDefinition + \n add constraint FKj6bencvu7xqur6501xshhrs55 \n foreign key (ErrorNotificationGroupId) + \n references OpNotificationGroup;\n \nalter table if exists OpJobDefinitionAction + \n add constraint FKaicpaly3wmew35gu3qxxtdpn5 \n foreign key (JobDefinitionId) + \n references OpJobDefinition;\n \nalter table if exists OpJobDefinitionActionArgument + \n add constraint FK1j1mmr7nlakd24hg4i3dpq1u7 \n foreign key (JobDefinitionActionId) + \n references OpJobDefinitionAction;\n \nalter table if exists OpJobDefinitionDependency + \n add constraint FKd9fimu675rh94yo0fxmmavrgc \n foreign key (JobDefinitionId) + \n references OpJobDefinition;\n \nalter table if exists OpJobDefinitionPropertyValue + \n add constraint FKpo8nop1ypy9fhuvshrs9asbm4 \n foreign key (JobDefinitionId) + \n references OpJobDefinition;\n \nalter table if exists OpJobDefinitionPropertyValue + \n add constraint FK6k3bf9fx2s1fcgb2wrlgs1y0t \n foreign key (PropertyTypeId) + \n references OpPropertyType;\n \nalter table if exists OpJobEvent \n add + constraint FK46o9dp9a3lnttt11pa37ho2ay \n foreign key (JobId) \n references + OpJob;\n \nalter table if exists OpJobPropertyValue \n add constraint FK1ebxtnscc18dmvkmtfel4cf8y + \n foreign key (JobId) \n references OpJob;\n \nalter table if exists + OpJobPropertyValue \n add constraint FKdntbqa4i4wncug5qwye4c345l \n foreign + key (PropertyTypeId) \n references OpPropertyType;\n \nalter table if exists + OpKeyFile \n add constraint FK4w9i06ubaolelk4cgoejlnsi9 \n foreign + key (KeyId) \n references OpKey;\n \nalter table if exists OpKeyServerReport + \n add constraint FK2xrnkcbm7714ysx1qwx304myy \n foreign key (ProductId) + \n references OpProduct;\n \nalter table if exists OpMetric \n add + constraint FKb28q210jlj42tbswaxt6stk4c \n foreign key (ExecutableId) \n + \ references OpExecutable;\n \nalter table if exists OpMetric \n add + constraint FKnbgnqfw3e7qapn21bhjx4cy3t \n foreign key (EmeExecutableId) + \n references OpEmeExecutable;\n \nalter table if exists OpMetricValue \n + \ add constraint FKmmiurng5qel6n6v8wiueehnaf \n foreign key (JobId) + \n references OpJob;\n \nalter table if exists OpMetricValue \n add + constraint FKli9jusdh24vepx5l0nglmgn6a \n foreign key (MetricId) \n references + OpMetric;\n \nalter table if exists OpMetricValue \n add constraint FKslcmi9t763y8l5es34qe7k4eo + \n foreign key (KeyId) \n references OpKey;\n \nalter table if exists + OpMetricValue \n add constraint FK1ty7451rfhcsag9v0nesb22nf \n foreign + key (ApplicationId) \n references OpApplication;\n \nalter table if exists + OpMetricValue \n add constraint FK8y27w9d7x359k7cnwtlfy0yj7 \n foreign + key (SystemId) \n references OpSystem;\n \nalter table if exists OpMetricValue + \n add constraint FKivvhfj1nvmxdoxd3apsdvj2x0 \n foreign key (ExecutableId) + \n references OpExecutable;\n \nalter table if exists OpMonitoredEvent \n + \ add constraint FK70yshhxuf8jnjc2gi9vlcr5uk \n foreign key (SystemId) + \n references OpSystem;\n \nalter table if exists OpMonitoredEvent \n add + constraint FK4d28knr51jhkh2l5jfn1i6kg8 \n foreign key (ReporterId) \n references + OpReporter;\n \nalter table if exists OpMonitoredEvent \n add constraint + FKkf3i7vdebueiqk41idsrsn4e0 \n foreign key (ProductId) \n references + OpProduct;\n \nalter table if exists OpMonitoredEvent \n add constraint + FKh21l4ot9lyfor6uq3yv45v772 \n foreign key (HostId) \n references + OpHost;\n \nalter table if exists OpMonitoredStatus \n add constraint FK8c31p3qvnq7ti7fds43ca6gii + \n foreign key (LastEventId) \n references OpMonitoredEvent;\n \nalter + table if exists OpMonitoredStatus \n add constraint FKq1rgfe82j85asdsw5b50h7n4w + \n foreign key (SeverestEventId) \n references OpMonitoredEvent;\n + \nalter table if exists OpMonitoredStatus \n add constraint FKnehhcev0cbdn84wi8pp676axw + \n foreign key (HostId) \n references OpHost;\n \nalter table if exists + OpMonitoredStatus \n add constraint FKrrybo9f78euqjmh7yl2ss0w6l \n foreign + key (ProductId) \n references OpProduct;\n \nalter table if exists OpMonitoredStatus + \n add constraint FKteg48m6ky3wkdc1cp2ivvs2bc \n foreign key (ReporterId) + \n references OpReporter;\n \nalter table if exists OpMonitoredStatus \n + \ add constraint FKf4go69un31nj25swrwsgr4qrg \n foreign key (SystemId) + \n references OpSystem;\n \nalter table if exists OpNotificationGroupRecipient + \n add constraint FK4185w3mulcvyewr3layxajfq1 \n foreign key (RecipientId) + \n references OpRecipient;\n \nalter table if exists OpNotificationGroupRecipient + \n add constraint FK7l4kih5xn6c0g33nrr5k808sa \n foreign key (NotificationGroupId) + \n references OpNotificationGroup;\n \nalter table if exists OpOSAuthentication + \n add constraint FKkhrotlmhsuawhb64jvglgkwxa \n foreign key (HostId) + \n references OpHost;\n \nalter table if exists OpPrivilege \n add + constraint FKiimwxq78w88nmjfr9bung2o2d \n foreign key (PrincipalId) \n references + OpPrincipal;\n \nalter table if exists OpPrivilege \n add constraint FK7yjy1dq3pxdbgqxak8b9tm4j2 + \n foreign key (SystemId) \n references OpSystem;\n \nalter table + if exists OpProduct \n add constraint FKsmpiwa7pwrlmoaf6yn4p8innp \n foreign + key (ProductTypeId) \n references OpProductType;\n \nalter table if exists + OpProduct \n add constraint FKo152j20ftrguq9kd6t58eoycd \n foreign + key (HostId) \n references OpHost;\n \nalter table if exists OpProduct \n + \ add constraint FK14ja326m0vi6bsdwxhe7lfhok \n foreign key (WarningNotificationGroupId) + \n references OpNotificationGroup;\n \nalter table if exists OpProduct \n + \ add constraint FKhrphhg40gqdukkwn3bmnbvbkx \n foreign key (ErrorNotificationGroupId) + \n references OpNotificationGroup;\n \nalter table if exists OpProduct \n + \ add constraint FKq48qupxdp2rk0gslh7h9s6g5s \n foreign key (FatalNotificationGroupId) + \n references OpNotificationGroup;\n \nalter table if exists OpProductXref + \n add constraint FK4ij6847j66o3uekjkrlyxqw3y \n foreign key (LeftProductId) + \n references OpProduct;\n \nalter table if exists OpProductXref \n add + constraint FK2huotylket4dff0ja7g8irayc \n foreign key (RightProductId) \n + \ references OpProduct;\n \nalter table if exists OpPropertyType \n add + constraint FKpb7ap21sodo2uxnmoawh16sqo \n foreign key (SystemId) \n references + OpSystem;\n \nalter table if exists OpQueue \n add constraint FK6q02htq4sfo3sn2rsejamvebt + \n foreign key (HostId) \n references OpHost;\n \nalter table if exists + OpQueue \n add constraint FKqv232547og7vbih7alhdjtkvw \n foreign key + (SystemId) \n references OpSystem;\n \nalter table if exists OpQueue \n + \ add constraint FKes8fkpy2peo54oht7eag4wdu7 \n foreign key (WarningNotificationGroupId) + \n references OpNotificationGroup;\n \nalter table if exists OpQueue \n + \ add constraint FKdomo5ght0xr5d2honmvvxipog \n foreign key (ErrorNotificationGroupId) + \n references OpNotificationGroup;\n \nalter table if exists OpQueueClient + \n add constraint FK3gybwnrpp0sm8489hr5ew7j8f \n foreign key (QueueId) + \n references OpQueue;\n \nalter table if exists OpQueueClient \n add + constraint FKgl0qsapws57gk4yvy8o6e3w8u \n foreign key (QueueSubscriberId) + \n references OpQueueSubscriber;\n \nalter table if exists OpQueueClient + \n add constraint FKp4fdvgf5wrmqy465ptpp3bwr7 \n foreign key (JobId) + \n references OpJob;\n \nalter table if exists OpQueueMetric \n add + constraint FKohtmlnaw1hltr3bknh8y15wdx \n foreign key (QueueId) \n references + OpQueue;\n \nalter table if exists OpQueueMetric \n add constraint FK4ghmtqvwvdm4kt2hbe5c0eqso + \n foreign key (QueueSubscriberId) \n references OpQueueSubscriber;\n + \nalter table if exists OpQueueMetricValue \n add constraint FK99m0tb4fhl9fi8ohrj19bj45m + \n foreign key (QueueMetricId) \n references OpQueueMetric;\n \nalter + table if exists OpQueueStats \n add constraint FKdh147844yh1k6gqat0yd30i2k + \n foreign key (QueueId) \n references OpQueue;\n \nalter table if + exists OpQueueSubscriber \n add constraint FKk9wjbkpcr28yfdyrenpgxak4d \n + \ foreign key (QueueId) \n references OpQueue;\n \nalter table if exists + OpRecipientHeader \n add constraint FKekn0l0d44xmo3lbbenmn5skbq \n foreign + key (RecipientId) \n references OpRecipient;\n \nalter table if exists OpReporter + \n add constraint FKptip1tkucm4efk0veuu4ygm6j \n foreign key (PhysicalHostId) + \n references OpHost;\n \nalter table if exists OpReporter \n add + constraint FKinynsh2b4q88emwciwb4i0akq \n foreign key (ProductId) \n references + OpProduct;\n \nalter table if exists OpReporter \n add constraint FK6bfovefxv4cllw6hy6mq1v263 + \n foreign key (LogicalHostId) \n references OpHost;\n \nalter table + if exists OpReporter \n add constraint FKs1k4765v2piti3iu3h2oks7e9 \n foreign + key (ReporterConfigSetId) \n references OpReporterConfigSet;\n \nalter table + if exists OpReporterConfigItem \n add constraint FKdyi1q8bnvo8yjmbk4eqah7gvo + \n foreign key (ReporterDefaultConfigItemId) \n references OpReporterDefaultConfigItem;\n + \nalter table if exists OpReporterConfigItem \n add constraint FKfn2lk24trdsp8yycppk9hlki5 + \n foreign key (ReporterConfigSetId) \n references OpReporterConfigSet;\n + \nalter table if exists OpReporterDirectory \n add constraint FKbolhvku7wt6s93tt7y8wgkgho + \n foreign key (ReporterId) \n references OpReporter;\n \nalter table + if exists OpResourcePart \n add constraint FK4ih4eaxqodwau0bt2pk6d43s1 \n + \ foreign key (ResourceRequestId) \n references OpResourceRequest;\n + \nalter table if exists OpResourcePart \n add constraint FKc1uvg9eqvbw9x89jnqyfwmtb1 + \n foreign key (ResourceSettingId) \n references OpResourceSetting;\n + \nalter table if exists OpResourcePool \n add constraint FKa1reo39pgvs37qvaalkdmdtnd + \n foreign key (ResourceServerId) \n references OpResourceServer;\n + \nalter table if exists OpResourceRequest \n add constraint FKndw95jdnv9aaipau7pnf8wu64 + \n foreign key (ResourceServerId) \n references OpResourceServer;\n + \nalter table if exists OpResourceServer \n add constraint FKr6j8gtqxndq6ba24v5nq1v3cr + \n foreign key (ProductId) \n references OpProduct;\n \nalter table + if exists OpResourceSetting \n add constraint FK2v4dt3hkpe4gyweqeuyojd0cu + \n foreign key (ResourcePoolId) \n references OpResourcePool;\n \nalter + table if exists OpRuntime \n add constraint FKh9j023pv4vhjkdq6f7ohhm5c4 + \n foreign key (OSAuthenticationId) \n references OpOSAuthentication;\n + \nalter table if exists OpRuntime \n add constraint FK91f6p6or4iiv0ay5ldbot20ju + \n foreign key (BridgeId) \n references OpBridge;\n \nalter table + if exists OpRuntime \n add constraint FK79o2xoov16babuwujmp6ks11j \n foreign + key (SystemId) \n references OpSystem;\n \nalter table if exists OpRuntime + \n add constraint FK41qhxbe96r0y8ua8vgiltbjug \n foreign key (SchedulingHostId) + \n references OpHost;\n \nalter table if exists OpTimeConstraint \n add + constraint FK9n4in5nmm36xytda9ukxilj88 \n foreign key (JobDefinitionId) + \n references OpJobDefinition;\n \nalter table if exists OpTimeConstraint + \n add constraint FKfkvdlbhber0as1joi8hgwh58y \n foreign key (CalendarId) + \n references OpCalendar;\n \nalter table if exists OpZMVDenormalizedDay + \n add constraint FKs0tp2h8l8i44pvw97p6ttco6c \n foreign key (JobId) + \n references OpJob;\n \nalter table if exists OpZMVDenormalizedDay \n add + constraint FKdt1m9cg6s92phsk2swa72itn6 \n foreign key (ApplicationId) \n + \ references OpApplication;\n \nalter table if exists OpZMVDenormalizedDay + \n add constraint FKav0n3tidhacdc7l0l1ee0nmex \n foreign key (ExecutableId) + \n references OpExecutable;\n \nalter table if exists OpZMVDenormalizedDay + \n add constraint FK2d3xu46hrjn5v8oy4rrip9onu \n foreign key (KeyId) + \n references OpKey;\n \nalter table if exists OpZMVDenormalizedDay \n add + constraint FKsgsnnswtmgmc3k1gsfrcu7o5k \n foreign key (MetricId) \n references + OpMetric;\n \nalter table if exists OpZMVDifference \n add constraint FK44536lkj3y99mqt7vqk8u9sw9 + \n foreign key (JobId) \n references OpJob;\n \nalter table if exists + OpZMVDifference \n add constraint FK2l9lnao4dop8ftqq8483dw8vf \n foreign + key (ApplicationId) \n references OpApplication;\n \nalter table if exists + OpZMVDifference \n add constraint FK3hetm17drihbsk82b3n4rrbmk \n foreign + key (ExecutableId) \n references OpExecutable;\n \nalter table if exists + OpZMVDifference \n add constraint FKm24ly70d5dnv1547ba45lx0kh \n foreign + key (KeyId) \n references OpKey;\n \nalter table if exists OpZMVDifference + \n add constraint FKpboia9fdjshagewo4xbydpwk0 \n foreign key (MetricId) + \n references OpMetric;\n-- create indexes\n--start-script\n-- ---------------------------------------------------\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_app_warnnotifygrpid'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opapplication'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_APP_WARNNOTIFYGRPID + ON OpApplication (WarningNotificationGroupId)';\n end if;\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select + count(*) into cnt from pg_class where relname = 'idx_app_errornotifygrpid'\n and + relkind = 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class + tbl\n where tbl.relname = 'opapplication'\n and idx.indrelid = tbl.oid\n + \ and idx.indisunique != 't'\n and idx.indisprimary != 't');\n + \ if (cnt = 0) then\n execute E'CREATE INDEX IDX_APP_ERRORNOTIFYGRPID ON OpApplication + (ErrorNotificationGroupId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_audit_updatestamp'\n and relkind = 'i'\n and oid in + (\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname + = 'opaudit'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_AUDIT_UPDATESTAMP ON OpAudit (UpdateStamp)';\n end if;\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_bridge_hostid'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opbridge'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_BRIDGE_HOSTID ON + OpBridge (HostId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_osauthentication_hostid'\n and relkind = 'i'\n and + oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'oposauthentication'\n and idx.indrelid = tbl.oid\n and + idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) + then\n execute E'CREATE INDEX IDX_OSAUTHENTICATION_HOSTID ON OpOSAuthentication + (HostId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare + \n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname + = 'idx_runtime_osauthenticationid'\n and relkind = 'i'\n and oid in (\n + \ select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname + = 'opruntime'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_RUNTIME_OSAUTHENTICATIONID ON OpRuntime (OSAuthenticationId)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_runtime_bridgeid'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opruntime'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_RUNTIME_BRIDGEID + ON OpRuntime (BridgeId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_host_physicalhostid'\n and relkind = 'i'\n and oid + in (\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname + = 'ophost'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_HOST_PHYSICALHOSTID ON OpHost (PhysicalHostId)';\n end if;\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_fsmv_colltime'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opfilesystemmetricvalue'\n and + idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_FSMV_COLLTIME ON + OpFileSystemMetricValue (CollectionTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_host_mv_colltime'\n and relkind = 'i'\n + \ and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'ophostmetricvalue'\n and idx.indrelid = tbl.oid\n and + idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) + then\n execute E'CREATE INDEX IDX_HOST_MV_COLLTIME ON OpHostMetricValue (CollectionTime)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_jhr_label'\n and + relkind = 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class + tbl\n where tbl.relname = 'opjamonhourlyreport'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JHR_LABEL ON OpJamonHourlyReport + (Label)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare + \n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname + = 'idx_jhr_nodeidentifier'\n and relkind = 'i'\n and oid in (\n select + indexrelid from pg_index idx, pg_class tbl\n where tbl.relname = 'opjamonhourlyreport'\n + \ and idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and + idx.indisprimary != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JHR_NODEIDENTIFIER + ON OpJamonHourlyReport (NodeIdentifier)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_jhr_lni'\n and relkind = 'i'\n and oid + in (\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname + = 'opjamonhourlyreport'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_JHR_LNI ON OpJamonHourlyReport (Label, NodeIdentifier)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_jpr_label'\n and + relkind = 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class + tbl\n where tbl.relname = 'opjamonpfsreport'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JPR_LABEL ON OpJamonPFSReport + (Label)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare + \n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname + = 'idx_jpr_nodeidentifier'\n and relkind = 'i'\n and oid in (\n select + indexrelid from pg_index idx, pg_class tbl\n where tbl.relname = 'opjamonpfsreport'\n + \ and idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and + idx.indisprimary != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JPR_NODEIDENTIFIER + ON OpJamonPFSReport (NodeIdentifier)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_executable_hostname'\n and relkind = 'i'\n + \ and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opexecutable'\n and idx.indrelid = tbl.oid\n and + idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) + then\n execute E'CREATE INDEX IDX_EXECUTABLE_HOSTNAME ON OpExecutable (Hostname)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_executable_prototype'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opexecutable'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_EXECUTABLE_PROTOTYPE + ON OpExecutable (PrototypeExecutableId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_metricval_jobidctime'\n and relkind = 'i'\n + \ and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opmetricvalue'\n and idx.indrelid = tbl.oid\n and + idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) + then\n execute E'CREATE INDEX IDX_METRICVAL_JOBIDCTIME ON OpMetricValue (JobId, + CollectionTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_metricval_midsummctime'\n and relkind = 'i'\n and oid + in (\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname + = 'opmetricvalue'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_METRICVAL_MIDSUMMCTIME ON OpMetricValue (MetricId, IsSummary, + CollectionTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_metricval_midsummval'\n and relkind = 'i'\n and oid + in (\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname + = 'opmetricvalue'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_METRICVAL_MIDSUMMVAL ON OpMetricValue (MetricId, IsSummary, + Value)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare + \n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname + = 'idx_metricvalue_metricid'\n and relkind = 'i'\n and oid in (\n select + indexrelid from pg_index idx, pg_class tbl\n where tbl.relname = 'opmetricvalue'\n + \ and idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and + idx.indisprimary != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_METRICVALUE_METRICID + ON OpMetricValue (MetricId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_mv_jgaeseisctsshhmm'\n and relkind = 'i'\n and oid + in (\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname + = 'opmetricvalue'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_MV_JGAESEISCTSSHHMM ON OpMetricValue (JobDefinitionGuid, ActionEnum, + StateEnum, MetricId, IsSummary, CollectionTime, ScheduledStartTimeHHMM)';\n end + if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_mv_midsumexecoljidjgv'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opmetricvalue'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MV_MIDSUMEXECOLJIDJGV + ON OpMetricValue (MetricId, IsSummary, ExecutableId, CollectionTime, JobId, JobGuid, + Value)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare + \n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname + = 'idx_mv_jgaesemidisctjgvsstjid'\n and relkind = 'i'\n and oid in (\n select + indexrelid from pg_index idx, pg_class tbl\n where tbl.relname = 'opmetricvalue'\n + \ and idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and + idx.indisprimary != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MV_JGAESEMIDISCTJGVSSTJID + ON OpMetricValue (JobDefinitionGuid, ActionEnum, StateEnum, MetricId, IsSummary, + CollectionTime, JobGuid, Value, ScheduledStartTime, JobId)';\n end if;\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_mv_jdgeisemiisctssthhmm'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opmetricvalue'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MV_JDGEISEMIISCTSSTHHMM + ON OpMetricValue (JobDefinitionGuid, ExecutableId, StateEnum, MetricId, IsSummary, + CollectionTime, ScheduledStartTimeHHMM, ScheduledStartTime, JobId, JobGuid, Value)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_mv_bucket'\n and + relkind = 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class + tbl\n where tbl.relname = 'opmetricvalue'\n and idx.indrelid = tbl.oid\n + \ and idx.indisunique != 't'\n and idx.indisprimary != 't');\n + \ if (cnt = 0) then\n execute E'CREATE INDEX IDX_MV_BUCKET ON OpMetricValue + (Bucket)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare + \n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname + = 'idx_mv_keyid'\n and relkind = 'i'\n and oid in (\n select indexrelid + from pg_index idx, pg_class tbl\n where tbl.relname = 'opmetricvalue'\n + \ and idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and + idx.indisprimary != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MV_KEYID + ON OpMetricValue (KeyId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_job_toplevel_effshdstart'\n and relkind = 'i'\n and + oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_JOB_TOPLEVEL_EFFSHDSTART ON OpJob (ParentJobId, RerunSuccessorJobId, + IsSupportsDependencies, EffectiveScheduledStartTime)';\n end if;\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select + count(*) into cnt from pg_class where relname = 'idx_job_toplevel_stateendtime'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opjob'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_TOPLEVEL_STATEENDTIME + ON OpJob (ParentJobId, RerunSuccessorJobId, IsSupportsDependencies, StateEnum, + EndTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare + \n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname + = 'idx_derived_name'\n and relkind = 'i'\n and oid in (\n select indexrelid + from pg_index idx, pg_class tbl\n where tbl.relname = 'opjob'\n and + idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_DERIVED_NAME ON + OpJob (DerivedName)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_eff_scheduled_start_time'\n and relkind = 'i'\n and + oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_EFF_SCHEDULED_START_TIME ON OpJob (EffectiveScheduledStartTime)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_job_end_start_abworkdir'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opjob'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_END_START_ABWORKDIR + ON OpJob (EndTime, StartTime, AbWorkDir)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_job_executableid'\n and relkind = 'i'\n + \ and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_JOB_EXECUTABLEID ON OpJob (ExecutableId)';\n end if;\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_job_exeidendtime'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opjob'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_EXEIDENDTIME + ON OpJob (ExecutableId, EndTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_job_exestatestartend'\n and relkind = 'i'\n + \ and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_JOB_EXESTATESTARTEND ON OpJob (ExecutableId, StateEnum, StartTime, + EndTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare + \n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname + = 'idx_job_exeschedstartend'\n and relkind = 'i'\n and oid in (\n select + indexrelid from pg_index idx, pg_class tbl\n where tbl.relname = 'opjob'\n + \ and idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and + idx.indisprimary != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_EXESCHEDSTARTEND + ON OpJob (ExecutableId, ScheduledStartTime, StartTime, EndTime)';\n end if;\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_job_jobdefinitionid'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opjob'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_JOBDEFINITIONID + ON OpJob (JobDefinitionId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_job_jobenum_estart_etime'\n and relkind = 'i'\n and + oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_JOB_JOBENUM_ESTART_ETIME ON OpJob (JobEnum, EffectiveScheduledStartTime, + EndTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare + \n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname + = 'idx_parent_job_id'\n and relkind = 'i'\n and oid in (\n select + indexrelid from pg_index idx, pg_class tbl\n where tbl.relname = 'opjob'\n + \ and idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and + idx.indisprimary != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_PARENT_JOB_ID + ON OpJob (ParentJobId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_job_appvwprjb_vwendstart'\n and relkind = 'i'\n and + oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_JOB_APPVWPRJB_VWENDSTART ON OpJob (ApplicationId, ViewParentJobId, + ViewEnd, ViewStart)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_job_hstvwprjb_vwendstart'\n and relkind = 'i'\n and + oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_JOB_HSTVWPRJB_VWENDSTART ON OpJob (ResolvedHostname, ViewParentJobId, + ViewEnd, ViewStart)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_job_parrrsuccetypestart'\n and relkind = 'i'\n and + oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_JOB_PARRRSUCCETYPESTART ON OpJob (ParentJobId, RerunSuccessorJobId, + JobEnum, EffectiveScheduledStartTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_job_rerunpredecessorjobid'\n and relkind + = 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class + tbl\n where tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n + \ and idx.indisunique != 't'\n and idx.indisprimary != 't');\n + \ if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_RERUNPREDECESSORJOBID + ON OpJob (RerunPredecessorJobId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_job_rerunsuccessorjobid'\n and relkind = + 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n + \ where tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and + idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) + then\n execute E'CREATE INDEX IDX_JOB_RERUNSUCCESSORJOBID ON OpJob (RerunSuccessorJobId)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_scheduled_start_time'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opjob'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_SCHEDULED_START_TIME + ON OpJob (ScheduledStartTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_severest_event_guid'\n and relkind = 'i'\n + \ and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_SEVEREST_EVENT_GUID ON OpJob (SeverestEventGuid)';\n end if;\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_job_vwparjob_viewendstart'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opjob'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_VWPARJOB_VIEWENDSTART + ON OpJob (ViewParentJobId, ViewEnd, ViewStart)';\n end if;\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select + count(*) into cnt from pg_class where relname = 'idx_job_vwparjob_viewstart'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opjob'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_VWPARJOB_VIEWSTART + ON OpJob (ViewParentJobId, ViewStart)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_job_starttime'\n and relkind = 'i'\n and + oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_JOB_STARTTIME ON OpJob (StartTime)';\n end if;\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select + count(*) into cnt from pg_class where relname = 'idx_job_stateenum'\n and relkind + = 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class + tbl\n where tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n + \ and idx.indisunique != 't'\n and idx.indisprimary != 't');\n + \ if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_STATEENUM ON OpJob (StateEnum)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_job_vmid'\n and + relkind = 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class + tbl\n where tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n + \ and idx.indisunique != 't'\n and idx.indisprimary != 't');\n + \ if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_VMID ON OpJob (Vmid)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_job_rerun'\n and + relkind = 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class + tbl\n where tbl.relname = 'opjob'\n and idx.indrelid = tbl.oid\n + \ and idx.indisunique != 't'\n and idx.indisprimary != 't');\n + \ if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOB_RERUN ON OpJob (RerunGuid, + EndTime, StateEnum)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_job_reparent'\n and relkind = 'i'\n and oid in (\n + \ select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname + = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique != + 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_JOB_REPARENT ON OpJob (JobDefinitionId, ViewParentJobId, StateEnum, + IsIssuesIgnored, ViewEnd)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_job_testsetguid'\n and relkind = 'i'\n and oid in (\n + \ select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname + = 'opjob'\n and idx.indrelid = tbl.oid\n and idx.indisunique != + 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_JOB_TESTSETGUID ON OpJob (TestSetGuid)';\n end if;\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_jobevent_jobid'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opjobevent'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOBEVENT_JOBID ON + OpJobEvent (JobId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_jobcompletion_endtime'\n and relkind = 'i'\n and oid + in (\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname + = 'opjobcompletion'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_JOBCOMPLETION_ENDTIME ON OpJobCompletion (EndTime)';\n end + if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_jobcompletion_updatestamp'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opjobcompletion'\n and + idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOBCOMPLETION_UPDATESTAMP + ON OpJobCompletion (UpdateStamp)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_monev_mguidevt'\n and relkind = 'i'\n and + oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opmonitoredevent'\n and idx.indrelid = tbl.oid\n and + idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) + then\n execute E'CREATE INDEX IDX_MONEV_MGUIDEVT ON OpMonitoredEvent (MonitoredObjectGuid, + EventTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_monev_mguilifevt'\n and relkind = 'i'\n and oid in + (\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname + = 'opmonitoredevent'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_MONEV_MGUILIFEVT ON OpMonitoredEvent (MonitoredObjectGuid, + LifecycleState, EventTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_monev_evt'\n and relkind = 'i'\n and oid in (\n select + indexrelid from pg_index idx, pg_class tbl\n where tbl.relname = 'opmonitoredevent'\n + \ and idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and + idx.indisprimary != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MONEV_EVT + ON OpMonitoredEvent (EventTime)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_monev_hostid'\n and relkind = 'i'\n and + oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opmonitoredevent'\n and idx.indrelid = tbl.oid\n and + idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) + then\n execute E'CREATE INDEX IDX_MONEV_HOSTID ON OpMonitoredEvent (HostId)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_monev_reporterid'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opmonitoredevent'\n and + idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MONEV_REPORTERID + ON OpMonitoredEvent (ReporterId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_monev_productid'\n and relkind = 'i'\n and + oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opmonitoredevent'\n and idx.indrelid = tbl.oid\n and + idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) + then\n execute E'CREATE INDEX IDX_MONEV_PRODUCTID ON OpMonitoredEvent (ProductId)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_monev_systemid'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opmonitoredevent'\n and + idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MONEV_SYSTEMID ON + OpMonitoredEvent (SystemId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_monev_errorcode'\n and relkind = 'i'\n and oid in (\n + \ select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname + = 'opmonitoredevent'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_MONEV_ERRORCODE ON OpMonitoredEvent (ErrorCode)';\n end if;\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_monst_hostid'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opmonitoredstatus'\n and + idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MONST_HOSTID ON + OpMonitoredStatus (HostId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_monst_reporterid'\n and relkind = 'i'\n and oid in + (\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname + = 'opmonitoredstatus'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_MONST_REPORTERID ON OpMonitoredStatus (ReporterId)';\n end + if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_monst_productid'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opmonitoredstatus'\n and + idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MONST_PRODUCTID + ON OpMonitoredStatus (ProductId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_monst_systemid'\n and relkind = 'i'\n and + oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opmonitoredstatus'\n and idx.indrelid = tbl.oid\n and + idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) + then\n execute E'CREATE INDEX IDX_MONST_SYSTEMID ON OpMonitoredStatus (SystemId)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_monst_sevevtid'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opmonitoredstatus'\n and + idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_MONST_SEVEVTID ON + OpMonitoredStatus (SeverestEventId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_monst_lastevtid'\n and relkind = 'i'\n and + oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opmonitoredstatus'\n and idx.indrelid = tbl.oid\n and + idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) + then\n execute E'CREATE INDEX IDX_MONST_LASTEVTID ON OpMonitoredStatus (LastEventId)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_product_hostid'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opproduct'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_PRODUCT_HOSTID ON + OpProduct (HostId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_queue_systemid'\n and relkind = 'i'\n and oid in (\n + \ select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname + = 'opqueue'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_QUEUE_SYSTEMID ON OpQueue (SystemId)';\n end if;\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_queue_warnnotifygrpid'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opqueue'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_QUEUE_WARNNOTIFYGRPID + ON OpQueue (WarningNotificationGroupId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_queue_errornotifygrpid'\n and relkind = + 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n + \ where tbl.relname = 'opqueue'\n and idx.indrelid = tbl.oid\n and + idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) + then\n execute E'CREATE INDEX IDX_QUEUE_ERRORNOTIFYGRPID ON OpQueue (ErrorNotificationGroupId)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_queueclient_queueid'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opqueueclient'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_QUEUECLIENT_QUEUEID + ON OpQueueClient (QueueId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_queueclient_subsid'\n and relkind = 'i'\n and oid in + (\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname + = 'opqueueclient'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_QUEUECLIENT_SUBSID ON OpQueueClient (QueueSubscriberId)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_queueclient_jobid'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opqueueclient'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_QUEUECLIENT_JOBID + ON OpQueueClient (JobId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_queuesubs_queueid'\n and relkind = 'i'\n and oid in + (\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname + = 'opqueuesubscriber'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_QUEUESUBS_QUEUEID ON OpQueueSubscriber (QueueId)';\n end if;\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_queuemetric_queueid'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opqueuemetric'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_QUEUEMETRIC_QUEUEID + ON OpQueueMetric (QueueId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from pg_class + where relname = 'idx_queuemetric_subsid'\n and relkind = 'i'\n and oid in + (\n select indexrelid from pg_index idx, pg_class tbl\n where tbl.relname + = 'opqueuemetric'\n and idx.indrelid = tbl.oid\n and idx.indisunique + != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) then\n execute + E'CREATE INDEX IDX_QUEUEMETRIC_SUBSID ON OpQueueMetric (QueueSubscriberId)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_rspool_rsserver'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opresourcepool'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_RSPOOL_RSSERVER + ON OpResourcePool (ResourceServerId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_rs_product'\n and relkind = 'i'\n and + oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opresourceserver'\n and idx.indrelid = tbl.oid\n and + idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) + then\n execute E'CREATE INDEX IDX_RS_PRODUCT ON OpResourceServer (ProductId)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_rssetting_rspool'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opresourcesetting'\n and + idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_RSSETTING_RSPOOL + ON OpResourceSetting (ResourcePoolId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_rsrequest_rsserver'\n and relkind = 'i'\n + \ and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opresourcerequest'\n and idx.indrelid = tbl.oid\n and + idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) + then\n execute E'CREATE INDEX IDX_RSREQUEST_RSSERVER ON OpResourceRequest (ResourceServerId)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_rspart_rsrequest'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opresourcepart'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_RSPART_RSREQUEST + ON OpResourcePart (ResourceRequestId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_rspart_rssetting'\n and relkind = 'i'\n + \ and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opresourcepart'\n and idx.indrelid = tbl.oid\n and + idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) + then\n execute E'CREATE INDEX IDX_RSPART_RSSETTING ON OpResourcePart (ResourceSettingId)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_jobdef_name'\n and + relkind = 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class + tbl\n where tbl.relname = 'opjobdefinition'\n and idx.indrelid = + tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary != + 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOBDEF_NAME ON OpJobDefinition + (Name)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare + \n cnt integer;\nbegin\n select count(*) into cnt from pg_class where relname + = 'idx_jobdef_application'\n and relkind = 'i'\n and oid in (\n select + indexrelid from pg_index idx, pg_class tbl\n where tbl.relname = 'opjobdefinition'\n + \ and idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and + idx.indisprimary != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOBDEF_APPLICATION + ON OpJobDefinition (ApplicationId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_jobdef_runtime'\n and relkind = 'i'\n and + oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opjobdefinition'\n and idx.indrelid = tbl.oid\n and + idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) + then\n execute E'CREATE INDEX IDX_JOBDEF_RUNTIME ON OpJobDefinition (RuntimeId)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_jobdef_jobdefgrp'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opjobdefinition'\n and + idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOBDEF_JOBDEFGRP + ON OpJobDefinition (JobDefinitionGroupId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_jobdef_discrimeffsstime'\n and relkind = + 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n + \ where tbl.relname = 'opjobdefinition'\n and idx.indrelid = tbl.oid\n + \ and idx.indisunique != 't'\n and idx.indisprimary != 't');\n + \ if (cnt = 0) then\n execute E'CREATE INDEX IDX_JOBDEF_DISCRIMEFFSSTIME ON + OpJobDefinition (JobDefinitionDiscriminator, EffectiveScheduledStartTime)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_feconstraint_jdid'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opfileandeventconstraint'\n and + idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_FECONSTRAINT_JDID + ON OpFileAndEventConstraint (JobDefinitionId)';\n end if;\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select + count(*) into cnt from pg_class where relname = 'idx_filebatch_property_type'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opfileandeventconstraint'\n and + idx.indrelid = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_FILEBATCH_PROPERTY_TYPE + ON OpFileAndEventConstraint (PropertyTypeId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_timeconstraint_calendarid'\n and relkind + = 'i'\n and oid in (\n select indexrelid from pg_index idx, pg_class + tbl\n where tbl.relname = 'optimeconstraint'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_TIMECONSTRAINT_CALENDARID + ON OpTimeConstraint (CalendarId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_jdaction_jdid'\n and relkind = 'i'\n and + oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opjobdefinitionaction'\n and idx.indrelid = tbl.oid\n and + idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) + then\n execute E'CREATE INDEX IDX_JDACTION_JDID ON OpJobDefinitionAction (JobDefinitionId)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from pg_class where relname = 'idx_groupxref_parentgroupid'\n + \ and relkind = 'i'\n and oid in (\n select indexrelid from pg_index + idx, pg_class tbl\n where tbl.relname = 'opgroupxref'\n and idx.indrelid + = tbl.oid\n and idx.indisunique != 't'\n and idx.indisprimary + != 't');\n if (cnt = 0) then\n execute E'CREATE INDEX IDX_GROUPXREF_PARENTGROUPID + ON OpGroupXref (ParentGroupId)';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from pg_class where relname = 'idx_privilege_systemid'\n and relkind = 'i'\n + \ and oid in (\n select indexrelid from pg_index idx, pg_class tbl\n where + tbl.relname = 'opprivilege'\n and idx.indrelid = tbl.oid\n and + idx.indisunique != 't'\n and idx.indisprimary != 't');\n if (cnt = 0) + then\n execute E'CREATE INDEX IDX_PRIVILEGE_SYSTEMID ON OpPrivilege (SystemId)';\n + \ end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\n--end-script\n-- + populate database with default data\n--start-script\n-- ---------------------------------------------------\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpSystem (SystemId, SystemGuid, Name, Description, UpdateStamp, ProductionDayHHMM, + TimeZoneId, ExcludeJobColumns, ExcludeJobDefinitionColumns , IsAutoGenEnabled, + AutoGenRangeMins, AutoGenOffsetMins, AutoGenDailyFrequency, MarkForDelete) values + (nextval(''hibernate_sequence''), ''sys:DEFAULT:20250502114954'', ''DEFAULT'', + ''Default system'', to_timestamp(''1970-01-01 00:00:00.000'', ''YYYY-MM-DD HH24:MI:SS.MS''), + ''00:00'', ''UTC'', ''End,Host Cluster,Job Definition,Job Definition Group,Job + GUID'','''' , ''Y'', 1440, 30, 1, ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpApplication (ApplicationId, + SystemId, Name, Description, IsApplicationNeverAutoGen) select nextval(''hibernate_sequence''), + \ SystemId, ''DEFAULT'', ''Default Application'', ''N'' from OpSystem where Name + = ''DEFAULT''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n + \ execute E'insert into OpAutoGenStats (AutoGenStatsId, SystemId) select nextval(''hibernate_sequence''), + \ SystemId from OpSystem';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'insert into OpMonitoredStatus (MonitoredStatusId, StatusTypeDiscriminator, + SystemId) select nextval(''hibernate_sequence''), ''SYSTEM'', s.SystemId from + OpSystem s left outer join OpMonitoredStatus oms on s.SystemId = oms.SystemId + \ where oms.SystemId is null';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\n-- ---------------------------------------------------\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpPropertyType (PropertyTypeId, PropertyTypeDiscriminator, SystemId, Name, + Description, ColumnSequence, CustomTypeEnum) select nextval(''hibernate_sequence''), + \ ''CUSTOM'', SystemId, ''PROCESS_REGION'', ''Region'', 10, ''STRING'' from OpSystem + where Name = ''DEFAULT''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'insert into OpPropertyType (PropertyTypeId, PropertyTypeDiscriminator, + SystemId, Name, Description, ColumnSequence, DefaultValue, BuiltinPropertyExpression) + select nextval(''hibernate_sequence''), ''BUILTIN'', SystemId, ''BOOK_DATE'', + ''Book Date'', 60, ''Unknown Book Date'', ''timeConstraint.calendar.bookDate'' + from OpSystem where Name = ''DEFAULT''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\n-- ---------------------------------------------------\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpJobSet (JobSetId, UpdateStamp, JobSetGuid, Name, IsMonitored, SystemId, + GroupByName, BadStatusTypeEnum, IssuesSeverityOrderEnum, OrderByName, IsOrderAscending, + IsShowOrderByLabel, JobMax) select nextval(''hibernate_sequence''), current_timestamp + at time zone ''UTC'', ''JobSet.'' || SystemGuid, ''All jobs in '' || Name, + \ ''Y'', SystemId, ''Application'', ''FAILED_JOBS'', ''ALL_ACTUAL_HIGHER'', ''Start'', + ''N'', ''Y'', 0 from OpSystem ';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\n-- ---------------------------------------------------\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpQuickLink (QuickLinkId, Name, Description, Url, IconName, IsHidden, Sequence) + values (nextval(''hibernate_sequence''), '''', ''Last Viewed Queues'', ''area=jobs&silo=system&subarea=queues'', + ''ViewQueues'', ''N'', 0)';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'insert into OpQuickLink (QuickLinkId, Name, Description, + Url, IconName, IsHidden, Sequence) values (nextval(''hibernate_sequence''), '''', + ''Last Viewed Resources'', ''area=jobs&silo=system&subarea=resources'', ''ViewResources'', + ''N'', 1)';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpQuickLink (QuickLinkId, Name, Description, Url, IconName, IsHidden, Sequence) + values (nextval(''hibernate_sequence''), '''', ''Last Viewed Schedule'', ''area=jobs&silo=system&subarea=schedule'', + ''ViewSchedule'', ''N'', 2)';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\n-- ---------------------------------------------------\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'DELETE + FROM OpAnalysisRowSQL';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'DELETE FROM OpAnalysisAggregatorSQL';\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\nbegin\n execute E'DELETE FROM OpAnalysisRow';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'DELETE + FROM OpAnalysisAggregator';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'DELETE FROM OpAnalysisObject';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisObject (AnalysisObjectId, + Name, TableName, BucketSQL) VALUES (nextval(''hibernate_sequence''), ''Jobs'', + ''OpMetricValue'', ''OpMetricValue.Bucket'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRow (AnalysisRowId, + AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisObjectId + FROM OpAnalysisObject WHERE Name = ''Jobs''), ''System'')';\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRow + (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Host'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Application'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''User'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Executable'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Type'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''WorkingDirectory'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''AB_WORK_DIR'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''AB_HOME'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''JobDefinition'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName, + BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND + OpAnalysisRow.Name = ''System''), ''OpSystem'', ''SystemId'', ''OpMetricValue'', + ''SystemId'', ''LEFT OUTER JOIN'', ''COALESCE(OpSystem.Name, ''''null'''')'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName, + BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND + OpAnalysisRow.Name = ''Host''), ''OpExecutable'', ''ExecutableId'', ''OpMetricValue'', + ''ExecutableId'', ''LEFT OUTER JOIN'', ''COALESCE(OpMetricValue.Hostname, OpExecutable.Hostname, + ''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n + \ execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, + JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND + OpAnalysisRow.Name = ''Application''), ''OpApplication'', ''ApplicationId'', ''OpMetricValue'', + ''ApplicationId'', ''LEFT OUTER JOIN'', ''COALESCE(OpApplication.Name, ''''null'''')'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName, + BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND + OpAnalysisRow.Name = ''User''), ''OpJob'', ''JobId'', ''OpMetricValue'', ''JobId'', + ''LEFT OUTER JOIN'', ''COALESCE(OpJob.Username, ''''null'''')'')';\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, + AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM + OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Jobs'' AND OpAnalysisRow.Name = ''Executable''), + ''OpExecutable'', ''ExecutableId'', ''OpMetricValue'', ''ExecutableId'', ''LEFT + OUTER JOIN'', ''COALESCE(OpExecutable.ExpandedPath, ''''null'''')'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName, + BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND + OpAnalysisRow.Name = ''Type''), ''OpExecutable'', ''ExecutableId'', ''OpMetricValue'', + ''ExecutableId'', ''LEFT OUTER JOIN'', ''COALESCE(OpExecutable.ExecutableEnum, + ''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n + \ execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, + JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND + OpAnalysisRow.Name = ''WorkingDirectory''), ''OpJob'', ''JobId'', ''OpMetricValue'', + ''JobId'', ''LEFT OUTER JOIN'', ''COALESCE(OpJob.WorkingDirectory, ''''null'''')'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName, + BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND + OpAnalysisRow.Name = ''AB_WORK_DIR''), ''OpJob'', ''JobId'', ''OpMetricValue'', + ''JobId'', ''LEFT OUTER JOIN'', ''COALESCE(OpJob.AbWorkDir, ''''null'''')'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName, + BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND + OpAnalysisRow.Name = ''AB_HOME''), ''OpJob'', ''JobId'', ''OpMetricValue'', ''JobId'', + ''LEFT OUTER JOIN'', ''COALESCE(OpJob.AbHome, ''''null'''')'')';\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, + AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM + OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Jobs'' AND OpAnalysisRow.Name = ''JobDefinition''), + ''OpJob'', ''JobId'', ''OpMetricValue'', ''JobId'', ''LEFT OUTER JOIN'', null)';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName, + BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND + OpAnalysisRow.Name = ''JobDefinition''), ''OpJobDefinition'', ''JobDefinitionId'', + ''OpJob'', ''JobDefinitionId'', ''LEFT OUTER JOIN'', ''COALESCE(OpJobDefinition.Name, + ''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n + \ execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, AnalysisObjectId, + MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Startup + CPU'', ''Startup CPU'', ''seconds'', ''SUM'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''System + CPU'', ''System CPU'', ''seconds'', ''SUM'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Total + CPU'', ''Total CPU'', ''seconds'', ''SUM'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Total + read'', ''Total read'', ''kilobytes'', ''SUM'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Total + read, records'', ''Total read, records'', ''records'', ''SUM'')';\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Total + rejected'', ''Total rejected'', ''records'', ''SUM'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Total + written'', ''Total written'', ''kilobytes'', ''SUM'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Total + written, records'', ''Total written, records'', ''records'', ''SUM'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisAggregator(AnalysisAggregatorId, AnalysisObjectId, MetricName, + Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), (SELECT + AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''User CPU'', ''User + CPU'', ''seconds'', ''SUM'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Jobs''), ''Job + Count'', ''Job Count'', ''count'', ''SUM'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND + OpAnalysisAggregator.Name = ''Startup CPU''), ''OpMetric'', ''MetricId'', ''OpMetricValue'', + ''MetricId'', ''JOIN'', ''SUM(OpMetricValue.Value)'', ''OpMetric.Name'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, AnalysisAggregatorId, JoinTableName, + JoinPKName, BaseTableName, BaseFKName, JoinType, AggregatorSQL, SelectSQL) VALUES + (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId FROM OpAnalysisAggregator + JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Jobs'' AND OpAnalysisAggregator.Name = ''System + CPU''), ''OpMetric'', ''MetricId'', ''OpMetricValue'', ''MetricId'', ''JOIN'', + ''SUM(OpMetricValue.Value)'', ''OpMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND + OpAnalysisAggregator.Name = ''Total CPU''), ''OpMetric'', ''MetricId'', ''OpMetricValue'', + ''MetricId'', ''JOIN'', ''SUM(OpMetricValue.Value)'', ''OpMetric.Name'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, AnalysisAggregatorId, JoinTableName, + JoinPKName, BaseTableName, BaseFKName, JoinType, AggregatorSQL, SelectSQL) VALUES + (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId FROM OpAnalysisAggregator + JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Jobs'' AND OpAnalysisAggregator.Name = ''Total + read''), ''OpMetric'', ''MetricId'', ''OpMetricValue'', ''MetricId'', ''JOIN'', + ''SUM(OpMetricValue.Value)'', ''OpMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND + OpAnalysisAggregator.Name = ''Total read, records''), ''OpMetric'', ''MetricId'', + ''OpMetricValue'', ''MetricId'', ''JOIN'', ''SUM(OpMetricValue.Value)'', ''OpMetric.Name'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, AnalysisAggregatorId, JoinTableName, + JoinPKName, BaseTableName, BaseFKName, JoinType, AggregatorSQL, SelectSQL) VALUES + (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId FROM OpAnalysisAggregator + JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Jobs'' AND OpAnalysisAggregator.Name = ''Total + rejected''), ''OpMetric'', ''MetricId'', ''OpMetricValue'', ''MetricId'', ''JOIN'', + ''SUM(OpMetricValue.Value)'', ''OpMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND + OpAnalysisAggregator.Name = ''Total written''), ''OpMetric'', ''MetricId'', ''OpMetricValue'', + ''MetricId'', ''JOIN'', ''SUM(OpMetricValue.Value)'', ''OpMetric.Name'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, AnalysisAggregatorId, JoinTableName, + JoinPKName, BaseTableName, BaseFKName, JoinType, AggregatorSQL, SelectSQL) VALUES + (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId FROM OpAnalysisAggregator + JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Jobs'' AND OpAnalysisAggregator.Name = ''Total + written, records''), ''OpMetric'', ''MetricId'', ''OpMetricValue'', ''MetricId'', + ''JOIN'', ''SUM(OpMetricValue.Value)'', ''OpMetric.Name'')';\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Jobs'' AND + OpAnalysisAggregator.Name = ''User CPU''), ''OpMetric'', ''MetricId'', ''OpMetricValue'', + ''MetricId'', ''JOIN'', ''SUM(OpMetricValue.Value)'', ''OpMetric.Name'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, AnalysisAggregatorId, JoinTableName, + JoinPKName, BaseTableName, BaseFKName, JoinType, AggregatorSQL, SelectSQL) VALUES + (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId FROM OpAnalysisAggregator + JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Jobs'' AND OpAnalysisAggregator.Name = ''Job Count''), + ''OpJob'', ''JobId'', ''OpMetricValue'', ''JobId'', ''JOIN'', ''COUNT(DISTINCT + OpMetricValue.JobId)'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisObject (AnalysisObjectId, Name, + TableName, BucketSQL) VALUES (nextval(''hibernate_sequence''), ''Hosts'', ''OpHostMetricValue'', + ''BUCKET OpHostMetricValue.CollectionTime'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRow (AnalysisRowId, + AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisObjectId + FROM OpAnalysisObject WHERE Name = ''Hosts''), ''Hostname'')';\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRow + (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''Category'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''OperatingSystem'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName, + BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND + OpAnalysisRow.Name = ''Hostname''), ''OpHostMetric'', ''HostMetricId'', ''OpHostMetricValue'', + ''HostMetricId'', ''JOIN'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, + JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES + (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM OpAnalysisRow JOIN + OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Hosts'' AND OpAnalysisRow.Name = ''Hostname''), + ''OpHost'', ''HostId'', ''OpHostMetric'', ''HostId'', ''JOIN'', ''COALESCE(OpHost.Hostname, + ''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n + \ execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, + JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND + OpAnalysisRow.Name = ''Category''), ''OpHostMetric'', ''HostMetricId'', ''OpHostMetricValue'', + ''HostMetricId'', ''JOIN'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, + JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES + (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM OpAnalysisRow JOIN + OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Hosts'' AND OpAnalysisRow.Name = ''Category''), + ''OpHost'', ''HostId'', ''OpHostMetric'', ''HostId'', ''JOIN'', ''COALESCE(OpHost.Tag, + ''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n + \ execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, + JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND + OpAnalysisRow.Name = ''OperatingSystem''), ''OpHostMetric'', ''HostMetricId'', + ''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', null)';\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, + AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM + OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Hosts'' AND OpAnalysisRow.Name = ''OperatingSystem''), + ''OpHost'', ''HostId'', ''OpHostMetric'', ''HostId'', ''JOIN'', ''COALESCE(OpHost.OperatingSystem, + ''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n + \ execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, AnalysisObjectId, + MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuTotalUsage'', + ''Average Total CPU'', ''percent'', ''AVG'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuUsageIdle'', + ''Average Idle CPU'', ''percent'', ''AVG'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuUsageSystem'', + ''Average System CPU'', ''percent'', ''AVG'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuUsageUser'', + ''Average User CPU'', ''percent'', ''AVG'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuTotalUsage'', + ''Max Total CPU'', ''percent'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuUsageIdle'', + ''Max Idle CPU'', ''percent'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuUsageSystem'', + ''Max System CPU'', ''percent'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuUsageUser'', + ''Max User CPU'', ''percent'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuTotalUsage'', + ''Min Total CPU'', ''percent'', ''MIN'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuUsageIdle'', + ''Min Idle CPU'', ''percent'', ''MIN'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuUsageSystem'', + ''Min System CPU'', ''percent'', ''MIN'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Hosts''), ''cpuUsageUser'', + ''Min User CPU'', ''percent'', ''MIN'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND + OpAnalysisAggregator.Name = ''Average Total CPU''), ''OpHostMetric'', ''HostMetricId'', + ''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''AVG(OpHostMetricValue.Value)'', + ''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND + OpAnalysisAggregator.Name = ''Average Idle CPU''), ''OpHostMetric'', ''HostMetricId'', + ''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''AVG(OpHostMetricValue.Value)'', + ''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND + OpAnalysisAggregator.Name = ''Average System CPU''), ''OpHostMetric'', ''HostMetricId'', + ''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''AVG(OpHostMetricValue.Value)'', + ''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND + OpAnalysisAggregator.Name = ''Average User CPU''), ''OpHostMetric'', ''HostMetricId'', + ''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''AVG(OpHostMetricValue.Value)'', + ''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND + OpAnalysisAggregator.Name = ''Max Total CPU''), ''OpHostMetric'', ''HostMetricId'', + ''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''MAX(OpHostMetricValue.Value)'', + ''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND + OpAnalysisAggregator.Name = ''Max Idle CPU''), ''OpHostMetric'', ''HostMetricId'', + ''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''MAX(OpHostMetricValue.Value)'', + ''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND + OpAnalysisAggregator.Name = ''Max System CPU''), ''OpHostMetric'', ''HostMetricId'', + ''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''MAX(OpHostMetricValue.Value)'', + ''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND + OpAnalysisAggregator.Name = ''Max User CPU''), ''OpHostMetric'', ''HostMetricId'', + ''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''MAX(OpHostMetricValue.Value)'', + ''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND + OpAnalysisAggregator.Name = ''Min Total CPU''), ''OpHostMetric'', ''HostMetricId'', + ''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''MIN(OpHostMetricValue.Value)'', + ''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND + OpAnalysisAggregator.Name = ''Min Idle CPU''), ''OpHostMetric'', ''HostMetricId'', + ''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''MIN(OpHostMetricValue.Value)'', + ''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND + OpAnalysisAggregator.Name = ''Min System CPU''), ''OpHostMetric'', ''HostMetricId'', + ''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''MIN(OpHostMetricValue.Value)'', + ''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Hosts'' AND + OpAnalysisAggregator.Name = ''Min User CPU''), ''OpHostMetric'', ''HostMetricId'', + ''OpHostMetricValue'', ''HostMetricId'', ''JOIN'', ''MIN(OpHostMetricValue.Value)'', + ''OpHostMetric.Name'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisObject (AnalysisObjectId, Name, + TableName, BucketSQL) VALUES (nextval(''hibernate_sequence''), ''Queues'', ''OpQueueMetricValue'', + ''BUCKET OpQueueMetricValue.CollectionTime'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRow (AnalysisRowId, + AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisObjectId + FROM OpAnalysisObject WHERE Name = ''Queues''), ''QueueName'')';\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRow + (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''Host'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''System'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''Directory'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''Type'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''Owner'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRow (AnalysisRowId, AnalysisObjectId, Name) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''Version'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName, + BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND + OpAnalysisRow.Name = ''QueueName''), ''OpQueueMetric'', ''QueueMetricId'', ''OpQueueMetricValue'', + ''QueueMetricId'', ''LEFT OUTER JOIN'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, + AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM + OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Queues'' AND OpAnalysisRow.Name = ''QueueName''), + ''OpQueue'', ''QueueId'', ''OpQueueMetric'', ''QueueId'', ''JOIN'', ''COALESCE(OpQueue.Name, + ''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n + \ execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, + JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND + OpAnalysisRow.Name = ''Host''), ''OpQueueMetric'', ''QueueMetricId'', ''OpQueueMetricValue'', + ''QueueMetricId'', ''LEFT OUTER JOIN'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, + AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM + OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Queues'' AND OpAnalysisRow.Name = ''Host''), ''OpQueue'', + ''QueueId'', ''OpQueueMetric'', ''QueueId'', ''JOIN'', null)';\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, + AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM + OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Queues'' AND OpAnalysisRow.Name = ''Host''), ''OpHost'', + ''HostId'', ''OpQueue'', ''HostId'', ''JOIN'', ''COALESCE(OpHost.Hostname, ''''null'''')'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName, + BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND + OpAnalysisRow.Name = ''System''), ''OpQueueMetric'', ''QueueMetricId'', ''OpQueueMetricValue'', + ''QueueMetricId'', ''LEFT OUTER JOIN'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, + AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM + OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Queues'' AND OpAnalysisRow.Name = ''System''), + ''OpQueue'', ''QueueId'', ''OpQueueMetric'', ''QueueId'', ''JOIN'', null)';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, JoinPKName, + BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND + OpAnalysisRow.Name = ''System''), ''OpSystem'', ''SystemId'', ''OpQueue'', ''SystemId'', + ''JOIN'', ''COALESCE(OpSystem.Name, ''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, + AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM + OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Queues'' AND OpAnalysisRow.Name = ''Directory''), + ''OpQueueMetric'', ''QueueMetricId'', ''OpQueueMetricValue'', ''QueueMetricId'', + ''LEFT OUTER JOIN'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, + JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES + (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM OpAnalysisRow JOIN + OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Queues'' AND OpAnalysisRow.Name = ''Directory''), + ''OpQueue'', ''QueueId'', ''OpQueueMetric'', ''QueueId'', ''JOIN'', ''COALESCE(OpQueue.Directory, + ''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n + \ execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, + JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND + OpAnalysisRow.Name = ''Type''), ''OpQueueMetric'', ''QueueMetricId'', ''OpQueueMetricValue'', + ''QueueMetricId'', ''LEFT OUTER JOIN'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, + AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM + OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Queues'' AND OpAnalysisRow.Name = ''Type''), ''OpQueue'', + ''QueueId'', ''OpQueueMetric'', ''QueueId'', ''JOIN'', ''COALESCE(OpQueue.QueueType, + ''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n + \ execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, + JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND + OpAnalysisRow.Name = ''Owner''), ''OpQueueMetric'', ''QueueMetricId'', ''OpQueueMetricValue'', + ''QueueMetricId'', ''LEFT OUTER JOIN'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, + AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM + OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Queues'' AND OpAnalysisRow.Name = ''Owner''), + ''OpQueue'', ''QueueId'', ''OpQueueMetric'', ''QueueId'', ''JOIN'', ''COALESCE(OpQueue.Owner, + ''''null'''')'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n + \ execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, AnalysisRowId, JoinTableName, + JoinPKName, BaseTableName, BaseFKName, JoinType, SelectSQL) VALUES (nextval(''hibernate_sequence''), + \ (SELECT AnalysisRowId FROM OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND + OpAnalysisRow.Name = ''Version''), ''OpQueueMetric'', ''QueueMetricId'', ''OpQueueMetricValue'', + ''QueueMetricId'', ''LEFT OUTER JOIN'', null)';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisRowSQL(AnalysisRowSQLId, + AnalysisRowId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisRowId FROM + OpAnalysisRow JOIN OpAnalysisObject ON OpAnalysisRow.AnalysisObjectId = OpAnalysisObject.AnalysisObjectId + WHERE OpAnalysisObject.Name = ''Queues'' AND OpAnalysisRow.Name = ''Version''), + ''OpQueue'', ''QueueId'', ''OpQueueMetric'', ''QueueId'', ''JOIN'', ''COALESCE(OpQueue.QueueVersion, + -1)'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'INSERT + INTO OpAnalysisAggregator(AnalysisAggregatorId, AnalysisObjectId, MetricName, + Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), (SELECT + AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''MAX_DISK_SPACE'', + ''Max Disk Space'', ''bytes'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''MAX_FILES'', + ''Max Files'', ''count'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''MAX_READ_COLLECTION_DELTA'', + ''Max Read Collection Delta'', ''seconds'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''MAX_RECORDS'', + ''Max Records'', ''count'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''MAX_RECORDS_SPACE'', + ''Max Records Space'', ''percent'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregator(AnalysisAggregatorId, + AnalysisObjectId, MetricName, Name, Units, AggregationType) VALUES(nextval(''hibernate_sequence''), + \ (SELECT AnalysisObjectId FROM OpAnalysisObject WHERE Name = ''Queues''), ''WRITE_COLLECTION_DELTA'', + ''Write Collection Delta'', ''seconds'', ''MAX'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND + OpAnalysisAggregator.Name = ''Max Disk Space''), ''OpQueueMetric'', ''QueueMetricId'', + ''OpQueueMetricValue'', ''QueueMetricId'', ''JOIN'', ''MAX(OpQueueMetricValue.Value)'', + ''OpQueueMetric.MetricEnum'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND + OpAnalysisAggregator.Name = ''Max Files''), ''OpQueueMetric'', ''QueueMetricId'', + ''OpQueueMetricValue'', ''QueueMetricId'', ''JOIN'', ''MAX(OpQueueMetricValue.Value)'', + ''OpQueueMetric.MetricEnum'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND + OpAnalysisAggregator.Name = ''Max Read Collection Delta''), ''OpQueueMetric'', + ''QueueMetricId'', ''OpQueueMetricValue'', ''QueueMetricId'', ''JOIN'', ''MAX(OpQueueMetricValue.Value)'', + ''OpQueueMetric.MetricEnum'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND + OpAnalysisAggregator.Name = ''Max Records''), ''OpQueueMetric'', ''QueueMetricId'', + ''OpQueueMetricValue'', ''QueueMetricId'', ''JOIN'', ''MAX(OpQueueMetricValue.Value)'', + ''OpQueueMetric.MetricEnum'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND + OpAnalysisAggregator.Name = ''Max Records Space''), ''OpQueueMetric'', ''QueueMetricId'', + ''OpQueueMetricValue'', ''QueueMetricId'', ''JOIN'', ''MAX(OpQueueMetricValue.Value)'', + ''OpQueueMetric.MetricEnum'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'INSERT INTO OpAnalysisAggregatorSQL(AnalysisAggregatorSQLId, + AnalysisAggregatorId, JoinTableName, JoinPKName, BaseTableName, BaseFKName, JoinType, + AggregatorSQL, SelectSQL) VALUES (nextval(''hibernate_sequence''), (SELECT AnalysisAggregatorId + FROM OpAnalysisAggregator JOIN OpAnalysisObject ON OpAnalysisAggregator.AnalysisObjectId + = OpAnalysisObject.AnalysisObjectId WHERE OpAnalysisObject.Name = ''Queues'' AND + OpAnalysisAggregator.Name = ''Write Collection Delta''), ''OpQueueMetric'', ''QueueMetricId'', + ''OpQueueMetricValue'', ''QueueMetricId'', ''JOIN'', ''MAX(OpQueueMetricValue.Value)'', + ''OpQueueMetric.MetricEnum'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\n-- ---------------------------------------------------\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpPrincipal (PrincipalId, PrincipalDiscriminator, Name, LCName, IsEnabled, + IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''), ''GROUP'', ''Admins'', + ''admins'', ''Y'', ''N'', ''Admins'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''), + ''GROUP'', ''Account Admins'', ''account admins'', ''Y'', ''N'', ''Account Administration'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpPrincipal (PrincipalId, PrincipalDiscriminator, Name, LCName, IsEnabled, + IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''), ''GROUP'', ''Environment + Admins'', ''environment admins'', ''Y'', ''N'', ''Environment Configuration Administration'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpPrincipal (PrincipalId, PrincipalDiscriminator, Name, LCName, IsEnabled, + IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''), ''GROUP'', ''Jobs + Monitors (DEFAULT)'', ''jobs monitors (default)'', ''Y'', ''N'', ''Jobs Monitors + (DEFAULT)'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n + \ execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, Name, + LCName, IsEnabled, IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''), + ''GROUP'', ''Jobs Operators (DEFAULT)'', ''jobs operators (default)'', ''Y'', + ''N'', ''Jobs Operators (DEFAULT)'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''), + ''GROUP'', ''Jobs Schedulers (DEFAULT)'', ''jobs schedulers (default)'', ''Y'', + ''N'', ''Jobs Schedulers (DEFAULT)'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''), + ''GROUP'', ''Jobs Approvers (DEFAULT)'', ''jobs approvers (default)'', ''Y'', + ''N'', ''Jobs Approvers (DEFAULT)'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''), + ''GROUP'', ''Jobs System Admins (DEFAULT)'', ''jobs system admins (default)'', + ''Y'', ''N'', ''Jobs System Admins (DEFAULT)'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''), + ''GROUP'', ''Host Monitors'', ''host monitors'', ''Y'', ''N'', ''Host Monitors'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpPrincipal (PrincipalId, PrincipalDiscriminator, Name, LCName, IsEnabled, + IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''), ''GROUP'', ''Host + Admins'', ''host admins'', ''Y'', ''N'', ''Host Admins'')';\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\nbegin\n execute E'insert into OpPrincipal + (PrincipalId, PrincipalDiscriminator, Name, LCName, IsEnabled, IsBuiltin, DisplayName) + values (nextval(''hibernate_sequence''), ''GROUP'', ''Product Monitors'', ''product + monitors'', ''Y'', ''N'', ''Product Monitors'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''), + ''GROUP'', ''Product Operators'', ''product operators'', ''Y'', ''N'', ''Product + Operators'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n + \ execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, Name, + LCName, IsEnabled, IsBuiltin, DisplayName) values (nextval(''hibernate_sequence''), + ''GROUP'', ''Product Admins'', ''product admins'', ''Y'', ''N'', ''Product Admins'')';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpPrivilege (PrivilegeId, PrincipalId, RoleEnum) select nextval(''hibernate_sequence''), + P.PrincipalId, ''ROLE_OP_ADMIN'' from OpPrincipal P where P.Name = ''Admins''';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpPrivilege (PrivilegeId, PrincipalId, RoleEnum) select nextval(''hibernate_sequence''), + P.PrincipalId, ''ROLE_OP_ACCOUNT_ADMIN'' from OpPrincipal P where P.Name = ''Account + Admins''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpPrivilege (PrivilegeId, PrincipalId, RoleEnum) select nextval(''hibernate_sequence''), + P.PrincipalId, ''ROLE_OP_ENV_ADMIN'' from OpPrincipal P where P.Name = ''Environment + Admins''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpPrivilege (PrivilegeId, PrincipalId, RoleEnum) select nextval(''hibernate_sequence''), + P.PrincipalId, ''ROLE_OP_HOST_MONITOR'' from OpPrincipal P where P.Name = ''Host + Monitors''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpPrivilege (PrivilegeId, PrincipalId, RoleEnum) select nextval(''hibernate_sequence''), + P.PrincipalId, ''ROLE_OP_COMPUTER_KEY_ADMIN'' from OpPrincipal P where P.Name + = ''Host Admins''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\nbegin\n + \ execute E'insert into OpPrivilege (PrivilegeId, PrincipalId, RoleEnum) select + nextval(''hibernate_sequence''), P.PrincipalId, ''ROLE_OP_HOST_ADMIN'' from OpPrincipal + P where P.Name = ''Host Admins''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'insert into OpPrivilege (PrivilegeId, PrincipalId, RoleEnum) + select nextval(''hibernate_sequence''), P.PrincipalId, ''ROLE_OP_PRODUCT_MONITOR'' + from OpPrincipal P where P.Name = ''Product Monitors''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrivilege (PrivilegeId, PrincipalId, + RoleEnum) select nextval(''hibernate_sequence''), P.PrincipalId, ''ROLE_OP_PRODUCT_OPERATOR'' + from OpPrincipal P where P.Name = ''Product Operators''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrivilege (PrivilegeId, PrincipalId, + RoleEnum) select nextval(''hibernate_sequence''), P.PrincipalId, ''ROLE_OP_USER_KEY_ADMIN'' + from OpPrincipal P where P.Name = ''Product Admins''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrivilege (PrivilegeId, PrincipalId, + RoleEnum) select nextval(''hibernate_sequence''), P.PrincipalId, ''ROLE_OP_PRODUCT_ADMIN'' + from OpPrincipal P where P.Name = ''Product Admins''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n default_system integer;\nbegin\n select SystemId + into default_system from OpSystem where name = 'DEFAULT';\n execute E'insert + into OpPrivilege (PrivilegeId, PrincipalId, RoleEnum, SystemId) select nextval(''hibernate_sequence''), + P.PrincipalId, ''ROLE_OP_OPERATOR'', ' || default_system || ' from OpPrincipal + P where P.Name = ''Jobs Operators (DEFAULT)''';\n execute E'insert into OpPrivilege + (PrivilegeId, PrincipalId, RoleEnum, SystemId) select nextval(''hibernate_sequence''), + P.PrincipalId, ''ROLE_OP_MONITOR'', ' || default_system || ' from OpPrincipal + P where P.Name = ''Jobs Monitors (DEFAULT)''';\n execute E'insert into OpPrivilege + (PrivilegeId, PrincipalId, RoleEnum, SystemId) select nextval(''hibernate_sequence''), + P.PrincipalId, ''ROLE_OP_DATA_VIEWER'', ' || default_system || ' from OpPrincipal + P where P.Name = ''Jobs Monitors (DEFAULT)''';\n execute E'insert into OpPrivilege + (PrivilegeId, PrincipalId, RoleEnum, SystemId) select nextval(''hibernate_sequence''), + P.PrincipalId, ''ROLE_OP_SCHEDULER'', ' || default_system || ' from OpPrincipal + P where P.Name = ''Jobs Schedulers (DEFAULT)''';\n execute E'insert into OpPrivilege + (PrivilegeId, PrincipalId, RoleEnum, SystemId) select nextval(''hibernate_sequence''), + P.PrincipalId, ''ROLE_OP_DATA_EDITOR'', ' || default_system || ' from OpPrincipal + P where P.Name = ''Jobs Schedulers (DEFAULT)''';\n execute E'insert into OpPrivilege + (PrivilegeId, PrincipalId, RoleEnum, SystemId) select nextval(''hibernate_sequence''), + P.PrincipalId, ''ROLE_OP_APPROVER'', ' || default_system || ' from OpPrincipal + P where P.Name = ''Jobs Approvers (DEFAULT)''';\n execute E'insert into OpPrivilege + (PrivilegeId, PrincipalId, RoleEnum, SystemId) select nextval(''hibernate_sequence''), + P.PrincipalId, ''ROLE_OP_SYSTEM_ADMIN'', ' || default_system || ' from OpPrincipal + P where P.Name = ''Jobs System Admins (DEFAULT)''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'', + ''ocagent'', ''ocagent'', ''Y'', ''Y'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'', + ''admin'', ''admin'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'', + ''accountAdmin'', ''accountadmin'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'', + ''envAdmin'', ''envadmin'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'', + ''monitor'', ''monitor'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'', + ''operator'', ''operator'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'', + ''scheduler'', ''scheduler'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'', + ''approver'', ''approver'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'', + ''sysAdmin'', ''sysadmin'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'', + ''hostMonitor'', ''hostmonitor'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'', + ''hostAdmin'', ''hostadmin'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'', + ''productMonitor'', ''productmonitor'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'', + ''productOperator'', ''productoperator'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'', + ''productAdmin'', ''productadmin'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrincipal (PrincipalId, PrincipalDiscriminator, + Name, LCName, IsEnabled, IsBuiltin) values (nextval(''hibernate_sequence''), ''USER'', + ''analyst'', ''analyst'', ''N'', ''N'')';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrivilege (PrivilegeId, PrincipalId, + RoleEnum) select nextval(''hibernate_sequence''), P.PrincipalId, ''ROLE_OP_OCAGENT'' + from OpPrincipal P where P.Name = ''ocagent''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpPrivilege (PrivilegeId, PrincipalId, + RoleEnum) select nextval(''hibernate_sequence''), P.PrincipalId, ''ROLE_OP_ANALYST'' + from OpPrincipal P where P.Name = ''analyst''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpGroupXref (ChildPrincipalId, + ParentGroupId) select C.PrincipalId, P.PrincipalId from OpPrincipal C, OpPrincipal + P where C.Name = ''admin'' and P.Name = ''Admins''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpGroupXref (ChildPrincipalId, + ParentGroupId) select C.PrincipalId, P.PrincipalId from OpPrincipal C, OpPrincipal + P where C.Name = ''accountAdmin'' and P.Name = ''Account Admins''';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpGroupXref (ChildPrincipalId, ParentGroupId) select C.PrincipalId, P.PrincipalId + from OpPrincipal C, OpPrincipal P where C.Name = ''envAdmin'' and P.Name = ''Environment + Admins''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpGroupXref (ChildPrincipalId, ParentGroupId) select C.PrincipalId, P.PrincipalId + from OpPrincipal C, OpPrincipal P where C.Name = ''monitor'' and P.Name = ''Jobs + Monitors (DEFAULT)''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'insert into OpGroupXref (ChildPrincipalId, ParentGroupId) + select C.PrincipalId, P.PrincipalId from OpPrincipal C, OpPrincipal P where C.Name + = ''operator'' and P.Name = ''Jobs Operators (DEFAULT)''';\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\nbegin\n execute E'insert into OpGroupXref + (ChildPrincipalId, ParentGroupId) select C.PrincipalId, P.PrincipalId from OpPrincipal + C, OpPrincipal P where C.Name = ''scheduler'' and P.Name = ''Jobs Schedulers (DEFAULT)''';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpGroupXref (ChildPrincipalId, ParentGroupId) select C.PrincipalId, P.PrincipalId + from OpPrincipal C, OpPrincipal P where C.Name = ''approver'' and P.Name = ''Jobs + Approvers (DEFAULT)''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'insert into OpGroupXref (ChildPrincipalId, ParentGroupId) + select C.PrincipalId, P.PrincipalId from OpPrincipal C, OpPrincipal P where C.Name + = ''sysAdmin'' and P.Name = ''Jobs System Admins (DEFAULT)''';\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\nbegin\n execute E'insert into OpGroupXref + (ChildPrincipalId, ParentGroupId) select C.PrincipalId, P.PrincipalId from OpPrincipal + C, OpPrincipal P where C.Name = ''hostMonitor'' and P.Name = ''Host Monitors''';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpGroupXref (ChildPrincipalId, ParentGroupId) select C.PrincipalId, P.PrincipalId + from OpPrincipal C, OpPrincipal P where C.Name = ''hostAdmin'' and P.Name = ''Host + Admins''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpGroupXref (ChildPrincipalId, ParentGroupId) select C.PrincipalId, P.PrincipalId + from OpPrincipal C, OpPrincipal P where C.Name = ''productMonitor'' and P.Name + = ''Product Monitors''';\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\nbegin\n execute E'insert into OpGroupXref (ChildPrincipalId, ParentGroupId) + select C.PrincipalId, P.PrincipalId from OpPrincipal C, OpPrincipal P where C.Name + = ''productOperator'' and P.Name = ''Product Operators''';\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\nbegin\n execute E'insert into OpGroupXref + (ChildPrincipalId, ParentGroupId) select C.PrincipalId, P.PrincipalId from OpPrincipal + C, OpPrincipal P where C.Name = ''productAdmin'' and P.Name = ''Product Admins''';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\n-- ---------------------------------------------------\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpCalendar (CalendarId, SystemId, Name) select nextval(''hibernate_sequence''), + \ SystemId, ''Everyday Calendar'' from OpSystem where Name = ''DEFAULT''';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpCalendar (CalendarId, SystemId, Name) select nextval(''hibernate_sequence''), + \ SystemId, ''Weekdays Calendar'' from OpSystem where Name = ''DEFAULT''';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpCalendar (CalendarId, SystemId, Name) select nextval(''hibernate_sequence''), + \ SystemId, ''Workdays Calendar'' from OpSystem where Name = ''DEFAULT''';\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\nbegin\n execute E'insert + into OpCalendarYear (CalendarId, Days, Year) select CalendarId, ''111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'', + 2023 from OpCalendar where Name = ''Everyday Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId, + Days, Year) select CalendarId, ''011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001'', + 2023 from OpCalendar where Name = ''Weekdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId, + Days, Year) select CalendarId, ''001111001111100111110011111001111100111110011111000111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110001111001111100111110011111001111100101110011111001111100111110011111001111100111110011111001111100011110011111001111100111110011111001111100111110011111001111100111110011111001110000111110011111001111100111110001111000'', + 2023 from OpCalendar where Name = ''Workdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId, + Days, Year) select CalendarId, ''111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'', + 2024 from OpCalendar where Name = ''Everyday Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId, + Days, Year) select CalendarId, ''111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011'', + 2024 from OpCalendar where Name = ''Weekdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId, + Days, Year) select CalendarId, ''011110011111001111100111110011111001111100111110001111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100011110011111001111100111110011111001110100111110011111001111100111110011111001111100111110011111000111100111110011111001111100111110011111001111100111110011111001111100111110011111001110000111110011111001111100110110011'', + 2024 from OpCalendar where Name = ''Workdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId, + Days, Year) select CalendarId, ''111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'', + 2025 from OpCalendar where Name = ''Everyday Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId, + Days, Year) select CalendarId, ''111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111'', + 2025 from OpCalendar where Name = ''Weekdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId, + Days, Year) select CalendarId, ''011001111100111110011111001111100111110011111000111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110001111001111100111110011111001111100111100011111001111100111110011111001111100111110011111001111100011110011111001111100111110011111001111100111110011111001111100111110011111001111100111000011111001111100111110011101001110'', + 2025 from OpCalendar where Name = ''Workdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId, + Days, Year) select CalendarId, ''111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'', + 2026 from OpCalendar where Name = ''Everyday Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId, + Days, Year) select CalendarId, ''110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111'', + 2026 from OpCalendar where Name = ''Weekdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId, + Days, Year) select CalendarId, ''010011111001111100111110011111001111100111110001111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100011110011111001111100111110011111001111000111110011111001111100111110011111001111100111110011111001111100011110011111001111100111110011111001111100111110011111001111100111110011111001110000111110011111001111100111100011110'', + 2026 from OpCalendar where Name = ''Workdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId, + Days, Year) select CalendarId, ''111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'', + 2027 from OpCalendar where Name = ''Everyday Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId, + Days, Year) select CalendarId, ''100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110'', + 2027 from OpCalendar where Name = ''Weekdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId, + Days, Year) select CalendarId, ''000111110011111001111100111110011111001111100011110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100011110011111001111100111110011111000111100111110011111001111100111110011111001111100111110011111000111100111110011111001111100111110011111001111100111110011111001111100111110011100001111100111110011111001111000111100'', + 2027 from OpCalendar where Name = ''Workdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId, + Days, Year) select CalendarId, ''111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111'', + 2028 from OpCalendar where Name = ''Everyday Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId, + Days, Year) select CalendarId, ''001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111001111100'', + 2028 from OpCalendar where Name = ''Weekdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\nbegin\n execute E'insert into OpCalendarYear (CalendarId, + Days, Year) select CalendarId, ''001111100111110011111001111100111110011111001111100011110011111001111100111110011111001111100111110011111001111100111110011111001111100111110011111000111100111110011111001111100111110010111001111100111110011111001111100111110011111001111100111110001111001111100111110011111001111100111110011111001111100111110011111001111100111000011111001111100111110011111000111100'', + 2028 from OpCalendar where Name = ''Workdays Calendar''';\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\n-- ---------------------------------------------------\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from OpConfigValue where Name = 'client.analysisArea.maxDays';\n + \ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', + IsHidden = ''N'', Description = ''The maximum number of days over which the Control>Center + can perform an analysis. Default: 31'' WHERE Name = ''client.analysisArea.maxDays''';\n + \ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, + ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.analysisArea.maxDays'', + ''The maximum number of days over which the Control>Center can perform an analysis. + Default: 31'', ''INTEGER'', ''31'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from OpConfigValue where Name = 'client.analysisArea.chart.maxColumns';\n if + (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', + IsHidden = ''N'', Description = ''The maximum number of columns that the Control>Center + can display in the Analysis area Timeline chart. Default: 48'' WHERE Name = ''client.analysisArea.chart.maxColumns''';\n + \ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, + ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.analysisArea.chart.maxColumns'', + ''The maximum number of columns that the Control>Center can display in the Analysis + area Timeline chart. Default: 48'', ''INTEGER'', ''48'', ''N'')';\n end if;\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from OpConfigValue where Name = 'client.analysisArea.chart.minColumnWidthSecs';\n + \ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', + IsHidden = ''N'', Description = ''The minimum width in seconds of a column in + the Analysis area Timeline chart. Default: 86400 (1 day)'' WHERE Name = ''client.analysisArea.chart.minColumnWidthSecs''';\n + \ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, + ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.analysisArea.chart.minColumnWidthSecs'', + ''The minimum width in seconds of a column in the Analysis area Timeline chart. + \ Default: 86400 (1 day)'', ''INTEGER'', ''86400'', ''N'')';\n end if;\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from OpConfigValue where Name = 'client.analysisArea.chart.displayGapMinutes';\n + \ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', + IsHidden = ''N'', Description = ''The maximum number of minutes between metric + line graph data points that should be regarded as continuous. Larger intervals + result in the display of gaps. Default: 10'' WHERE Name = ''client.analysisArea.chart.displayGapMinutes''';\n + \ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, + ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.analysisArea.chart.displayGapMinutes'', + ''The maximum number of minutes between metric line graph data points that should + be regarded as continuous. Larger intervals result in the display of gaps. Default: + 10'', ''INTEGER'', ''10'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect + anonymous();\ndrop function anonymous();\n\n\ncreate or replace function anonymous() + returns void as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt + from OpConfigValue where Name = 'client.apiDoc.enabled';\n if (cnt > 0) then\n + \ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = + ''N'', Description = ''Enables API documentation page. Default: 1'' WHERE Name + = ''client.apiDoc.enabled''';\n else\n execute E'INSERT INTO OpConfigValue + (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), + \ ''client.apiDoc.enabled'', ''Enables API documentation page. Default: 1'', ''INTEGER'', + ''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue + where Name = 'client.products.visible';\n if (cnt > 0) then\n execute E'UPDATE + OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description = + ''When 0, this hides the products page button from the navigation bar and excludes + some products from appearing on the home area. Default: 0'' WHERE Name = ''client.products.visible''';\n + \ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, + ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.products.visible'', + ''When 0, this hides the products page button from the navigation bar and excludes + some products from appearing on the home area. Default: 0'', ''INTEGER'', ''0'', + ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare + \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name + = 'client.analysis.visible';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue + SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description = ''When 0, this + hides the analysis page button from the navigation bar. Default: 0'' WHERE Name + = ''client.analysis.visible''';\n else\n execute E'INSERT INTO OpConfigValue + (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), + \ ''client.analysis.visible'', ''When 0, this hides the analysis page button from + the navigation bar. Default: 0'', ''INTEGER'', ''0'', ''N'')';\n end if;\nend;\n$$ + LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from OpConfigValue where Name = 'client.automatedJobGeneration.allowPerApplication';\n + \ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', + IsHidden = ''N'', Description = ''Allows you to disable automated job generation + on a particular application in systems where automated job generation is enabled. + Default: 0'' WHERE Name = ''client.automatedJobGeneration.allowPerApplication''';\n + \ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, + ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.automatedJobGeneration.allowPerApplication'', + ''Allows you to disable automated job generation on a particular application in + systems where automated job generation is enabled. Default: 0'', ''INTEGER'', + ''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue + where Name = 'client.configParamUnlock';\n if (cnt > 0) then\n execute E'UPDATE + OpConfigValue SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description = + ''Control to limit configuration parameter access: 0 - no access, 1 - edit values, + 2 - full control, including creating and deleting parameters. Default: 1'' WHERE + Name = ''client.configParamUnlock''';\n else\n execute E'INSERT INTO OpConfigValue + (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), + \ ''client.configParamUnlock'', ''Control to limit configuration parameter access: + 0 - no access, 1 - edit values, 2 - full control, including creating and deleting + parameters. Default: 1'', ''INTEGER'', ''1'', ''N'')';\n end if;\nend;\n$$ LANGUAGE + plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate or replace + function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n select + count(*) into cnt from OpConfigValue where Name = 'client.dailyJobs.findJob.enabled';\n + \ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''INTEGER'', + IsHidden = ''N'', Description = ''Allows users to find a job across systems. Default + 1'' WHERE Name = ''client.dailyJobs.findJob.enabled''';\n else\n execute E'INSERT + INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) + VALUES (nextval(''hibernate_sequence''), ''client.dailyJobs.findJob.enabled'', + ''Allows users to find a job across systems. Default 1'', ''INTEGER'', ''1'', + ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function + anonymous();\n\n\ncreate or replace function anonymous() returns void as $$\ndeclare + \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue where Name + = 'client.disableParameterEval';\n if (cnt > 0) then\n execute E'UPDATE OpConfigValue + SET ValueTypeEnum = ''INTEGER'', IsHidden = ''N'', Description = ''When set to + 1, disables viewing of a graph or plan where viewing would cause a re-evaluation + of the graph or plan''''s parameters. Default: 0'' WHERE Name = ''client.disableParameterEval''';\n + \ else\n execute E'INSERT INTO OpConfigValue (ConfigValueId, Name, Description, + ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), ''client.disableParameterEval'', + ''When set to 1, disables viewing of a graph or plan where viewing would cause + a re-evaluation of the graph or plan''''s parameters. Default: 0'', ''INTEGER'', + ''0'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue + where Name = 'client.excludeJobColumns';\n if (cnt > 0) then\n execute E'UPDATE + OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden = ''N'', Description = + ''Comma-delimited list of columns to exclude from the Daily Jobs Area.'' WHERE + Name = ''client.excludeJobColumns''';\n else\n execute E'INSERT INTO OpConfigValue + (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) VALUES (nextval(''hibernate_sequence''), + \ ''client.excludeJobColumns'', ''Comma-delimited list of columns to exclude from + the Daily Jobs Area.'', ''STRING'', ''End,Host Cluster,Job Definition,Job Definition + Group,Job GUID'', ''N'')';\n end if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop + function anonymous();\n\n\ncreate or replace function anonymous() returns void + as $$\ndeclare \n cnt integer;\nbegin\n select count(*) into cnt from OpConfigValue + where Name = 'client.excludeJobsWithIssuesListColumns';\n if (cnt > 0) then\n + \ execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', IsHidden = + ''N'', Description = ''Comma-delimited list of columns to exclude from the Jobs + list in the Jobs Overview for All Systems sub-area. Default: '' WHERE Name + = ''client.excludeJobsWithIssuesListColumns''';\n else\n execute E'INSERT + INTO OpConfigValue (ConfigValueId, Name, Description, ValueTypeEnum, Value, IsHidden) + VALUES (nextval(''hibernate_sequence''), ''client.excludeJobsWithIssuesListColumns'', + ''Comma-delimited list of columns to exclude from the Jobs list in the Jobs Overview + for All Systems sub-area. Default: '', ''STRING'', '''', ''N'')';\n end + if;\nend;\n$$ LANGUAGE plpgsql;\nselect anonymous();\ndrop function anonymous();\n\n\ncreate + or replace function anonymous() returns void as $$\ndeclare \n cnt integer;\nbegin\n + \ select count(*) into cnt from OpConfigValue where Name = 'client.groupByAlso.job';\n + \ if (cnt > 0) then\n execute E'UPDATE OpConfigValue SET ValueTypeEnum = ''STRING'', + IsHidden = ''Y'', Description = ''FOR INTERNAL USE ONLY. Choices for the Daily + Jobs sub-areas Group by menus. Comma-delimited list of