Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a variable for specify the software template branch #260

Merged
merged 1 commit into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/orchestrator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 1.2.0-rc19
version: 1.2.0-rc20

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
1 change: 1 addition & 0 deletions charts/orchestrator/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ The following table lists the configurable parameters of the Orchestrator chart
| `rhdhOperator.isReleaseCandidate` | Indicates RC builds should be used by the chart to install RHDH | `false` |
| `rhdhOperator.enabled` | whether the operator should be deployed by the chart | `true` |
| `rhdhOperator.enableGuestProvider` | whether to enable guest provider | `false` |
| `rhdhOperator.catalogBranch` | The branch for https://github.com/parodos-dev/workflow-software-templates used to import software templates resources | `"main"` |
| `rhdhOperator.secretRef.name` | name of the secret that contains the credentials for the plugin to establish a communication channel with the Kubernetes API, ArgoCD, GitHub servers and SMTP mail server. | `"backstage-backend-auth-secret"` |
| `rhdhOperator.secretRef.backstage.backendSecret` | Key in the secret with name defined in the 'name' field that contains the value of the Backstage backend secret. Defaults to 'BACKEND_SECRET'. It's required. | `"BACKEND_SECRET"` |
| `rhdhOperator.secretRef.github.token` | Key in the secret with name defined in the 'name' field that contains the value of the authentication token as expected by GitHub. Required for importing resource to the catalog, launching software templates and more. Defaults to 'GITHUB_TOKEN', empty for not available. | `"GITHUB_TOKEN"` |
Expand Down
6 changes: 3 additions & 3 deletions charts/orchestrator/templates/rhdh-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -347,11 +347,11 @@ data:
target: https://github.com/parodos-dev/orchestrator-helm-chart/blob/main/resources/users.yaml
{{- end }}
- type: url
target: https://github.com/parodos-dev/workflow-software-templates/blob/main/entities/workflow-resources.yaml
target: https://github.com/parodos-dev/workflow-software-templates/{{ .Values.rhdhOperator.catalogBranch }}/main/entities/workflow-resources.yaml
- type: url
target: https://github.com/parodos-dev/workflow-software-templates/blob/main/scaffolder-templates/basic-workflow/template.yaml
target: https://github.com/parodos-dev/workflow-software-templates/blob/{{ .Values.rhdhOperator.catalogBranch }}/scaffolder-templates/basic-workflow/template.yaml
- type: url
target: https://github.com/parodos-dev/workflow-software-templates/blob/main/scaffolder-templates/complex-assessment-workflow/template.yaml
target: https://github.com/parodos-dev/workflow-software-templates/blob/{{ .Values.rhdhOperator.catalogBranch }}/scaffolder-templates/complex-assessment-workflow/template.yaml
{{- end }}
{{- $unmanagedNamespaceExists := include "unmanaged-resource-exists" (list "rhdh.redhat.com/v1alpha1" "Backstage" .Values.rhdhOperator.subscription.targetNamespace "backstage" .Release.Name .Capabilities.APIVersions ) }}
{{- if eq $unmanagedNamespaceExists "false" }}
Expand Down
11 changes: 11 additions & 0 deletions charts/orchestrator/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
"isReleaseCandidate",
"enabled",
"enableGuestProvider",
"catalogBranch",
"secretRef",
"subscription"
],
Expand Down Expand Up @@ -252,6 +253,14 @@
false
]
},
"catalogBranch": {
"type": "string",
"default": "",
"title": "The catalogBranch Schema",
"examples": [
"main"
]
},
"secretRef": {
"type": "object",
"default": {},
Expand Down Expand Up @@ -561,6 +570,7 @@
"isReleaseCandidate": false,
"enabled": true,
"enableGuestProvider": false,
"catalogBranch": "main",
"secretRef": {
"name": "backstage-backend-auth-secret",
"backstage": {
Expand Down Expand Up @@ -1231,6 +1241,7 @@
"isReleaseCandidate": false,
"enabled": true,
"enableGuestProvider": false,
"catalogBranch": "main",
"secretRef": {
"name": "backstage-backend-auth-secret",
"backstage": {
Expand Down
1 change: 1 addition & 0 deletions charts/orchestrator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ rhdhOperator:
isReleaseCandidate: false # Indicates RC builds should be used by the chart to install RHDH
enabled: true # whether the operator should be deployed by the chart
enableGuestProvider: false # whether to enable guest provider
catalogBranch: main # The branch for https://github.com/parodos-dev/workflow-software-templates used to import software templates resources
secretRef:
name: backstage-backend-auth-secret # name of the secret that contains the credentials for the plugin to establish a communication channel with the Kubernetes API, ArgoCD, GitHub servers and SMTP mail server.
backstage:
Expand Down
Loading