Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

err="secrets "flux-git-deploy" not found" #1709

Closed
drweber opened this issue Feb 6, 2019 · 4 comments
Closed

err="secrets "flux-git-deploy" not found" #1709

drweber opened this issue Feb 6, 2019 · 4 comments

Comments

@drweber
Copy link

drweber commented Feb 6, 2019

I have a problem with flux 0.6.0

    kubectl -n flux create secret generic ${local.kube_secretname_helmOperator_ssh} --from-file=${local.helmOperator_private_key_pem}
    kubectl -n flux create secret generic ${local.kube_secretname_flux_ssh} --from-file=${local.flux_private_key_pem}   
    kubectl -n kube-system create sa tiller
    kubectl create clusterrolebinding tiller-cluster-rule \
      --clusterrole=cluster-admin \
      --serviceaccount=kube-system:tiller
    kubectl create clusterrolebinding "cluster-admin-$(whoami)" \
      --clusterrole=cluster-admin \
      --user="$(gcloud config get-value core/account)"
    helm init --skip-refresh \
      --upgrade \
      --service-account tiller \
      --tiller-image gcr.io/kubernetes-helm/tiller:${local.helm_tiller_version}
    helm repo add weaveworks https://weaveworks.github.io/flux
    sleep 10
    helm install --name flux \
      --set rbac.create=true \
      --set helmOperator.create=true \
      --set helmOperator.updateChartDeps=false \
      --set git.url=${local.git_config_url} \
      --set git.branch=${local.env} \
      --set git.label=${local.env} \
      --set helmOperator.git.secretName=${local.kube_secretname_helmOperator_ssh} \
      --set git.secretName=${local.kube_secretname_flux_ssh} \
      --namespace flux \
    weaveworks/flux

I've got an error:
textPayload: "ts=2019-02-06T17:19:19.636831218Z caller=main.go:237 err="secrets \"flux-git-deploy\" not found"

possible problem
https://github.com/weaveworks/flux/blob/master/chart/flux/templates/deployment.yaml#L77

but should works:
https://github.com/weaveworks/flux/blob/master/chart/flux/templates/deployment.yaml#L40
https://github.com/weaveworks/flux/blob/master/chart/flux/values.yaml#L118

stefanprodan added a commit that referenced this issue Feb 6, 2019
@drweber
Copy link
Author

drweber commented Feb 6, 2019

and also in deployment.yaml I can't find any possible way to assign value helmOperator.git.secretName, is it ok ?

@kwontae
Copy link

kwontae commented Jan 16, 2020

The flux-git-deploy secret was accidentally deleted and we came to this issue when we ran the kubectl apply -k ./install/ again

[takwo@master1 clusterflux]$ kubectl get secrets -n flux-system
NAME                  TYPE                                  DATA   AGE
default-token-52v2g   kubernetes.io/service-account-token   3      13m
flux-git-deploy       Opaque                                0      8m18s
flux-token-24rdc      kubernetes.io/service-account-token   3      13m

I see that flux-git-deploy is created by kustomize and is there when i use kubectl get secrets -n flux-system
however I get the error

ts=2020-01-16T23:05:52.220272492Z caller=main.go:250 version=1.17.0
ts=2020-01-16T23:05:52.220373689Z caller=main.go:389 msg="using in cluster config to connect to the cluster"
ts=2020-01-16T23:05:52.811797455Z caller=main.go:467 err="secrets \" flux-git-deploy\" not found"

@2opremio
Copy link
Contributor

Please create a separate issue for that

@kwontae
Copy link

kwontae commented Jan 17, 2020

@2opremio Created: #2757

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants