* CA1823 Avoid unused private fields
* CA1847 Use string.Contains(char) instead of string.Contains(string) with single characters
* IDE0005 Remove unnecessary import
* IDE0051 Private member is unused
* IDE0052 Private member is unread
* create release (disable nuget push for now)
* nudge
* skip tests
* use Powershell because Windows runner
* gh version outdated?
* try ubuntu?
* Revert "try ubuntu?"
This reverts commit ee256b1d4709e74e5ebd2d32842d47260616c320.
* install it via choco?
* different command
* Revert "different command"
This reverts commit 55f31bdb5d28f4acbf942c1db5fbdcfc412a8eca.
* ooh it just needs GITHUB_TOKEN
* clean up, add comment
* move further down
* re-enable everything
* indent
* fix RegEx so that it supports higher version numbers
* debug
* Revert "debug"
This reverts commit 243b8208277390f1369645162d214fb55efe3682.
* confirmed that cli is on latest now. clean this up.
* nudge
* skip tests
* disable push
* Revert "disable push"
This reverts commit 143978d9e44972a502da3e8504e085d31c7669c7.
* Revert "skip tests"
This reverts commit 4362d21534f29262977cf121f1cea934ad90ec03.
* Ported GenericKubernetesApi from java along with other utilities
* Replace DeleteOptions for V1DeleteOptions
* Clean up and add clear()
* Clean up
* Removed TweakApiHandler
* Rename methods to follow "async" pattern
* Fix method naming
* Remove unneeded json property
* Rearrange httpsuccess logic
* Simplify dispose pattern
* Treat MockKubeServerFlags as flags
* Clean up flags logic
* Remove unneeded json properties
* Fix cs formatting
* Remove unused variable
* Move MockApi server options to seperate class and revert MockApi back to original
* Remove IRunnable
* Refactor config constants to use existing service account path
* Moved _url.Replace("/apis//", "/api/") down several lines.
Consider the following code:
var _baseUrl = BaseUri.AbsoluteUri;
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/namespaces/{namespace}/{plural}").ToString();
_url = _url.Replace("/apis//", "/api/");
_url = _url.Replace("{group}", group);
_url = _url.Replace("{version}", version);
_url = _url.Replace("{namespace}", namespaceParameter);
_url = _url.Replace("{plural}", plural);
If group is empty string, we need to replace /apis// with /api.
To do this, we need to replace /apis// after {group}.
Code after the change:
var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "apis/{group}/{version}/namespaces/{namespace}/{plural}").ToString();
_url = _url.Replace("{group}", group);
_url = _url.Replace("{version}", version);
_url = _url.Replace("{namespace}", namespaceParameter);
_url = _url.Replace("{plural}", plural);
_url = _url.Replace("/apis//", "/api/");
* Auto-generated changes
* Avoid calling _httpResponse.Content.ReadAsStringAsync() and deserialize from the content stream
Made a change to avoid calling _httpResponse.Content.ReadAsStringAsync() and deserialize from the content stream, which significantly reduced memory utilization.
Created Kubernetes.cs file and moved constructors and couple methods from the Kubernetes.cs.template to the Kubernetes.cs
Generated Kubernetes.cs will be in a separate commit.
* Separate commit for generated Kubernetes.cs
* Updated GitVersioning package to fix issue with loading native libgit lib. Added check for missing HttpClientHandler
* fixed type
* HttpClientHandler is null when trying to get client certificates for web socket connection. Added direct configuration of client cert instead of via HttpClientHandler
* fixed indentation warning
* re-added certs from httpclienthandler if present
* Updated GitVersioning package to fix issue with loading native libgit lib. Added check for missing HttpClientHandler
* fixed type
* HttpClientHandler is null when trying to get client certificates for web socket connection. Added direct configuration of client cert instead of via HttpClientHandler
* fixed indentation warning
* re-added certs from httpclienthandler if present
* merged duplicate code
* reverted package changes
Update customResource example nuget packages + update example
Update httpClientFactory example nuget packages
Update nuget packages
Change DateTime to DateTimeOffset
Update tests nuget packages
Make KubernetesClient project reference instead of Nuget package reference
Co-authored-by: Boshi Lian <farmer1992@gmail.com>
Co-authored-by: Boshi Lian <farmer1992@gmail.com>
* support async enum watch
* honor ct and catch more exception
* fix format
* better flaky
* ct to for should throw
* make sure no npe
* fix nuget build
* fix watcher test
* check close before dispose