Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubectl diff #68

Open
Vad1mo opened this issue Mar 28, 2023 · 0 comments
Open

kubectl diff #68

Vad1mo opened this issue Mar 28, 2023 · 0 comments

Comments

@Vad1mo
Copy link

Vad1mo commented Mar 28, 2023

The diff in Kubectl can be altered with KUBECTL_EXTERNAL_DIFF here is the ref

These options do all work:

  • KUBECTL_EXTERNAL_DIFF="colordiff -N -u"
  • KUBECTL_EXTERNAL_DIFF="dyff between --omit-header --set-exit-code"
  • KUBECTL_EXTERNAL_DIFF='diff -qr'

I can't, however, make it work with graphtage using the following config

KUBECTL_EXTERNAL_DIFF="graphtage --from-yaml --to-yaml --debug " kubectl diff -f ./dist/aws/cert-manager.k8s.yaml

Traceback (most recent call last):
  File "/Users/vadim/.local/bin/graphtage", line 8, in <module>
    sys.exit(main())
  File "/Users/vadim/.local/lib/python3.10/site-packages/graphtage/__main__.py", line 323, in main
    from_tree = from_format.build_tree_handling_errors(from_path, options)
  File "/Users/vadim/.local/lib/python3.10/site-packages/graphtage/yaml.py", line 236, in build_tree_handling_errors
    return self.build_tree(path=path, options=options)
  File "/Users/vadim/.local/lib/python3.10/site-packages/graphtage/yaml.py", line 228, in build_tree
    tree = build_tree(path=path, options=options)
  File "/Users/vadim/.local/lib/python3.10/site-packages/graphtage/yaml.py", line 23, in build_tree
    with open(path, 'rb') as stream:
IsADirectoryError: [Errno 21] Is a directory: '/var/folders/v5/27sfclt13g54_qgh9kmkqf6w0000gn/T/LIVE-3245526907'

How could I accomplish that with graphtage?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant