Skip to content

kubectl diff #68

@Vad1mo

Description

@Vad1mo

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions