Getting all images referenced in pod specs:
kubectl get pods -A -o json |
jq -r '[.items[].spec | (.initContainers // empty | .[].image), .containers[].image] | unique | sort | .[]'
Getting all images cached on nodes:
Did you ever want to open a JIRA issue from vim, so you copied the jira issue name, opened the browser, opened JIRA then pasted the issue id into the search, then clicked on the search result?
That sequence above is terribly tedious!
With the vim script below, you just position your cursor on top of the ticket id,
then hit gj
and boom! Issue is opened in your browser!
You need to get a root certificate in place for mitmproxy. The easy way to do
that is to just run mitmproxy
and exit. The certificate can then be found at
~/.mitmproxy/mitmproxy-ca.pem
.
provider "github" { | |
# using environment variables: | |
# GITHUB_ORGANIZATION | |
# GITHUB_BASE_URL | |
# GITHUB_TOKEN | |
} | |
data "github_team" "team" { | |
slug = "test-team" | |
} |
provider "github" { | |
# using environment variables: | |
# GITHUB_ORGANIZATION | |
# GITHUB_BASE_URL | |
# GITHUB_TOKEN | |
} | |
resource "github_team" "team" { | |
name = "test-team" | |
} |
I'm playing around a lot nowadays with Terraform 0.13 and I found a really interesting feature and that's the ...
symbol (also called an ellipsis) to be used with for
expressions.
The operator can be used for group_by operations.
We have a list of entries. The list contains employee/manager/project triplets.