Commit Graph

10 Commits

Author SHA1 Message Date
Jan Willies de2b81e1bf set grpc default message size to 4mb
Signed-off-by: Jan Willies <jan.willies@accenture.com>
2024-09-06 14:24:57 +02:00
Nic Cope cacf5b0fc2 Fix BetaServer responses
I was accidentally always returning an empty response. This fixes that,
and adds a unit test.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-08-16 16:47:09 -07:00
Nic Cope b97d0d1ac8 Serve both v1 and v1beta1 requests for backward compatibility
Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-08-16 13:20:45 -07:00
Nic Cope 1f3ee551a0 Switch the SDK to use v1 protos
v1 is currently identical to v1beta1. Upstream we have automation that
makes sure the two protos are identical (apart from their package).

Signed-off-by: Nic Cope <nicc@rk0n.org>
2024-08-16 13:20:45 -07:00
davidelienhard f185cd50b0 Update sdk.go
Signed-off-by: Davide Lienhard <davide.lienhard@nttdata.com>
2024-08-12 18:47:30 +02:00
Davide Lienhard 2fd1c1c08a added maximum Message size serveoption
Signed-off-by: Davide Lienhard <davide.lienhard@nttdata.com>
2024-08-12 18:47:30 +02:00
Philippe Scorsolini 55c6e20f80
chore: make root NewLogger proxy logging.NewLogger
Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
2023-09-28 08:49:26 +02:00
Philippe Scorsolini 5b013ffc4d
feat: introduce logging and errors packages
Signed-off-by: Philippe Scorsolini <p.scorsolini@gmail.com>
2023-09-27 12:24:57 +02:00
Nic Cope 51c94be4fc Allow falling through to the Insecure option
If --tls-certs-dir is the empty string (i.e. not specified), we try see
whether --insecure was supplied. If both are supplied, whichever was
supplied last wins. If neither are supplied, you'll get an error that
you didn't setup any credentials.

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-09-20 15:50:59 -07:00
Nic Cope 8dd124b7a5 Add the beginnings of a Function SDK
I'm sure this won't be close to the end shape of this SDK, but I want to
start somewhere. This is essentially a few utilities I found I wanted
when writing https://github.com/crossplane-contrib/function-patch-and-transform

Signed-off-by: Nic Cope <nicc@rk0n.org>
2023-09-12 05:45:19 -07:00