| ▲ | sgarland 4 hours ago |
| I especially enjoyed where you discovered that K8s runs on string interpolation. That feeling never goes away, FYI; every time you have to play with nindent, you lose a little piece of your sanity. |
|
| ▲ | Gravityloss 3 hours ago | parent | next [-] |
| This is partially a tangent, but the whole managing of software infrastructure is a strange culture. There would of course be lots of better ways, but it's too bad the infrastructure side of the software industry lives partially in a parallel world and many of the lessons from elsewhere in the industry are not really widespread there (at least yet). Even banks seem intelligent and innovative compared to infrastructure management mainstream practices. It's very error prone to describe a hierarchy of versioned software packages and configuration with shell scripts and yaml. Or use text files in git as a database. Or use the CI system as a bad substitute for a proper service (in order to do a simple thing, you must first create the world from scratch). And so on. Mainstream industry knows types, programming languages, relational databases, graphs and you name it, but those have not yet penetrated sufficiently into the infrastructure world. The understanding of the value of having types has been paid in sweat and blood when developing software and databases. Even a basic CRUD application with a basic SQL database will run rings around these Frankenstein monsters: in safety, speed, and extendability. |
| |
| ▲ | outworlder 3 hours ago | parent [-] | | > It's very error prone to describe a hierarchy of versioned software packages and configuration with shell scripts and yaml. We have a multitude of configuration/markup languages all doing the exact same thing. We have solved this problem in the 60s: S-Expressions. Should have just used that for everything. Configuration, code, websites, you name it. Infinitely extendable, easy to parse. | | |
| ▲ | devin 3 hours ago | parent [-] | | I'm a lisp nerd, but why do you say sexps are the answer here? I think the point of a lot of configuration formats is that they don't want their configuration to also be a full-fledged programming language. | | |
| ▲ | majormajor 2 hours ago | parent | next [-] | | > I think the point of a lot of configuration formats is that they don't want their configuration to also be a full-fledged programming language. That seems to be everyone's initial goal, but then it inevitably gets leaky. I think the dominant split here that forces everything into a weird mismash is that nobody really wants to have to understand arbitrary programming language configs for third-party stuff, they want to read config and know what's going on. BUT for their own stuff, they find reasons to want more power and expressibility... | |
| ▲ | gustavus 2 hours ago | parent | prev [-] | | > they don't want their configuration to also be a full-fledged programming language. They say they don't want it but every configurmation format eventually ends up becoming turing complete at some point. | | |
| ▲ | ianburrell 21 minutes ago | parent [-] | | There has been some config languages, like Cue, that are not Turing complete. It is useful of have them always complete and have deterministic evaluation. Cue also has a lot of schema validation which is better than dynamic languages. |
|
|
|
|
|
| ▲ | kryptn 3 hours ago | parent | prev | next [-] |
| I definitely prefer using kustomize over helm, where the mentioned interpolation takes place. |
| |
| ▲ | antonvs 2 minutes ago | parent [-] | | I set up a whole startup using Kustomize. It was great, except almost no-one used the inheritance feature except me - they all copy-pasted everything. Then the company grew and hired some dedicated devops people, who immediately started switching to Helm. I threw up my hands and went back to focusing on software development. I’ve done some NGO-related work and in that context, they talk about “appropriate technology” - technology that’s suited to the local population, among other things. I’ve started to see tools like Helm and languages like Go as appropriate technology for many teams, but that doesn’t mean I’m going to switch to a pedal-powered water pump in my own house. |
|
|
| ▲ | javcasas 2 hours ago | parent | prev [-] |
| You can do JSON instead of YAML. But no one does that because it is significantly uglier. So I guess we don't deserve sanity because we don't want our programs to be ugly? |
| |
| ▲ | nvme0n1p1 an hour ago | parent | next [-] | | The point is not how pretty the strings are. The point is there should be no strings at all. These are computer programs, so they should use normal objects. The python code `my_pod = nignx_pod()` will never throw a syntax error because the result has too many/too few spaces. | | |
| ▲ | wodenokoto an hour ago | parent | next [-] | | Of course it will. Just add a few spaces at the front of the line and it’ll throw an error. | |
| ▲ | dilyevsky an hour ago | parent | prev [-] | | no one is stopping you from importing k8s types as protobufs and writing a program to talk to k8s api via protobuf encoding. all the types are already protos (except CRDs). it's just not the most user-friendly way so most people don't use it. | | |
| |
| ▲ | 12_throw_away an hour ago | parent | prev [-] | | Wait, but how does that help? Are text templates any better suited for creating JSON than they are for creating YAML? Trying to manipulate well-structured data as if it were syntax-free text seems downright deranged to me, regardless of the specifics of the format ... |
|