Skip to content

Instantly share code, notes, and snippets.

View randomvariable's full-sized avatar
⬇️
Downstream. I may be slow to respond.

Naadir Jeewa randomvariable

⬇️
Downstream. I may be slow to respond.
View GitHub Profile
@deverton
deverton / logstash-template.json
Created June 22, 2012 04:49
Logstash Elasticsearch Template
{
"template": "logstash-*",
"settings" : {
"number_of_shards" : 1,
"number_of_replicas" : 0,
"index" : {
"query" : { "default_field" : "@message" },
"store" : { "compress" : { "stored" : true, "tv": true } }
}
},
@erictune
erictune / README.txt
Last active June 25, 2020 22:54
How Condition Types are defined across various types.go files that follow the Kubernetes Resource Model (KRM)
Advice on how to use conditions in Kubernetes types has varied over time and is interpreted differently by different people.
I'm interested in how people who chose to use conditions, and how they define condition type names.
I've previously crawled github to find definitions of conditions in types.go files. Here I present 364 code
snippets from various types.go files which are go `const` blocks, which match the substring `ConditionType`.
The data is in YAML format (I think). `example_url` is a github url for a file that contains this code snippet. It is
_not_ necessarily the canonical location for this file. The link is to the first line of the constant definition block.
The `approx_popularity` is a measure of how many times I saw this block across non-identical types.go files, so a rough