Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Getting "failed to fetch Helm repository index" 403 Forbidden with Artifactory Saas as helm repository

Đang mở
#976 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
go, kubernetes
Lĩnh vực
devops

Hướng nghiên cứu

Bắt đầu với manifest HelmRepository và Secret thông tin xác thực được nó tham chiếu, sau đó so sánh hành vi lấy repository của controller với lệnh repository Helm thủ công được mô tả trong báo cáo. Tái hiện phản hồi 403 và xác định thay đổi cần thiết ở phía controller để index của repository Artifactory được lấy thành công; hoàn tất khi HelmRepository trở nên sẵn sàng mà không có lỗi 403.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area/helm

Hi there,

I'm getting below error when trying to create HelmRepository:

$ k get helmrepository
NAME               URL                                                             AGE   READY   STATUS
helm-charts-test   https://artifactory.mydomain.com/artifactory/helm-charts-test   96s   False   failed to fetch Helm repository index: failed to cache index to temporary file: failed to fetch https://artifactory.mydomain.com/artifactory/helm-charts-test/index.yaml : 403 Forbidden 
Manifests

helm repository

apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
  name: helm-charts-test
spec:
  interval: 10m
  url: https://artifactory.mydomain.com/artifactory/helm-charts-test
  secretRef:
    name: helm-charts-creds

creds secret

apiVersion: v1
kind: Secret
metadata:
  name: helm-charts-creds
data:
  username: xxxxxxxxxx
  password: xxxxxxxxxxxxxxxx

username and password were created using

echo -n "username" | base64

I also tried both api-key and identity token as password as well as URL with and without api/helm so https://artifactory.mydomain.com/artifactory/helm-charts-test and https://artifactory.mydomain.com/artifactory/api/helm/helm-charts-test getting the same result every time.

Adding helm repo manually with helm add works just fine.

Ngôn ngữ chính
Go
Star
283
Fork
252
Merge trung bình
1 giờ 6 phút
Pull request đã merge (30 ngày)
12

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của fluxcd/source-controller

Tất cả issue của fluxcd/source-controller

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.