You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
â failed to push sync manifests: command error on refs/heads/master: pre-receive hook declined
Although the git commit fails, it looks like it is creating all the necessary custom resources and controllers. This however is very ambiguous and will like to see it succeed.
Although bit-bucket in my organization allows a read using ssh keys, I don't think it will allow writing to specific repo's without additional parameters, as seen in the results below.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am facing issues when attempting to install flux v2 on openshift4 cluster. (Kubernetes v1.19.0 / kubectl 1.19.0)
Browsing through the repo, it seems like the initial commit succeeds, however it fails when attempting to commit for the second time.
[using HTTP]
root@ DEV # flux bootstrap git --url=https://bitbucket-host:1210/scm/~bitbuckuser/flux-repo.git --registry=registry.com:4444/open_infra/fluxcd --image-pull-secret=my-secret --username=bitbuckuser --password=$pass --token-auth=true --branch=master --recurse-submodules=true
⺠cloning branch "master" from Git repository "https://bitbucket-host:1210/scm/~bitbuckuser/flux-repo.git"
â cloned repository
⺠generating component manifests
â generated component manifests
â committed sync manifests to "master" ("db24b4f38f1068bc4b3f3ede0e6678db5da71c1d")
⺠pushing component manifests to "https://bitbucket-host:1210/scm/~bitbuckuser/flux-repo.git"
⺠installing components in "flux-system" namespace
â installed components
â reconciled components
⺠determining if source secret "flux-system/flux-system" exists
⺠generating source secret
⺠applying source secret "flux-system/flux-system"
â reconciled source secret
⺠generating sync manifests
â generated sync manifests
â committed sync manifests to "master" ("c461ef900b15d3295ebec5279b3cc6b98d201203")
⺠pushing sync manifests to "https://bitbucket-host:1210/scm/~bitbuckuser/flux-repo.git"
â failed to push sync manifests: command error on refs/heads/master: pre-receive hook declined
Although the git commit fails, it looks like it is creating all the necessary custom resources and controllers. This however is very ambiguous and will like to see it succeed.
[FLUX CHECK COMMAND]
root@ DEV # flux check
⺠checking prerequisites
â kubectl 1.19.0 >=1.18.0-0
â Kubernetes 1.19.0+a5a0987 >=1.16.0-0
⺠checking controllers
â helm-controller: deployment ready
⺠registry.com:4444/open_infra/fluxcd/helm-controller:v0.10.1
â kustomize-controller: deployment ready
⺠registry.com:4444/open_infra/fluxcd/kustomize-controller:v0.12.1
â notification-controller: deployment ready
⺠registry.com:4444/open_infra/fluxcd/notification-controller:v0.14.1
â source-controller: deployment ready
⺠registry.com:4444/open_infra/fluxcd/source-controller:v0.13.1
â all checks passed
Although bit-bucket in my organization allows a read using ssh keys, I don't think it will allow writing to specific repo's without additional parameters, as seen in the results below.
[USING SSH]
root@ DEV # flux bootstrap git --url=ssh://git@bitbucket-host:1041/~bitbuckuser/flux-repo.git --private-key-file=/root/.ssh/id_rsa --registry=registry.com:4444/open_infra/fluxcd --image-pull-secret=my-secret --branch=master --recurse-submodules=true
⺠cloning branch "master" from Git repository "ssh://git@bitbucket-host:1041/~bitbuckuser/flux-repo.git"
â cloned repository
⺠generating component manifests
â generated component manifests
â committed sync manifests to "master" ("5c640f8ea8b23fafecd6fe22aa409acb568c4a18")
⺠pushing component manifests to "ssh://git@bitbucket-host:1041/~bitbuckuser/flux-repo.git"
â failed to push manifests: unknown error: fatal: remote error: Insufficient permissions
Beta Was this translation helpful? Give feedback.
All reactions