infra
warg
Our great sponsors
infra | warg | |
---|---|---|
20 | 7 | |
1,350 | 13 | |
0.8% | - | |
7.4 | 7.3 | |
7 days ago | 1 day ago | |
Go | Go | |
GNU General Public License v3.0 or later | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
infra
-
Recommendations for a better way to grant access in K8s on a granular level?
Check out https://infrahq.com. I saw the founder give a talk at the Civo conference in Feb.
-
infra alternatives - paralus and pinniped
3 projects | 7 Apr 2023
-
Converting http.Request to gin.Context struct
using generics you can even include request and response structs in your handlers. i did that here https://github.com/infrahq/infra/blob/main/internal/server/routes.go
-
Why are there so many OIDC SSO options for Kubernetes?
infra
-
RBAC MANAGEMENT
You should try Infra. It works with any flavor of Kube and can hook up Okta, Google, and AD (and anything that supports OpenID Connect). It can pull in your cluster/roles, and set up the cluster/role bindings. It's open source, although there is also a SaaS version if you don't want to self host.
-
Have you used generics?
I use them frequently. see https://github.com/infrahq/infra/blob/main/internal/server/routes.go
-
Infra: open source access management for Kubernetes
Github repo: https://github.com/infrahq/infra
- Infra: self-hosted access management
-
Anyone needs a (long-term) contributor for their open source project written in Go?
if you like Go and backend/infrastructure you might like https://github.com/infrahq/infra. it’s simple identity and access management for kubernetes (and eventually others).
-
The funny thing about generics in Go
not sure what you’re talking about. we use generics extensively and love it. https://github.com/infrahq/infra
warg
-
An Efficient Struct Configuration Pattern For Golang
Funcopts aren't always appropriate, but boy do they make things more readable sometimes. I use them pervasively in warg to allow declarative nested CLI commands
-
Which packages do you recommend for building cli tools?
I wrote my own! https://github.com/bbkane/warg/
-
Major standard library changes in Go 1.20
Very useful! I'll be playing with the error tree additions and studying the HTTP interface extension to see if I can replicate the pattern for https://github.com/bbkane/warg values. Id like to be able to have value-specific output for different types of --help , even ones not in warg
-
Have you used generics?
I'm using to allow for custom flag types in my CLI parsing library- a lot less duplicate code
-
Go: Functional Options Are Slow
One thing that I find nicer with functional options is building tree-like data structures.
My command line parsing library uses them to declaratively build CLI apps with arbitrarily nested subcommands.
Some examples at https://github.com/bbkane/warg/tree/master/examples
-
How are YOU using generics so far?
I'm writing a CLI parsing library, and generics have let me consolidate most of the flag value functionality for different types. So the flags for dbz --level 9000 --type superSaiyan share most of the same code even though one is an int and one is a string. So much fewer copy-paste-modify lines of code now!
-
Unix command line conventions over time
This is largely what the Azure CLI does. It simplifies even further by eliminating the no-value option. Instead, you pass "true" or "false" as the value ( --example true ). It's a little more verbose but very easy to parse/write/generate. I like this convention so much I stole it for my homemade Golang CLI parsing library https://github.com/bbkane/warg/ .
What are some alternatives?
pinniped - Pinniped is the easy, secure way to log in to your Kubernetes clusters.
graph - A library for creating generic graph data structures and modifying, analyzing, and visualizing them.
scan - Scan provides the ability to to scan sql rows directly to any defined structure.
cli-guidelines - A guide to help you write better command-line programs, taking traditional UNIX principles and updating them for the modern day.
workgroup - Structured concurrency manager for Go
aws-iam-authenticator - A tool to use AWS IAM credentials to authenticate to a Kubernetes cluster
golang-generics-dao-example - Example using Generics with DAO
dex - OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors
gosf-socketio - golang socket.io client and server
RCIG_Coordination_Repo - A Coordination repo for all things Rust Cryptography oriented