Skip to content

Commit 542f1a0

Browse files
chmouelpipelines-as-code[bot]
authored andcommitted
refactor: artifacthub catalog ID to pacpipelines
- Updated the internal pipeline hub catalog identifier from `pachub` to `pacpipelines`. - Renamed the associated catalog display name from `pipelines-as-code` to `pac-pipelines`. - Adjusted the `pipelinerun-remote-pipeline-from-hub.yaml` test data to reflect the new catalog ID. Signed-off-by: Chmouel Boudjnah <[email protected]>
1 parent bc8e716 commit 542f1a0

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

hack/dev/kind/install.sh

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,21 @@ function configure_pac() {
192192

193193
sed -e "s,%DOMAIN_NAME%,${DOMAIN_NAME}," -e "s,%SERVICE_NAME%,${service_name}," ingress-pac.yaml | kubectl apply -f-
194194

195-
kubectl patch configmap -n pipelines-as-code -p "{\"data\":{\"bitbucket-cloud-check-source-ip\": \"false\"}}" pipelines-as-code &&
196-
kubectl patch configmap -n pipelines-as-code -p "{\"data\":{\"tekton-dashboard-url\": \"http://dashboard.${DOMAIN_NAME}\"}}" --type merge pipelines-as-code &&
197-
kubectl patch configmap -n pipelines-as-code -p \
198-
'{"data":{"catalog-1-type": "artifacthub", "catalog-1-id": "pachub", "catalog-1-name": "pipelines-as-code", "catalog-1-url": "https://artifacthub.io"}}' \
199-
--type merge pipelines-as-code
195+
patch_data=$(
196+
cat <<EOF
197+
{
198+
"data": {
199+
"bitbucket-cloud-check-source-ip": "false",
200+
"tekton-dashboard-url": "http://dashboard.${DOMAIN_NAME}",
201+
"catalog-1-type": "artifacthub",
202+
"catalog-1-id": "pacpipelines",
203+
"catalog-1-name": "pac-pipelines",
204+
"catalog-1-url": "https://artifacthub.io"
205+
}
206+
}
207+
EOF
208+
)
209+
kubectl patch configmap -n pipelines-as-code pipelines-as-code --type merge --patch "${patch_data}"
200210
kubectl patch configmap pac-config-logging -n pipelines-as-code --type json -p '[{"op": "replace", "path": "/data/loglevel.pipelinesascode", "value":"debug"}]'
201211
set +x
202212
if [[ -n ${PAC_PASS_SECRET_FOLDER} ]]; then

test/testdata/pipelinerun-remote-pipeline-from-hub.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
pipelinesascode.tekton.dev/target-namespace: "\\ .TargetNamespace //"
77
pipelinesascode.tekton.dev/on-target-branch: "[\\ .TargetBranch //]"
88
pipelinesascode.tekton.dev/on-event: "[\\ .TargetEvent //]"
9-
pipelinesascode.tekton.dev/pipeline: "pachub://test"
9+
pipelinesascode.tekton.dev/pipeline: "pacpipelines://test"
1010
spec:
1111
pipelineRef:
1212
name: test

0 commit comments

Comments
 (0)