GithubHelp home page GithubHelp logo

Comments (6)

andrii-korotkov-verkada avatar andrii-korotkov-verkada commented on August 27, 2024

Can you share your application's manifest, please?

from argo-cd.

EStork09 avatar EStork09 commented on August 27, 2024
project: apps
source:
  repoURL: 'https://gitlab.com/navenest/kubernetes/apps/go-web-base.git'
  path: clusters/rke2
  targetRevision: HEAD
  helm:
    valueFiles:
      - ../../common/values.yaml
      - values.yaml
    version: v3
destination:
  server: 'https://kubernetes.default.svc'
  namespace: go-web-base
syncPolicy:
  automated:
    prune: true
    selfHeal: true
  syncOptions:
    - Validate=true
    - CreateNamespace=true
    - PrunePropagationPolicy=foreground
    - PruneLast=true
    - ServerSideApply=true
  retry:
    limit: 5
    backoff:
      duration: 5s
      factor: 2
      maxDuration: 3m
ignoreDifferences:
  - group: monitoring.coreos.com
    kind: ServiceMonitor
    jqPathExpressions:
      - '.spec.endpoints[]?.relabelings[]?.action'

I have tried serverside apply as I thought maybe changing the sync method would work better, but it didn't seem to make a difference.

from argo-cd.

andrii-korotkov-verkada avatar andrii-korotkov-verkada commented on August 27, 2024

It doesn't show things like app name and annotations still. I'm curious whether for example https://argo-cd.readthedocs.io/en/stable/operator-manual/high_availability/#manifest-paths-annotation is used.

from argo-cd.

EStork09 avatar EStork09 commented on August 27, 2024

Sorry, that was just a quick grab from the UI.

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  annotations:
    argocd.argoproj.io/manifest-generate-paths: clusters/rke2
  creationTimestamp: "2024-07-27T12:29:45Z"
  generation: 3002
  name: go-web-base
  namespace: argocd
  ownerReferences:
  - apiVersion: argoproj.io/v1alpha1
    blockOwnerDeletion: true
    controller: true
    kind: ApplicationSet
    name: apps
    uid: 5728fd6a-0227-47d0-a480-2f8748140099
  resourceVersion: "336931335"
  uid: c819f308-30bd-445d-b7a2-0d0a74169ede
spec:
  destination:
    namespace: go-web-base
    server: https://kubernetes.default.svc
  ignoreDifferences:
  - group: monitoring.coreos.com
    jqPathExpressions:
    - .spec.endpoints[]?.relabelings[]?.action
    kind: ServiceMonitor
  project: apps
  source:
    helm:
      valueFiles:
      - ../../common/values.yaml
      - values.yaml
      version: v3
    path: clusters/rke2
    repoURL: https://gitlab.com/navenest/kubernetes/apps/go-web-base.git
    targetRevision: HEAD
  syncPolicy:
    automated:
      prune: true
      selfHeal: true
    retry:
      backoff:
        duration: 5s
        factor: 2
        maxDuration: 3m
      limit: 5
    syncOptions:
    - Validate=true
    - CreateNamespace=true
    - PrunePropagationPolicy=foreground
    - PruneLast=true
    - ServerSideApply=true

from argo-cd.

EStork09 avatar EStork09 commented on August 27, 2024

I adjusted argocd.argoproj.io/manifest-generate-paths: clusters/rke2 to argocd.argoproj.io/manifest-generate-paths: .
And that seemed to work? Does the manifest generate paths go before or after the source.path=clusters/rke2

I'll test some more, but I think in my case setting it to . has worked fine, I am not using multiple applications in one repo, so this might have been left over from a previous setup I had.

from argo-cd.

andrii-korotkov-verkada avatar andrii-korotkov-verkada commented on August 27, 2024

Since you get values from common/values.yaml, you need generate manifest paths to include both clusters/rke2 and common.

from argo-cd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.