jenkins-x / jx

Jenkins X provides automated CI+CD for Kubernetes with Preview Environments on Pull Requests using Cloud Native pipelines from Tekton
https://jenkins-x.io/
Apache License 2.0
4.58k stars 787 forks source link

jx3 multicluster: error with chartmuseum repository #7623

Closed dicolasi closed 3 years ago

dicolasi commented 3 years ago

Summary

Whenever I got a promotion from dev to stage and production, the repository dev2 is added:

repositories:
- name: dev
  url: https://chartmuseum.dev.property.xyz
- name: dev2
  url: http://jenkins-x-chartmuseum.jx.svc.cluster.local:8080
releases:

This would cause an error in stage and production environments since dev2 it is not reachable.

Steps to reproduce the behavior

3 clusters (eks-vault):

Expected behavior

Dev2 it is not added, but dev would be used as default chart.

Actual behavior

Dev2 is added causing the following to happen:

- chart: dev2/data-outcode-stats-service
  version: 1.0.22
  name: data-outcode-stats-service
  values:
  - jx-values.yaml

Which will result in a error in jx-boot (repo unreachable).

Jx version

The output of jx version is:

version: 3.1.251
dicolasi commented 3 years ago

![Uploading Screenshot 2021-02-19 at 13.17.37.png…]()

jstrachan commented 3 years ago

we now use the ingress URL on remote clusters. the service URLs still work for environments inside the same cluster