Skip to content

Instantly share code, notes, and snippets.


Naadir Jeewa randomvariable

View GitHub Profile
erictune / README.txt
Last active Jun 25, 2020
How Condition Types are defined across various types.go files that follow the Kubernetes Resource Model (KRM)
View README.txt
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
deverton / logstash-template.json
Created Jun 22, 2012
Logstash Elasticsearch Template
View logstash-template.json
"template": "logstash-*",
"settings" : {
"number_of_shards" : 1,
"number_of_replicas" : 0,
"index" : {
"query" : { "default_field" : "@message" },
"store" : { "compress" : { "stored" : true, "tv": true } }
You can’t perform that action at this time.