-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Can't release new version of app, not committing it to git #2324
Comments
This kind of problem is occasionally due to the YAML update program not coping with a particular file. Do you mind posting (or gisting) the YAML file in question? |
Sure! but gonna submit another one, with same issues:
stolon-proxy-deployment.yaml:
BTW We do have |
Can it be possible that error is more high-level? Don't think all my yaml's are broken, since they are checked with yamllint + kubeval.
|
Created new cluster on GKE with flux. Tried to update it with same result.
|
If you place the deployment spec in its own file without any separators, does it work? |
@stefanprodan ok that's what I did:
If I remove
|
@stefanprodan Just understood what you actually meant. Previously, when just reported, all resources were in their own separate files in workloads/kurento folder. |
Here is my
It is used to achieve basic templating with env variables supplied to flux container. |
Was able to reproduce the issue with the plain deployment manifest from #2324 (comment). Not precisely clear yet what goes wrong, except for that it happens during the calculation of updates. — But succeeded in releasing a lean deployment. @yellowmegaman are the workloads you are trying to release in a healthy state? |
@hiddeco sorry, didn't see comment update. Yeah, they are 100% healthy. |
I'm now encountering this issue too, relevant info posted below that's causing this. Unfortunately the image is in a private repo using the commit SHA, so I cannot share Flux version: 1.14.2 Command
Logs
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: api-docs
labels:
app: api-docs
annotations:
fluxcd.io/automated: "true"
spec:
strategy:
rollingUpdate:
maxUnavailable: 0
type: RollingUpdate
selector:
matchLabels:
app: api-docs
template:
metadata:
labels:
app: api-docs
spec:
containers:
- name: redoc
image: eu.gcr.io/project/folder/api-spec:3fdd26d30ea2017a6cc35cd2268dfa73c2d2e251
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 10m
memory: 64Mi
version: 1
commandUpdated:
generators:
- command: kustomize build .
patchFile: patch.yaml List images
List workloads
|
i have meet this 。is it resolved? |
I see the error is sourced from Lines 124 to 126 in 07b3d3d
But surely when releasing, the image is expected to change? |
@tobbbles |
@tobbbles In your case, the release is failing (at least) because you have This issue is labelled For the purpose of making it work with kustomize better, I can offer a couple of things:
|
@yellowmegaman You appear to have a similar problem: you haven't supplied any commands to update the files, so when fluxd tries to change do a release, nothing gets changed. The second point above will make this more obvious: if there are no update commands given, fluxd should refuse update operations. |
@squaremo Thank you; that was absolutely the issue, and using I think being able to validate |
Since Further |
Describe the bug
Can't perform
fluxctl release
for new release, not yet committed to gitTo Reproduce
Steps to reproduce the behaviour:
0. GKE + flux
Expected behavior
Change to new tag, add tag to git by fluxd
Logs
Additional context
Add any other context about the problem here, e.g
Thanks a bunch in advance!
The text was updated successfully, but these errors were encountered: