You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Nicolas Massé cc085672fd formatting 2 years ago
charts build is optional 3 years ago
infrastructure bind ci and cd pipelines 2 years ago
.gitignore boilerplate 3 years ago
README.md formatting 2 years ago
dev.sh development script 3 years ago
infrastructure.yaml.sample wip 3 years ago

README.md

GitOps Artefacts for the eShopOnWeb demo

Deploy OpenShift resources with OpenShift GitOps

  • Install the OpenShift GitOps operator.

  • Fix the ArgoCD ingress route in order to use the router default TLS certificate.

oc patch argocd openshift-gitops -n openshift-gitops -p '{"spec":{"server":{"insecure":true,"route":{"enabled": true,"tls":{"termination":"edge","insecureEdgeTerminationPolicy":"Redirect"}}}}}' --type=merge
  • Get the Webhook URL of your OpenShift Gitops installation
oc get route -n openshift-gitops openshift-gitops-server -o jsonpath='https://{.spec.host}/api/webhook'
  • Add a webhook to your GitHub/GitLab repo

    • Payload URL: url above
    • Content-Type: Application/json
  • Give cluster-admin access rights to the OpenShift Gitops operator.

oc adm policy add-cluster-role-to-user cluster-admin system:serviceaccount:openshift-gitops:openshift-gitops-argocd-application-controller
cp infrastructure.yaml.sample infrastructure.yaml
oc apply -f infrastructure.yaml -n openshift-gitops
  • Print the relevant information to create the webhook.
oc get route -n eshop-dev el-eshoponweb -o go-template='https://{{.spec.host}}/{{"\n"}}'
oc get secret -n eshop-dev github-webbook-secret -o go-template --template='{{.data.secretToken|base64decode}}{{"\n"}}'
  • Add a webhook on the eShopOnWeb GitHub repository.

    • Payload URL: url above
    • Content-Type: Application/json
    • Secret: secret printed above