Skip to content

Conflict on weird fields #573

Open
Open
@revolunet

Description

Hi, i dont really understand some conflict errors, maybe someone can help

Heres an example; these fields appear in the diff :

  • kapp.k14s.io/nonce : sounds legit
  • image : legit as its a new version
  • initialDelaySeconds and cpu : i guess its been "rewritten" by kube API

These changes looks legit but make kapp fails, any idea how to prevent this ?

    Updating resource deployment/app-strapi (apps/v1) namespace: env-1000jours-sre-kube-workflow-4y3w36:
      API server says:
        Operation cannot be fulfilled on deployments.apps "app-strapi": the object has been modified; please apply your changes to the latest version and try again (reason: Conflict):
          Recalculated diff:
 11, 10 -     kapp.k14s.io/nonce: "1660057353002414185"
 12, 10 +     kapp.k14s.io/nonce: "1660062422261409721"
223,222 -   progressDeadlineSeconds: 600
225,223 -   revisionHistoryLimit: 10
230,227 -   strategy:
231,227 -     rollingUpdate:
232,227 -       maxSurge: 25%
233,227 -       maxUnavailable: 25%
234,227 -     type: RollingUpdate
237,229 -       creationTimestamp: null
269,260 -         image: something/strapi:sha-3977fb22378f2debdcacf4eeb6dd6f26dab24377
270,260 -         imagePullPolicy: IfNotPresent
271,260 +         image: something/strapi:sha-4ed2921f2fac053671f80fa02b72d124a23fa8c0
276,266 -             scheme: HTTP
279,268 -           successThreshold: 1
285,273 -           protocol: TCP
291,278 -             scheme: HTTP
292,278 +           initialDelaySeconds: 0
297,284 -             cpu: "1"
298,284 +             cpu: 1
300,287 -             cpu: 500m
301,287 +             cpu: 0.5
307,294 -             scheme: HTTP
309,295 -           successThreshold: 1
310,295 -           timeoutSeconds: 1
311,295 -         terminationMessagePath: /dev/termination-log
312,295 -         terminationMessagePolicy: File
316,298 -       dnsPolicy: ClusterFirst
317,298 -       restartPolicy: Always
318,298 -       schedulerName: default-scheduler
319,298 -       securityContext: {}
320,298 -       terminationGracePeriodSeconds: 30

Metadata

Assignees

Labels

bugThis issue describes a defect or unexpected behaviorcarvel acceptedThis issue should be considered for future work and that the triage process has been completedpriority/important-soonMust be staffed and worked on currently or soon.

Type

No type

Projects

  • Status

    To Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions