Skip to content

Commit

Permalink
Allow to deploy executor as self hosted agent (#104)
Browse files Browse the repository at this point in the history
* Allow to deploy executor as self hosted agent
  • Loading branch information
alfespa17 authored Mar 19, 2024
1 parent e12a205 commit 0079e88
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/terrakube/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: 3.15.2
version: 3.16.0

# 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
2 changes: 1 addition & 1 deletion charts/terrakube/templates/secrets-executor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
type: Opaque
stringData:
# General Settings
AzBuilderApiUrl: 'http://terrakube-api-service:8080'
AzBuilderApiUrl: '{{ .Values.executor.apiServiceUrl }}'
InternalSecret: '{{ .Values.security.internalSecret | b64enc }}'

ExecutorFlagBatch: 'false'
Expand Down
4 changes: 4 additions & 0 deletions charts/terrakube/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,10 @@
"description": "Executor Docker Version",
"type": "string"
},
"apiServiceUrl": {
"description": "Terrakube service where the executor will connect",
"type": "string"
},
"replicaCount": {
"description": "Replica count for API",
"type": "string"
Expand Down
1 change: 1 addition & 0 deletions charts/terrakube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ executor:
serviceAccountName: ""
resources: {}
podLabels: {}
apiServiceUrl: "http://terrakube-api-service:8080"
properties:
toolsRepository: "https://github.com/AzBuilder/terrakube-extensions"
toolsBranch: "main"
Expand Down

0 comments on commit 0079e88

Please sign in to comment.