Skip to content

Commit

Permalink
Make ArtifactHub API configurable (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasVitale committed Jul 9, 2023
1 parent 621e464 commit 101011c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -103,6 +103,7 @@ The Tekton Pipelines package has the following configurable properties.
| `policies.include` | `false` | Whether to include the out-of-the-box Kyverno policies to validate and secure the package installation. |
| `controllers.pipelines.replicas` | `1` | The number of replicas for the `tekton-pipelines-controller` Deployment. In order to enable high availability, it should be greater than 1. |
| `controllers.resolvers.replicas` | `1` | The number of replicas for the `tekton-pipelines-remote-resolvers` Deployment. In order to enable high availability, it should be greater than 1. |
| `controllers.resolvers.artifact_hub_url` | `https://artifacthub.io/` | The Artifact Hub API used by the Hub Resolver to resolve remote pipelines and tasks. |
| `webhook.minReplicas` | `1` | The minimum number of replicas as controlled by a HorizontalPodAutoscaler. In order to enable high availability, it should be greater than 1. |
| `opentelemetry.enable` | `false` | Setting this flag to `true` enables the OpenTelemetry instrumentation and exporter. |
| `opentelemetry.exporter.jaeger.endpoint` | `""` | The endpoint where the distributed tracing backend accepts OpenTelemetry traces using the Jaeger protocol. |
Expand Down
15 changes: 15 additions & 0 deletions package/config/overlays/resolvers-deployment.yml
@@ -0,0 +1,15 @@
#@ load("@ytt:data", "data")
#@ load("@ytt:overlay", "overlay")

#@overlay/match by=overlay.subset({"kind":"Deployment", "metadata":{"name":"tekton-pipelines-remote-resolvers", "namespace":"tekton-pipelines-resolvers"}})
---
spec:
template:
spec:
containers:
#@overlay/match by="name"
- name: controller
env:
#@overlay/match by="name"
- name: ARTIFACT_HUB_API
value: #@ data.values.controllers.resolvers.artifact_hub_url
3 changes: 3 additions & 0 deletions package/config/values-schema.yml
Expand Up @@ -26,6 +26,9 @@ controllers:
#@schema/desc "The number of replicas. In order to enable high availability, it should be greater than 1."
#@schema/validation min=1
replicas: 1
#@schema/desc "The Artifact Hub API used by the Hub Resolver to resolve remote pipelines and tasks."
#@schema/validation min_len=1
artifact_hub_url: "https://artifacthub.io/"

#@schema/desc "Settings for the `tekton-pipelines-webhook` Deployment."
webhook:
Expand Down

0 comments on commit 101011c

Please sign in to comment.