Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for updateStats (0.17 sec)

  1. pkg/kube/krt/index_test.go

    	}
    	pc.CreateOrUpdateStatus(pod)
    	tt.WaitUnordered("add/namespace/name")
    	assert.Equal(t, fetchSorted("1.2.3.4"), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.4"}})
    
    	pod.Status.PodIP = "1.2.3.5"
    	pc.UpdateStatus(pod)
    	tt.WaitUnordered("update/namespace/name")
    	assert.Equal(t, fetchSorted("1.2.3.4"), []SimplePod{})
    	assert.Equal(t, fetchSorted("1.2.3.5"), []SimplePod{{NewNamed(pod), Labeled{}, "1.2.3.5"}})
    
    	pod2 := &corev1.Pod{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. pkg/config/schema/codegen/templates/crdclient.go.tmpl

    		}, metav1.UpdateOptions{})
    	{{- end }}
    {{- end }}
    	default:
    		return nil, fmt.Errorf("unsupported type: %v", cfg.GroupVersionKind)
    	}
    }
    
    func updateStatus(c kube.Client, cfg config.Config, objMeta metav1.ObjectMeta) (metav1.Object, error) {
    	switch cfg.GroupVersionKind {
    {{- range .Entries }}
    	{{- if and (not .Resource.Synthetic) (not .Resource.Builtin) (not (eq .StatusType "")) }}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 13:57:51 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  3. pkg/kube/krt/join_test.go

    			Name:      "svc",
    			Namespace: "namespace",
    		},
    		Spec: corev1.ServiceSpec{Selector: map[string]string{"app": "foo"}},
    	}
    	sc.Create(svc)
    
    	pod.Status = corev1.PodStatus{PodIP: "1.2.3.4"}
    	pc.UpdateStatus(pod)
    
    	assert.EventuallyEqual(t, fetch, []SimpleEndpoint{
    		{pod.Name, svc.Name, pod.Namespace, "1.2.3.4"},
    		{"name-static", svc.Name, pod.Namespace, "9.9.9.9"},
    	})
    
    	ExtraSimplePods.Set(nil)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 09 19:55:53 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. pilot/pkg/config/aggregate/config.go

    	if cr.writer == nil {
    		return "", errorUnsupported
    	}
    	return cr.writer.Update(c)
    }
    
    func (cr *store) UpdateStatus(c config.Config) (string, error) {
    	if cr.writer == nil {
    		return "", errorUnsupported
    	}
    	return cr.writer.UpdateStatus(c)
    }
    
    func (cr *store) Patch(orig config.Config, patchFn config.PatchFunc) (string, error) {
    	if cr.writer == nil {
    		return "", errorUnsupported
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 26 01:14:27 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  5. pkg/controller/storageversionmigrator/resourceversion.go

    		return nil
    	}
    
    	exists, err := rv.resourceExists(gvr)
    	if err != nil {
    		return err
    	}
    	if !exists {
    		_, err = rv.kubeClient.StoragemigrationV1alpha1().
    			StorageVersionMigrations().
    			UpdateStatus(
    				ctx,
    				setStatusConditions(toBeProcessedSVM, svmv1alpha1.MigrationFailed, migrationFailedStatusReason),
    				metav1.UpdateOptions{},
    			)
    		if err != nil {
    			return err
    		}
    
    		return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  6. tests/integration/pilot/analysis/analysis_test.go

    			}
    			// append to conditions
    			we.Status.Conditions = append(we.Status.Conditions, addedConds...)
    			// update the status
    			_, err = t.Clusters().Default().Istio().NetworkingV1alpha3().WorkloadEntries(ns.Name()).UpdateStatus(context.TODO(), we, metav1.UpdateOptions{})
    			if err != nil {
    				t.Error(err)
    			}
    			// we should have all the conditions present
    			retry.UntilSuccessOrFail(t, func() error {
    				// should update
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. pkg/kubelet/volumemanager/reconciler/reconstruct.go

    	}
    
    	if len(reconstructedVolumes) > 0 {
    		// Add the volumes to ASW
    		rc.updateStates(reconstructedVolumes)
    
    		// Remember to update devicePath from node.status.volumesAttached
    		rc.volumesNeedUpdateFromNodeStatus = reconstructedVolumeNames
    	}
    	klog.V(2).InfoS("Volume reconstruction finished")
    }
    
    func (rc *reconciler) updateStates(reconstructedVolumes map[v1.UniqueVolumeName]*globalVolumeInfo) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:23:12 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/job/PurgeLogJob.java

                logger.error("Failed to purge user info.", e);
                resultBuf.append(e.getMessage()).append("\n");
            }
    
            // update job logs
            try {
                jobLogService.updateStatus();
            } catch (final Exception e) {
                logger.error("Failed to purge job logs.", e);
                resultBuf.append(e.getMessage()).append("\n");
            }
    
            return resultBuf.toString();
        }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/app/service/JobLogService.java

        public void deleteByJobStatus(final List<String> jobStatusList) {
            jobLogBhv.queryDelete(cb -> {
                cb.query().setJobStatus_InScope(jobStatusList);
            });
        }
    
        public void updateStatus() {
            final long expiry = ComponentUtil.getSystemHelper().getCurrentTimeAsLong() - expiredJobInterval;
            final List<JobLog> list = jobLogBhv.selectList(cb -> {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/controller/establish/establishing_controller.go

    		Message: "the initial names have been accepted",
    	}
    	apiextensionshelpers.SetCRDCondition(crd, establishedCondition)
    
    	// Update server with new CRD condition.
    	_, err = ec.crdClient.CustomResourceDefinitions().UpdateStatus(context.TODO(), crd, metav1.UpdateOptions{})
    	if apierrors.IsNotFound(err) || apierrors.IsConflict(err) {
    		// deleted or changed in the meantime, we'll get called again
    		return nil
    	}
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top