Describe the bug
Although when executing
(either with --dry-run
option or not)
a k8s Deployment
is produced,
when flux
takes over the the git ops process kicks in, there is no Deployment
resources created (albeit there is a helm
chart installed)
To Reproduce
Steps to reproduce the behaviour:
I have set up the typical GitOps flow where the flux
operator is monitoring a GitHub repo with HelmRelease
files pointing to helm charts.
The k8s
cluster is on GKE.
Expected behavior
I would expect to see in my k8s
all the resources I see when executing
helm install <path/to/my/helm/chart>
However only some of them are created.
Logs
endgame
is the name of both my HelmChart and HelmRelease
Tiller logs
[storage] 2019/08/24 12:15:45 getting last revision of "endgame"
[storage] 2019/08/24 12:15:45 getting release history for "endgame"
[tiller] 2019/08/24 12:15:50 rendering endgame chart using values
2019/08/24 12:15:50 info: manifest "endgame/templates/deployment.yaml" is empty. Skipping.
[storage] 2019/08/24 12:15:52 getting last revision of "endgame"
[storage] 2019/08/24 12:15:52 getting release history for "endgame"
Output of
stern flux* | grep -i endgame
➢ stern 'flux*' | grep -i endgame
+ flux-helm-operator-6f74bc4d6-qkc79 › flux-helm-operator
+ flux-d8d4897c5-4qrmk › flux
+ flux-memcached-788df4d497-vg8jn › memcached
flux-helm-operator-6f74bc4d6-qkc79 flux-helm-operator ts=2019-08-24T11:46:04.725307514Z caller=operator.go:172 component=operator debug="PROCESSING item [\"mycompany/endgame\"]"
flux-helm-operator-6f74bc4d6-qkc79 flux-helm-operator ts=2019-08-24T11:46:04.726174013Z caller=operator.go:229 component=operator debug="Starting to sync cache key mycompany/endgame"
flux-d8d4897c5-4qrmk flux ts=2019-08-24T11:46:04.966052368Z caller=sync.go:483 component=cluster method=Sync cmd="kubectl apply -f -" took=741.961201ms err=null output="helmrelease.flux.weave.works/endgame created"
flux-d8d4897c5-4qrmk flux ts=2019-08-24T11:46:05.017626012Z caller=daemon.go:619 component=daemon event="Sync: fe1463a, mycompany:helmrelease/endgame" logupstream=false
flux-helm-operator-6f74bc4d6-qkc79 flux-helm-operator ts=2019-08-24T11:46:07.478950415Z caller=operator.go:214 component=operator info="Successfully synced 'mycompany/endgame'"
flux-helm-operator-6f74bc4d6-qkc79 flux-helm-operator I0824 11:46:07.479224 9 event.go:221] Event(v1.ObjectReference{Kind:"HelmRelease", Namespace:"mycompany", Name:"endgame", UID:"c0deba1c-c664-11e9-8aed-42010a790d08", APIVersion:"flux.weave.works/v1beta1", ResourceVersion:"58194264", FieldPath:""}): type: 'Normal' reason: 'ChartSynced' Chart managed by HelmRelease processed successfully
flux-helm-operator-6f74bc4d6-qkc79 flux-helm-operator ts=2019-08-24T11:46:52.133866679Z caller=release.go:147 component=release info="processing release endgame (as endgame)" action=CREATE options="{DryRun:false ReuseName:false}" timeout=300s
flux-helm-operator-6f74bc4d6-qkc79 flux-helm-operator ts=2019-08-24T11:47:49.556805847Z caller=release.go:147 component=release info="processing release endgame (as c0deba1c-c664-11e9-8aed-42010a790d08)" action=CREATE options="{DryRun:true ReuseName:false}" timeout=300s
flux-d8d4897c5-4qrmk flux ts=2019-08-24T11:48:10.698516869Z caller=sync.go:483 component=cluster method=Sync cmd="kubectl apply -f -" took=673.073612ms err=null unchanged\nhelmrelease.flux.weave.works/endgame
Additional context
Add any other context about the problem here, e.g
flux-helm-operator:
Container ID: docker://2d88c55b6bd2d24feea8eea05118465099bf5ba254a08d226512bf0b1e2e8134
Image: docker.io/weaveworks/helm-operator:0.7.1
Image ID: docker-pullable://weaveworks/helm-operator@sha256:f18e615338680934580978530987530908090875487455a3d9bac09936fac7d2b0
Port: 3030/TCP
Host Port: 0/TCP
Args:
--git-timeout=20s
--charts-sync-interval=2m
--update-chart-deps=true
--log-release-diffs=false
--tiller-namespace=kube-system
--tiller-tls-enable=true
--tiller-tls-key-path=/etc/fluxd/helm/tls.key
--tiller-tls-cert-path=/etc/fluxd/helm/tls.crt
- Helm Operator version: tiller:v2.11.0
- Kubernetes version:
➢ kubectl version
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.0", GitCommit:"e8462b5b5dc2584fdcd18e6bcfe9f1e4d970a529", GitTreeState:"clean", BuildDate:"2019-06-19T16:40:16Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"12+", GitVersion:"v1.12.9-gke.7", GitCommit:"b6001a5d99c235723fc19342d347eee4394f2005", GitTreeState:"clean", BuildDate:"2019-06-18T12:12:30Z", GoVersion:"go1.10.8b4", Compiler:"gc", Platform:"linux/amd64"}
- Git provider: Github
- Container registry provider: GCR