diff --git a/aspnetcore/openshift/indexer/template-indexer-app-devel.yml b/aspnetcore/openshift/indexer/template-indexer-app-devel.yml new file mode 100644 index 0000000..fd75eb2 --- /dev/null +++ b/aspnetcore/openshift/indexer/template-indexer-app-devel.yml @@ -0,0 +1,47 @@ +# This file is part of the research.fi api +# +# Copyright 2024 Ministry of Education and Culture, Finland +# +# :author: CSC - IT Center for Science Ltd., Espoo Finland servicedesk@csc.fi +# :license: MIT +apiVersion: v1 +kind: Template +metadata: + labels: + app: publicapi-indexer-devel + template: publicapi-indexer-devel + name: publicapi-indexer-devel +objects: + # ImageStream (development) + - apiVersion: v1 + kind: ImageStream + metadata: + name: publicapi-indexer-devel + labels: + app: publicapi-indexer-devel + spec: + lookupPolicy: + local: true + + # BuildConfig using Docker build strategy + - apiVersion: v1 + kind: BuildConfig + metadata: + name: publicapi-indexer-build-devel + labels: + app: publicapi-indexer-devel + spec: + source: + git: + uri: https://github.com/CSCfi/research-fi-publicapi.git + ref: devel + contextDir: . + strategy: + dockerStrategy: + dockerfilePath: aspnetcore/openshift/indexer/Dockerfile + output: + to: + kind: ImageStreamTag + name: publicapi-indexer-devel:latest + successfulBuildsHistoryLimit: 4 + failedBuildsHistoryLimit: 4 diff --git a/aspnetcore/openshift/indexer/template-indexer-app-production.yml b/aspnetcore/openshift/indexer/template-indexer-app-production.yml new file mode 100644 index 0000000..4f86400 --- /dev/null +++ b/aspnetcore/openshift/indexer/template-indexer-app-production.yml @@ -0,0 +1,47 @@ +# This file is part of the research.fi api +# +# Copyright 2024 Ministry of Education and Culture, Finland +# +# :author: CSC - IT Center for Science Ltd., Espoo Finland servicedesk@csc.fi +# :license: MIT +apiVersion: v1 +kind: Template +metadata: + labels: + app: publicapi-indexer-production + template: publicapi-indexer-production + name: publicapi-indexer-production +objects: + # ImageStream (production) + - apiVersion: v1 + kind: ImageStream + metadata: + name: publicapi-indexer-production + labels: + app: publicapi-indexer-production + spec: + lookupPolicy: + local: true + + # BuildConfig using Docker build strategy + - apiVersion: v1 + kind: BuildConfig + metadata: + name: publicapi-indexer-build-production + labels: + app: publicapi-indexer-production + spec: + source: + git: + uri: https://github.com/CSCfi/research-fi-publicapi.git + ref: main + contextDir: . + strategy: + dockerStrategy: + dockerfilePath: aspnetcore/openshift/indexer/Dockerfile + output: + to: + kind: ImageStreamTag + name: publicapi-indexer-production:latest + successfulBuildsHistoryLimit: 4 + failedBuildsHistoryLimit: 4 diff --git a/aspnetcore/openshift/indexer/template-indexer-app-qa.yml b/aspnetcore/openshift/indexer/template-indexer-app-qa.yml new file mode 100644 index 0000000..ae3410a --- /dev/null +++ b/aspnetcore/openshift/indexer/template-indexer-app-qa.yml @@ -0,0 +1,47 @@ +# This file is part of the research.fi api +# +# Copyright 2024 Ministry of Education and Culture, Finland +# +# :author: CSC - IT Center for Science Ltd., Espoo Finland servicedesk@csc.fi +# :license: MIT +apiVersion: v1 +kind: Template +metadata: + labels: + app: publicapi-indexer-qa + template: publicapi-indexer-qa + name: publicapi-indexer-qa +objects: + # ImageStream (qa) + - apiVersion: v1 + kind: ImageStream + metadata: + name: publicapi-indexer-qa + labels: + app: publicapi-indexer-qa + spec: + lookupPolicy: + local: true + + # BuildConfig using Docker build strategy + - apiVersion: v1 + kind: BuildConfig + metadata: + name: publicapi-indexer-build-qa + labels: + app: publicapi-indexer-qa + spec: + source: + git: + uri: https://github.com/CSCfi/research-fi-publicapi.git + ref: qa + contextDir: . + strategy: + dockerStrategy: + dockerfilePath: aspnetcore/openshift/indexer/Dockerfile + output: + to: + kind: ImageStreamTag + name: publicapi-indexer-qa:latest + successfulBuildsHistoryLimit: 4 + failedBuildsHistoryLimit: 4 diff --git a/aspnetcore/openshift/indexer/template-indexer-devel.yml b/aspnetcore/openshift/indexer/template-indexer-cronjob-devel.yml similarity index 85% rename from aspnetcore/openshift/indexer/template-indexer-devel.yml rename to aspnetcore/openshift/indexer/template-indexer-cronjob-devel.yml index e4bf922..6c76306 100644 --- a/aspnetcore/openshift/indexer/template-indexer-devel.yml +++ b/aspnetcore/openshift/indexer/template-indexer-cronjob-devel.yml @@ -1,6 +1,6 @@ # This file is part of the research.fi api # -# Copyright 2022 Ministry of Education and Culture, Finland +# Copyright 2024 Ministry of Education and Culture, Finland # # :author: CSC - IT Center for Science Ltd., Espoo Finland servicedesk@csc.fi # :license: MIT @@ -9,8 +9,8 @@ kind: Template metadata: labels: app: publicapi-indexer-devel - template: publicapi-indexer-devel - name: publicapi-indexer-devel + template: publicapi-indexer-cronjob-devel + name: publicapi-indexer-cronjob-devel objects: # Recurring CronJob (devel) # Indexes db entities to ElasticSearch. @@ -116,36 +116,3 @@ objects: name: publicapi-api-config-devel key: "QueryTimeout" restartPolicy: Never - # ImageStream (development) - - apiVersion: v1 - kind: ImageStream - metadata: - name: publicapi-indexer-devel - labels: - app: publicapi-indexer-devel - spec: - lookupPolicy: - local: true - - # BuildConfig using Docker build strategy - - apiVersion: v1 - kind: BuildConfig - metadata: - name: publicapi-indexer-build-devel - labels: - app: publicapi-indexer-devel - spec: - source: - git: - uri: https://github.com/CSCfi/research-fi-publicapi.git - ref: devel - contextDir: . - strategy: - dockerStrategy: - dockerfilePath: aspnetcore/openshift/indexer/Dockerfile - output: - to: - kind: ImageStreamTag - name: publicapi-indexer-devel:latest - successfulBuildsHistoryLimit: 4 - failedBuildsHistoryLimit: 4 diff --git a/aspnetcore/openshift/indexer/template-indexer-production.yml b/aspnetcore/openshift/indexer/template-indexer-cronjob-production.yml similarity index 85% rename from aspnetcore/openshift/indexer/template-indexer-production.yml rename to aspnetcore/openshift/indexer/template-indexer-cronjob-production.yml index b686ee0..bb0461f 100644 --- a/aspnetcore/openshift/indexer/template-indexer-production.yml +++ b/aspnetcore/openshift/indexer/template-indexer-cronjob-production.yml @@ -1,6 +1,6 @@ # This file is part of the research.fi api # -# Copyright 2023 Ministry of Education and Culture, Finland +# Copyright 2024 Ministry of Education and Culture, Finland # # :author: CSC - IT Center for Science Ltd., Espoo Finland servicedesk@csc.fi # :license: MIT @@ -9,8 +9,8 @@ kind: Template metadata: labels: app: publicapi-indexer-production - template: publicapi-indexer-production - name: publicapi-indexer-production + template: publicapi-indexer-cronjob-production + name: publicapi-indexer-cronjob-production objects: # Recurring CronJob (production) # Indexes db entities to ElasticSearch. @@ -116,36 +116,3 @@ objects: name: publicapi-api-config-production key: "QueryTimeout" restartPolicy: Never - # ImageStream (production) - - apiVersion: v1 - kind: ImageStream - metadata: - name: publicapi-indexer-production - labels: - app: publicapi-indexer-production - spec: - lookupPolicy: - local: true - - # BuildConfig using Docker build strategy - - apiVersion: v1 - kind: BuildConfig - metadata: - name: publicapi-indexer-build-production - labels: - app: publicapi-indexer-production - spec: - source: - git: - uri: https://github.com/CSCfi/research-fi-publicapi.git - ref: main - contextDir: . - strategy: - dockerStrategy: - dockerfilePath: aspnetcore/openshift/indexer/Dockerfile - output: - to: - kind: ImageStreamTag - name: publicapi-indexer-production:latest - successfulBuildsHistoryLimit: 4 - failedBuildsHistoryLimit: 4 diff --git a/aspnetcore/openshift/indexer/template-indexer-qa.yml b/aspnetcore/openshift/indexer/template-indexer-cronjob-qa.yml similarity index 84% rename from aspnetcore/openshift/indexer/template-indexer-qa.yml rename to aspnetcore/openshift/indexer/template-indexer-cronjob-qa.yml index 13f02ef..cbc6d1f 100644 --- a/aspnetcore/openshift/indexer/template-indexer-qa.yml +++ b/aspnetcore/openshift/indexer/template-indexer-cronjob-qa.yml @@ -1,6 +1,6 @@ # This file is part of the research.fi api # -# Copyright 2023 Ministry of Education and Culture, Finland +# Copyright 2024 Ministry of Education and Culture, Finland # # :author: CSC - IT Center for Science Ltd., Espoo Finland servicedesk@csc.fi # :license: MIT @@ -9,8 +9,8 @@ kind: Template metadata: labels: app: publicapi-indexer-qa - template: publicapi-indexer-qa - name: publicapi-indexer-qa + template: publicapi-indexer-cronjob-qa + name: publicapi-indexer-cronjob-qa objects: # Recurring CronJob (qa) # Indexes db entities to ElasticSearch. @@ -115,37 +115,4 @@ objects: configMapKeyRef: name: publicapi-api-config-qa key: "QueryTimeout" - restartPolicy: Never - # ImageStream (qa) - - apiVersion: v1 - kind: ImageStream - metadata: - name: publicapi-indexer-qa - labels: - app: publicapi-indexer-qa - spec: - lookupPolicy: - local: true - - # BuildConfig using Docker build strategy - - apiVersion: v1 - kind: BuildConfig - metadata: - name: publicapi-indexer-build-qa - labels: - app: publicapi-indexer-qa - spec: - source: - git: - uri: https://github.com/CSCfi/research-fi-publicapi.git - ref: qa - contextDir: . - strategy: - dockerStrategy: - dockerfilePath: aspnetcore/openshift/indexer/Dockerfile - output: - to: - kind: ImageStreamTag - name: publicapi-indexer-qa:latest - successfulBuildsHistoryLimit: 4 - failedBuildsHistoryLimit: 4 + restartPolicy: Never \ No newline at end of file