Last active
August 27, 2024 01:18
-
-
Save igstan/92fc3b12156f7f9e2df617a647deb701 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
object YAML: | |
apiVersion: | |
apps/v1 | |
kind: | |
Deployment | |
metadata: | |
name: | |
"my-app" | |
namespace: | |
"my-app" | |
labels: | |
app.kubernetes.io/name: | |
"my-app" | |
containers: | |
envFrom: | |
- configMapRef: | |
name: | |
"my-app-config-env-vars" | |
- secretRef: // the empty line above this one is needed | |
name: | |
"my-app-secret-env-vars" | |
// Some stubs to prove the syntax above. | |
object Deployment | |
def apiVersion(k: Unit): Unit = ??? | |
object apps { def / (u: Unit): Unit = ??? } | |
val v1: Unit = ??? | |
def kind(d: Deployment.type ): Unit = ??? | |
def metadata(k: Unit): Unit = ??? | |
def name(s: String): Unit = ??? | |
def namespace(s: String): Unit = ??? | |
def labels(s: Unit): Unit = ??? | |
object app { object kubernetes { object io { def /(r: Unit): Unit = ??? } } } | |
def containers(r: Unit): Unit = ??? | |
def envFrom(a: Unit): Unit = ??? | |
class Item { def unary_- : Unit = ??? } | |
def configMapRef(r: Unit): Item = ??? | |
def secretRef(r: Unit): Item = ??? |
@cgst or terrifying! Unsure which one yet!
you're still up to no good 😜
glorious XD
"_
is doing too many things, we need to fix that" vs. "let's add more random places that use :
" 🤡
[fear]
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Haha! Amazing!