Comments (8)
Good idea! Have been meaning to do this - will look into it in an hour or so.
from dotnet-kube-client.
We have this, BTW, it's just not being used consistently:
https://github.com/tintoy/dotnet-kube-client/blob/develop/src/KubeClient/KubeClientException.cs
from dotnet-kube-client.
I reckon d13797a is a good start :)
Any feedback?
from dotnet-kube-client.
Oh, I didn't realise that this already existed.
I am still getting HttpRequestException
with DynamicClient.Patch()
though...
from dotnet-kube-client.
Interesting - you mean the non-generic HttpRequestException
(rather than HttpRequestException<TResponse>
)?
dotnet-kube-client/src/KubeClient/ResourceClients/DynamicResourceClient.cs
Lines 251 to 266 in d13797a
from dotnet-kube-client.
Hi sorry for the silence on this end - as usual, work and life get in the way. Will be spending some more time on this tonight to add tests that verify error handling. Let me know if you have opinions or other input :)
from dotnet-kube-client.
@felixfbecker - what do you reckon, is this test good enough?
PS. As a result of writing this test, I found and fixed the problem where you'd still see HttpRequestException<TResponse>
instead of KubeClientException
.
I'll try to get a proper release together before the end of this weekend :)
from dotnet-kube-client.
This has been resolved as of the most recent release. Feel free to reopen if you hit any non-KubeClient exceptions that you think shouldn't be exposed to callers :)
from dotnet-kube-client.
Related Issues (20)
- Telepresence support HOT 3
- Project direction / contributions HOT 7
- How is the ApiEndPoint configured for this parameter HOT 5
- Can I debug and load configMap locally? HOT 26
- IEventClientV1 fails to convert time value HOT 15
- Error while trying to create HorizontalPodAutoscaler with DynamicResourceClient HOT 7
- Aysnc methods on resource clients do not use standard Async naming conventions HOT 3
- Access full details of STATUS column from "kubectl get pod" HOT 1
- No authentication needed for url HOT 2
- KubeClient.Models.ObjectMetaV1.Annotations Should not be read-only
- Metadata doesn't get built for write-only models HOT 3
- WatchAll is missing for some resources HOT 4
- Field selectors for pods not implemented HOT 6
- Credential Plugins (AKS / AAD) Support HOT 1
- Detect current Pod namespace HOT 4
- Cannot find resource API for kind for Istio CRD HOT 6
- Upgrade to a newer version of YamlDotNet HOT 1
- CVE-2018-8292 | System.Net.Http HOT 2
- ExecAndConnect example yields 403 Forbidden HOT 1
- Cannot get output when using ExecAndConnect HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotnet-kube-client.