@@ -94,14 +94,14 @@ function put!(ctx::KuberContext, v::T) where {T<:SwaggerModel}
94
94
put! (ctx, Symbol (vjson[" kind" ]), vjson)
95
95
end
96
96
97
- function put! (ctx:: KuberContext , O:: Symbol , d:: Dict{String,Any} ; max_tries :: Int = 1 )
97
+ function put! (ctx:: KuberContext , O:: Symbol , d:: Dict{String,Any} )
98
98
ctx. initialized || set_api_versions! (ctx)
99
99
100
100
apictx = _get_apictx (ctx, O, get (d, " apiVersion" , nothing ))
101
101
if (apicall = _api_function (" create$O " )) != = nothing
102
- return @retry_on_error apicall (apictx, d)
102
+ return apicall (apictx, d)
103
103
elseif (apicall = _api_function (" createNamespaced$O " )) != = nothing
104
- return @retry_on_error apicall (apictx, ctx. namespace, d)
104
+ return apicall (apictx, ctx. namespace, d)
105
105
else
106
106
throw (ArgumentError (" No API functions could be located using :$O " ))
107
107
end
@@ -114,17 +114,17 @@ function delete!(ctx::KuberContext, v::T; kwargs...) where {T<:SwaggerModel}
114
114
delete! (ctx, Symbol (kind), name; apiversion= get (vjson, " apiVersion" , nothing ), kwargs... )
115
115
end
116
116
117
- function delete! (ctx:: KuberContext , O:: Symbol , name:: String ; apiversion:: Union{String,Nothing} = nothing , max_tries :: Int = 1 , kwargs... )
117
+ function delete! (ctx:: KuberContext , O:: Symbol , name:: String ; apiversion:: Union{String,Nothing} = nothing , kwargs... )
118
118
ctx. initialized || set_api_versions! (ctx)
119
119
apictx = _get_apictx (ctx, O, apiversion)
120
120
121
121
params = [apictx, name]
122
122
123
123
if (apicall = _api_function (" delete$O " )) != = nothing
124
- return @retry_on_error apicall (params... ; kwargs... )
124
+ return apicall (params... ; kwargs... )
125
125
elseif (apicall = _api_function (" deleteNamespaced$O " )) != = nothing
126
126
push! (params, ctx. namespace)
127
- return @retry_on_error apicall (params... ; kwargs... )
127
+ return apicall (params... ; kwargs... )
128
128
else
129
129
throw (ArgumentError (" No API functions could be located using :$O " ))
130
130
end
@@ -137,15 +137,15 @@ function update!(ctx::KuberContext, v::T, patch, patch_type) where {T<:SwaggerMo
137
137
update! (ctx, Symbol (kind), name, patch, patch_type; apiversion= get (vjson, " apiVersion" , nothing ))
138
138
end
139
139
140
- function update! (ctx:: KuberContext , O:: Symbol , name:: String , patch, patch_type; apiversion:: Union{String,Nothing} = nothing , max_tries :: Int = 1 )
140
+ function update! (ctx:: KuberContext , O:: Symbol , name:: String , patch, patch_type; apiversion:: Union{String,Nothing} = nothing )
141
141
ctx. initialized || set_api_versions! (ctx)
142
142
143
143
apictx = _get_apictx (ctx, O, apiversion)
144
144
145
145
if (apicall = _api_function (" patch$O " )) != = nothing
146
- return @retry_on_error apicall (apictx, name, patch; _mediaType= patch_type)
146
+ return apicall (apictx, name, patch; _mediaType= patch_type)
147
147
elseif (apicall = _api_function (" patchNamespaced$O " )) != = nothing
148
- return @retry_on_error apicall (apictx, name, ctx. namespace, patch; _mediaType= patch_type)
148
+ return apicall (apictx, name, ctx. namespace, patch; _mediaType= patch_type)
149
149
else
150
150
throw (ArgumentError (" No API functions could be located using :$O " ))
151
151
end
0 commit comments