Diff image version in two kubernetes environment, for comparing app versions deployed in development and test k8s

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
25/100
Issue type
Documentation
Clarity
Needs clarification
Activity status
Stale
Tech stack
awk, kubernetes, shell

Research direction

The issue contains the kubectl, awk, sort, diff, and colordiff commands for comparing image lists between development and test clusters. Start by reviewing those commands and the repository's existing programming-tip format. Done means the comparison tip is documented clearly enough to reproduce with the two kubeconfig variables and namespace shown.

Written by the indexing model from the issue text.

Description

kubectl --kubeconfig=$DEV_CONFIG --namespace my-ns describe pods | grep "Image:" | awk '{print $2}' | sort -u > dev.txt

kubectl --kubeconfig=$TEST_CONFIG --namespace my-ns describe pods | grep "Image:" | awk '{print $2}' | sort -u > test.txt
diff -y dev.txt test.txt | colordiff

Dominant language
Python
Stars
5
Forks
2
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from davideuler/programming-tips

All issues in davideuler/programming-tips

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.