Giter Club home page Giter Club logo

Comments (4)

rcarrata avatar rcarrata commented on August 31, 2024

Another possibility is to have deployed the ArgoCD CR within the operator with:

apiVersion: argoproj.io/v1alpha1
kind: ArgoCD
metadata:
  name: argocd
spec:
  image: argoproj/argocd
  version: v2.0.3
  server:
    insecure: true
    route:
      enabled: true
      tls:
        insecureEdgeTerminationPolicy: Redirect
        termination: edge

Let's check!

from devsecops-demo.

rcarrata avatar rcarrata commented on August 31, 2024

Works but changing the argocd image, because the old image 2.0.5 didn't work raising another error:

step-sync
+ argocd app sync dev-spring-petclinic --revision HEAD --
TIMESTAMP                  GROUP                     KIND   NAMESPACE                     NAME    STATUS   HEALTH        HOOK  MESSAGE
2022-03-01T19:25:27+00:00                         Service  devsecops-dev      spring-petclinic    Synced  Healthy              
2022-03-01T19:25:27+00:00   apps               Deployment  devsecops-dev      spring-petclinic    Synced  Healthy              
2022-03-01T19:25:27+00:00  route.openshift.io       Route  devsecops-dev      spring-petclinic    Synced  Healthy              
2022-03-01T19:25:29+00:00   apps  Deployment  devsecops-dev      spring-petclinic  OutOfSync  Progressing              
2022-03-01T19:25:29+00:00                         Service  devsecops-dev      spring-petclinic    Synced   Healthy                  service/spring-petclinic unchanged
2022-03-01T19:25:29+00:00   apps               Deployment  devsecops-dev      spring-petclinic  OutOfSync  Progressing              deployment.apps/spring-petclinic configured
2022-03-01T19:25:29+00:00  route.openshift.io       Route  devsecops-dev      spring-petclinic    Synced   Healthy                  route.route.openshift.io/spring-petclinic unchanged
2022-03-01T19:25:30+00:00   apps  Deployment  devsecops-dev      spring-petclinic    Synced  Progressing              deployment.apps/spring-petclinic configured
2022-03-01T19:25:30+00:00   apps  Deployment  devsecops-dev      spring-petclinic    Synced  Healthy              deployment.apps/spring-petclinic configured

Name:               dev-spring-petclinic
Project:            spring-petclinic
Server:             https://kubernetes.default.svc
Namespace:          devsecops-dev
URL:                https://openshift-gitops-server-openshift-gitops.apps.cluster-kb9kk.kb9kk.sandbox1484.opentlc.com/applications/dev-spring-petclinic
Repo:               http://gogs-ocp-workshop.apps.cluster-kb9kk.kb9kk.sandbox1484.opentlc.com/gogsadmin/spring-petclinic-config
Target:             HEAD
Path:               environments/dev
SyncWindow:         Sync Allowed
Sync Policy:        Automated (Prune)
Sync Status:        OutOfSync from HEAD (221a0ad)
Health Status:      Healthy


GROUP               KIND        NAMESPACE      NAME              STATUS     HEALTH   HOOK  MESSAGE
                    Service     devsecops-dev  spring-petclinic  Synced     Healthy        
apps                Deployment  devsecops-dev  spring-petclinic  OutOfSync  Healthy        
route.openshift.io  Route       devsecops-dev  spring-petclinic  Synced     Healthy        
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x48 pc=0x2317efb]

goroutine 1 [running]:
github.com/argoproj/argo-cd/v2/cmd/argocd/commands.NewApplicationSyncCommand.func1(0xc00023f340, 0xc000a6b440, 0x1, 0x4)
	/go/src/github.com/argoproj/argo-cd/cmd/argocd/commands/app.go:1418 +0x73b
github.com/spf13/cobra.(*Command).execute(0xc00023f340, 0xc000a6b400, 0x4, 0x4, 0xc00023f340, 0xc000a6b400)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:854 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0xc000c94dc0, 0x12, 0x0, 0x0)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:958 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
	/go/pkg/mod/github.com/spf13/[email protected]/command.go:895
main.main()
	/go/src/github.com/argoproj/argo-cd/cmd/main.go:60 +0x1d6

step-wait
2022/03/01 19:25:31 Skipping step because a previous step failed

Changing the image to the newest available 2.2.5, worked like a charm. Waiting to test in a clean env...

from devsecops-demo.

rcarrata avatar rcarrata commented on August 31, 2024

Worked ok in a full end2end pipeline:

image

from devsecops-demo.

rcarrata avatar rcarrata commented on August 31, 2024

Closing because it's fixed in #53 that is already in the main branch.

from devsecops-demo.

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.