Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 112 for updateStats (0.73 sec)

  1. cmd/site-replication-utils.go

    				wg.Wait()
    				sm.Unlock()
    			}
    			sTimer.Reset(siteResyncSaveInterval)
    		case <-ctx.Done():
    			return
    		}
    	}
    }
    
    // update overall site resync state
    func (sm *siteResyncMetrics) updateState(s SiteResyncStatus) error {
    	if !globalSiteReplicationSys.isEnabled() {
    		return nil
    	}
    	sm.Lock()
    	defer sm.Unlock()
    	switch s.Status {
    	case ResyncStarted:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 8.9K bytes
    - Viewed (1)
  2. pkg/controller/podautoscaler/horizontal.go

    		return nil
    	}
    	return a.updateStatus(ctx, newHPA)
    }
    
    // updateStatus actually does the update request for the status of the given HPA
    func (a *HorizontalController) updateStatus(ctx context.Context, hpa *autoscalingv2.HorizontalPodAutoscaler) error {
    	_, err := a.hpaNamespacer.HorizontalPodAutoscalers(hpa.Namespace).UpdateStatus(ctx, hpa, metav1.UpdateOptions{})
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 63.6K bytes
    - Viewed (0)
  3. cmd/admin-handlers.go

    						peerResults[nerr.Host.String()] = prs
    					}
    					continue
    				}
    			}
    		}
    	}
    
    	for _, pr := range peerResults {
    		updateStatus.Results = append(updateStatus.Results, pr)
    	}
    
    	// Marshal API response
    	jsonBytes, err := json.Marshal(updateStatus)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	writeSuccessResponseJSON(w, jsonBytes)
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 98K bytes
    - Viewed (0)
  4. pkg/controller/deployment/progress.go

    		dc.requeueStuckDeployment(ctx, d, newStatus)
    		return nil
    	}
    
    	newDeployment := d
    	newDeployment.Status = newStatus
    	_, err := dc.client.AppsV1().Deployments(newDeployment.Namespace).UpdateStatus(ctx, newDeployment, metav1.UpdateOptions{})
    	return err
    }
    
    // getReplicaFailures will convert replica failure conditions from replica sets
    // to deployment conditions.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 11:00:44 UTC 2023
    - 8.9K bytes
    - Viewed (0)
  5. pkg/controller/storageversiongc/gc_controller.go

    			ctx, sv.Name, metav1.DeleteOptions{})
    	}
    	sv.Status.StorageVersions = serverStorageVersions
    	storageversion.SetCommonEncodingVersion(sv)
    	_, err := c.kubeclientset.InternalV1alpha1().StorageVersions().UpdateStatus(
    		ctx, sv, metav1.UpdateOptions{})
    	return err
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 10K bytes
    - Viewed (0)
  6. security/pkg/k8s/chiron/utils_test.go

    					time.Sleep(time.Millisecond * 25)
    					csr.Status.Certificate = certificate
    					_, err := client.Kube().CertificatesV1().CertificateSigningRequests().UpdateStatus(ctx, csr, metav1.UpdateOptions{})
    					log.Debugf("test signer sign %v: %v", csr.Name, err)
    				} else {
    					log.Debugf("test signer skip, not approved: %v", csr.Name)
    				}
    			}
    		}
    	}()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 03:58:11 UTC 2024
    - 13K bytes
    - Viewed (0)
  7. pilot/pkg/model/authorization_test.go

    	return "not implemented", nil
    }
    
    func (fs *authzFakeStore) Update(config.Config) (string, error) {
    	return "not implemented", nil
    }
    
    func (fs *authzFakeStore) UpdateStatus(config.Config) (string, error) {
    	return "not implemented", nil
    }
    
    func (fs *authzFakeStore) Patch(orig config.Config, patchFn config.PatchFunc) (string, error) {
    	return "not implemented", nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  8. pkg/controller/cronjob/cronjob_controllerv2_test.go

    					t.Errorf("%s: expected requeueAfter: %+v, got requeueAfter time: %+v", name, tc.expectedRequeueDuration, requeueAfter)
    				}
    			}
    			if updateStatus != tc.expectUpdateStatus {
    				t.Errorf("%s: expected updateStatus: %t, actually: %t", name, tc.expectUpdateStatus, updateStatus)
    			}
    			expectedCreates := 0
    			if tc.expectCreate {
    				expectedCreates = 1
    			}
    			if tc.ranPreviously && !tc.stillActive {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 70.8K bytes
    - Viewed (0)
  9. pkg/controller/namespace/deletion/namespaced_resources_deleter.go

    		return namespace, nil
    	}
    	newNamespace := namespace.DeepCopy()
    	newNamespace.Status.Phase = v1.NamespaceTerminating
    	return d.nsClient.UpdateStatus(ctx, newNamespace, metav1.UpdateOptions{})
    }
    
    // finalized returns true if the namespace.Spec.Finalizers is an empty list
    func finalized(namespace *v1.Namespace) bool {
    	return len(namespace.Spec.Finalizers) == 0
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 20 07:34:23 UTC 2023
    - 25.2K bytes
    - Viewed (0)
  10. tensorflow/cc/framework/scope.h

      /// Note: The status object is shared between all children of this scope.
      /// If the resulting status is not OkStatus() and exit_on_error_ is set on
      /// this scope, this function exits by calling LOG(FATAL).
      void UpdateStatus(const Status& s) const;
    
      // START_SKIP_DOXYGEN
    
      /// Update the builder with properties accumulated in this scope. Does not set
      /// status().
      // TODO(skyewm): NodeBuilder is not part of public API
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 09:08:33 UTC 2024
    - 10.5K bytes
    - Viewed (0)
Back to top