Skip to content

Commit

Permalink
Apply the quarkus version to all of our existing templates and ensure…
Browse files Browse the repository at this point in the history
… that the quarkus-version label is properly set in the catalog-info.yaml
  • Loading branch information
aureamunoz committed Jun 27, 2024
1 parent ba8d831 commit 967904e
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ metadata:
github.com/project-slug: ${{ values.orgName }}/${{ values.repoName }}
# See: topology annotation: https://github.com/janus-idp/backstage-plugins/tree/main/plugins/topology
app.kubernetes.io/name: quarkus
app.quarkus.io/quarkus-version: "${{ quarkusVersion }}"
app.quarkus.io/quarkus-version: ${{ values.quarkusVersion }}
tags:
- java
- quarkus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Selector labels
{{- define "quarkus-template.selectorLabels" -}}
app.kubernetes.io/name: {{ include "quarkus-template.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.quarkus.io/quarkus-version: {{ .Values.app.quarkusVersion }}
{{- end }}

{{/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ app:
version: ${{ values.version }}
namespace: ${{ values.appNamespace }}
database: ${{ values.database }}
quarkusVersion: ${{ values.quarkusVersion }}

git:
repo: ${{ values.git_repo }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ metadata:
github.com/project-slug: ${{ values.orgName }}/${{ values.repoName }}
# See: topology annotation: https://github.com/janus-idp/backstage-plugins/tree/main/plugins/topology
app.kubernetes.io/name: quarkus
app.quarkus.io/quarkus-version: "${{ quarkusVersion }}"
app.quarkus.io/quarkus-version: ${{ values.quarkusVersion }}
tags:
- java
- quarkus
Expand Down
4 changes: 3 additions & 1 deletion locations/templates/quarkus-chatbot/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ spec:
default: test1

steps:
- id: template
- id: quarkus-app-create
name: Generating the Source Code Component
action: quarkus:app:create
input:
Expand Down Expand Up @@ -362,6 +362,8 @@ spec:
virtualMachineName: ${{ parameters.virtualMachineName }}
virtualMachineNamespace: ${{ parameters.virtualMachineNamespace }}
native: ${{ parameters.native }}
version: ${{ parameters.version }}
quarkusVersion: ${{ parameters.quarkusVersion}}

- id: publish
name: Publishing to Code Source Repository - Github
Expand Down
3 changes: 2 additions & 1 deletion locations/templates/quarkus-quickstart/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ spec:
type: string
description: The namespace for deploying resources
steps:
- id: template
- id: quarkus-quickstart-clone
name: Generating the Source Code Component
action: quarkus:quickstart:clone
input:
Expand All @@ -151,6 +151,7 @@ spec:
version: ${{ parameters.version }}
quickstartName: ${{ parameters.quickstartName }}
additionalProperties: ${{ parameters.additionalProperties }}
quarkusVersion: ${{ parameters.quarkusVersion }}
- id: ciTemplate
name: Generating the CI Component
action: fetch:template
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Selector labels
{{- define "quarkus-template.selectorLabels" -}}
app.kubernetes.io/name: {{ include "quarkus-template.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.quarkus.io/quarkus-version: {{ .Values.app.quarkusVersion }}
{{- end }}

{{/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ app:
version: ${{ values.version }}
namespace: ${{ values.appNamespace }}
database: ${{ values.database }}
quarkusVersion: ${{ values.quarkusVersion }}

git:
repo: ${{ values.git_repo }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ metadata:
github.com/project-slug: ${{ values.orgName }}/${{ values.repoName }}
# See: topology annotation: https://github.com/janus-idp/backstage-plugins/tree/main/plugins/topology
app.kubernetes.io/name: quarkus
app.quarkus.io/quarkus-version: "${{ quarkusVersion }}"
app.quarkus.io/quarkus-version: ${{ values.quarkusVersion }}
tags:
- java
- quarkus
Expand Down
2 changes: 1 addition & 1 deletion locations/templates/quarkus-rest-client/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ spec:
default: test1

steps:
- id: template
- id: quarkus-app-create
name: Generating the Source Code Component
action: quarkus:app:create
input:
Expand Down

0 comments on commit 967904e

Please sign in to comment.