Skip to content

Commit

Permalink
Merge pull request #260 from masayag/catalog-branch
Browse files Browse the repository at this point in the history
Add a variable for specify the software template branch
  • Loading branch information
masayag authored Aug 8, 2024
2 parents 2349678 + 93b111b commit 9bfc2e5
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
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

0 comments on commit 9bfc2e5

Please sign in to comment.