-
I set up ChartMuseum with Plain Auth. Then I set up the Flux apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: example-com-helm
namespace: flux-system
spec:
interval: 1m
url: https://helm.example.com
secretRef:
name: https-credentials
interval: 1m I set up a ---
apiVersion: v1
kind: Secret
metadata:
name: https-credentials
namespace: flux-system
type: Opaque
data:
username: "XXXXXXXXXXXXXXXXXX"
password: "XXXXXXXXXXXXXXXXXXXXXXXXXXXX"
certFile: ""
keyFile: ""
caFile: "" I'm facing this error: {
"level": "error",
"ts": "2021-03-23T08:04:21.213Z",
"logger": "controller.helmrepository",
"msg": "Reconciler error",
"reconciler group": "source.toolkit.fluxcd.io",
"reconciler kind": "HelmRepository",
"name": "example-com-helm",
"namespace": "flux-system",
"error": "failed to download repository index: failed to fetch https://helm.example.com/index.yaml : 401 Unauthorized"
} What am I missing ? |
Beta Was this translation helpful? Give feedback.
Answered by
hiddeco
Mar 23, 2021
Replies: 1 comment 1 reply
-
Please make sure your credentials do not accidentally include a newline (base64 encoded string ends with |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
haimari
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please make sure your credentials do not accidentally include a newline (base64 encoded string ends with
Cg==
).