Skip to content

gitops-examples/what-the-diff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This repo contains examples of different diff'ing scenarios with kubectl diff and Argo CD Diff strategies

Use Cases

  1. Manual Edits
  2. Changes in git
  3. Mutations

Notes

Can enable server-side-diff in Argo CD through annotation or by adding:

spec:
  controller:
    extraCommandArgs:
      - '--server-side-diff-enabled'

References

OpenShift GitOps

These use cases where run using OpenShift GitOps 1.18 (Argo CD 3.1)

It uses the default setup of cluster-admins group, to create this group run the following:

oc adm groups new cluster-admins admin

You also need to give the application-controller SA cluster-admin rights:

oc adm policy add-cluster-role-to-user cluster-admin -z openshift-gitops-argocd-application-controller -n openshift-gitops

About

Examples of how diffs work with kubectl and Argo CD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published