Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Activity for Iizuki‭

Type On... Excerpt Status Date
Edit Post #293248 Post edited:
Revision is the correct term
10 days ago
Edit Post #293249 Initial revision 10 days ago
Answer A: Helm delete old release revisions
You don't need to do anything. Helm prunes old release secrets once their number exceeds 10. More specifically, `helm upgrade` command has an integer option `--history-max`, that allows you to specify the max amount of revisions to keep around. It defaults to 10.
(more)
10 days ago
Edit Post #293248 Initial revision 10 days ago
Question Helm delete old release revisions
Helm keeps track of releases and their revisions by creating a kubernetes `Secret` each time a chart is installed, upgraded etc. These are of course useful in case you want to rollback, but they do pile up. How to prune old helm chart revisions from a cluster, when you're confident you no longer w...
(more)
10 days ago
Edit Post #293242 Initial revision 11 days ago
Answer A: List charts in a helm repository
You have to search the repo without any filters: ```commandline $ helm search repo myrepo NAME CHART VERSION APP VERSION DESCRIPTION myrepo/mychart 1.0.0 1.0.0 Example helm chart ``` Also remember to update the repositories first: ```co...
(more)
11 days ago
Edit Post #293241 Initial revision 11 days ago
Question List charts in a helm repository
How to list all available helm charts in a helm repository, preferrably using the native `helm` CLI tool? This command lists the repos themselves, but I've yet to discover how to list their contents. ```commandline $ helm repo list ```
(more)
11 days ago
Edit Post #292748 Post edited:
Comment suggestions
3 months ago
Comment Post #292748 You seem to know way more about this than I do. Go ahead and edit this answer (or just post another one)
(more)
3 months ago
Edit Post #292748 Initial revision 3 months ago
Answer A: Why not call nullptr NULL?
Probably just backwards compatibility with past C++ versions, where `NULL = 0`.
(more)
3 months ago
Edit Post #292680 Initial revision 4 months ago
Answer A: What does an exclamation mark mean in a GraphQL schema?
It's a type modifier that means that the field is non-nullable. That is, when uploading these types you must provide values for these fields, and in turn the server promises to always populate the field in query responses (or return an error if it cannot be done). Official docs.
(more)
4 months ago
Edit Post #292679 Initial revision 4 months ago
Question What does an exclamation mark mean in a GraphQL schema?
Types are often followed by exclamation marks in GraphQL schemas. What do they mean? ```graphql type User { id: Int! email: String! name: String! updatedAt: String! createdAt: String! } ```
(more)
4 months ago
Edit Post #292678 Initial revision 4 months ago
Question Differences between Haskell tools Stack and Cabal?
Haskell tooling can be confusing. Both `Stack` and `Cabal` appear to be build tools with similar goals. How do they differ? Why should you pick one over the other?
(more)
4 months ago
Edit Post #291580 Initial revision 8 months ago
Answer A: UID of nonroot user in distroless container images
You don't actually need the UID in that particular example. A more elegant solution would be to use the `--chown` option of the COPY directive. ```containerfile FROM bash:latest as builder RUN adduser adduser \ --disabled-password \ --gecos "" \ --home "/nonexistent" \ --shell "...
(more)
8 months ago
Edit Post #291575 Initial revision 8 months ago
Answer A: UID of nonroot user in distroless container images
The UID of `nonroot` user is 65532. This is by convention. I failed to find a reputable source for this, but looking around image internals, it seems to hold.
(more)
8 months ago
Edit Post #291574 Initial revision 8 months ago
Question UID of nonroot user in distroless container images
Distroless images use a user called `nonroot` by convention. What's the UID (User ID) of this user? This is relevant in multi-stage image builds: ```containerfile FROM bash:latest as builder RUN adduser adduser \ --disabled-password \ --gecos "" \ --home "/nonexistent" \ --shell...
(more)
8 months ago
Comment Post #285050 This is a prime example of creating confusion with keyword overloading. Hopefully newer languages keep this in mind.
(more)
8 months ago
Comment Post #291267 I'm indeed using rancher, but it's really more a part of the answer than the question. This is mostly a question about understanding what can cause such an error message. There could be other non-rancher-related causes too.
(more)
9 months ago
Edit Post #291268 Initial revision 9 months ago
Answer A: Kubectl exec: "Error from server (BadRequest): Upgrade request required"
Ok I got it working again. The issue was that I had updated my kubeconfig file, and the `current-context` setting had changed. This setting essentially selects which cluster kubectl targets. Now the cluster wasn't a wrong one per se, it just wasn't a direct route. This is a `rancher` managed cl...
(more)
9 months ago
Edit Post #291267 Initial revision 9 months ago
Question Kubectl exec: "Error from server (BadRequest): Upgrade request required"
I'm getting an error when trying to open a shell to a pod. This used to work. ```shell $ kubectl exec --tty --stdin --namespace my-ns my-pod -- sh Error from server (BadRequest): Upgrade request required ``` What does it mean?
(more)
9 months ago
Edit Post #291234 Post edited:
missing word
10 months ago
Edit Post #291237 Initial revision 10 months ago
Answer A: Simplest way of getting failure notification emails from kubernetes
The simplest solution I managed to find is robusta. It still has a bunch of unnecessary features, but with the correct configuration it's possible to disable these. As a bonus, it nicely adds some extra info to the notifications (called enrichments). It's intended to run alongside prometheus, b...
(more)
10 months ago
Edit Post #291235 Post edited:
10 months ago
Edit Post #291235 Post edited:
10 months ago
Edit Post #291235 Initial revision 10 months ago
Answer A: What is a .gitkeep file?
They are not a part of git the way `.gitignore` files are. It's just a convention to add empty directories to git repositories. Normally git ignores empty directories altogether. Adding an empty file — conventionally named `.gitkeep` — will make git recognize the directory. Oftentimes people do...
(more)
10 months ago
Edit Post #291234 Initial revision 10 months ago
Question What is a .gitkeep file?
Sometimes there are empty files named `.gitkeep` sprinkled around a repository. What are these files?
(more)
10 months ago
Edit Post #291198 Initial revision 10 months ago
Answer A: Why is global evil?
Global variables make the code hard to reason about This is especially visible when debugging. Say you have a function which errors. The stacktrace tells you where the function got it's arguments, but not who last modified the global variables it might have read. They could have been modified lite...
(more)
10 months ago
Edit Post #291081 Post edited:
10 months ago
Edit Post #291081 Initial revision 10 months ago
Question Simplest way of getting failure notification emails from kubernetes
What would be the simplest (and most lightweight) way of getting email notifications of failures in kubernetes clusters. Mostly interested in failing pods, so notifying on certain kubernetes event types would be sufficient. This really shouldn't need an additional database like prometheus). Id...
(more)
10 months ago
Edit Post #290995 Initial revision 11 months ago
Answer A: What are the prefixes like "md:" and "ds:" in SAML metadata?
The prefixes are explained in saml-metadata-2.0-os spec in section 1.1: "Notation" | Prefix | Explanation |--------|------------| | saml: | This is the SAML V2.0 assertion namespace [SAMLCore]. The prefix is generally elided in mentions of SAML assertion-related elements in text. | samlp: | Thi...
(more)
11 months ago
Edit Post #290994 Initial revision 11 months ago
Question What are the prefixes like "md:" and "ds:" in SAML metadata?
SAML service provider (and other types as well) metadata XMLs are full of prefixes like `md:` and `ds:`. What do these mean? To illustrate my point, here's a sample metadata file from Wikipedia (CC-BY-SA 4.0): ```xml https://registrar...
(more)
11 months ago
Edit Post #290949 Initial revision 11 months ago