understand it better

Signed-off-by: Austin Abro <AustinAbro321@gmail.com>
pull/13604/head
Austin Abro 9 months ago
parent 6f7ac066ae
commit a61a35240e
No known key found for this signature in database
GPG Key ID: 92EB5159E403F9D6

@ -301,6 +301,7 @@ func (c *Client) Wait(resources ResourceList, timeout time.Duration) error {
// log: c.Log, // log: c.Log,
// timeout: timeout, // timeout: timeout,
// } // }
// w.waitForResources()
cfg, err := c.Factory.ToRESTConfig() cfg, err := c.Factory.ToRESTConfig()
if err != nil { if err != nil {
return err return err

@ -33,6 +33,7 @@ type Interface interface {
Create(resources ResourceList) (*Result, error) Create(resources ResourceList) (*Result, error)
// Wait waits up to the given timeout for the specified resources to be ready. // Wait waits up to the given timeout for the specified resources to be ready.
// TODO introduce another interface for the waiting of the KubeClient
Wait(resources ResourceList, timeout time.Duration) error Wait(resources ResourceList, timeout time.Duration) error
// WaitWithJobs wait up to the given timeout for the specified resources to be ready, including jobs. // WaitWithJobs wait up to the given timeout for the specified resources to be ready, including jobs.

@ -0,0 +1,18 @@
/*
Copyright The Helm Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
package kube // import "helm.sh/helm/v3/pkg/kube"
Loading…
Cancel
Save