Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for func (0.05 sec)

  1. pkg/scheduler/framework/plugins/nodevolumelimits/utils.go

    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/kubernetes/pkg/scheduler/framework"
    )
    
    // isCSIMigrationOn returns a boolean value indicating whether
    // the CSI migration has been enabled for a particular storage plugin.
    func isCSIMigrationOn(csiNode *storagev1.CSINode, pluginName string) bool {
    	if csiNode == nil || len(pluginName) == 0 {
    		return false
    	}
    
    	// In-tree storage to CSI driver migration feature should be enabled,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 09 14:55:34 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. pkg/scheduler/util/utils.go

    )
    
    // GetPodFullName returns a name that uniquely identifies a pod.
    func GetPodFullName(pod *v1.Pod) string {
    	// Use underscore as the delimiter because it is not allowed in pod name
    	// (DNS subdomain format).
    	return pod.Name + "_" + pod.Namespace
    }
    
    // GetPodStartTime returns start time of the given pod or current timestamp
    // if it hasn't started yet.
    func GetPodStartTime(pod *v1.Pod) *metav1.Time {
    	if pod.Status.StartTime != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Sep 21 01:40:44 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  3. pkg/controller/job/util/utils.go

    // IsJobFinished checks whether the given Job has finished execution.
    // It does not discriminate between successful and failed terminations.
    func IsJobFinished(j *batch.Job) bool {
    	isFinished, _ := FinishedCondition(j)
    	return isFinished
    }
    
    // IsJobSucceeded returns whether a job has completed successfully.
    func IsJobSucceeded(j *batch.Job) bool {
    	for _, c := range j.Status.Conditions {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 07 09:27:46 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  4. utils/utils.go

    	"fmt"
    	"path/filepath"
    	"reflect"
    	"runtime"
    	"strconv"
    	"strings"
    	"unicode"
    )
    
    var gormSourceDir string
    
    func init() {
    	_, file, _, _ := runtime.Caller(0)
    	// compatible solution to get gorm source directory with various operating systems
    	gormSourceDir = sourceDir(file)
    }
    
    func sourceDir(file string) string {
    	dir := filepath.Dir(file)
    	dir = filepath.Dir(dir)
    
    	s := filepath.Dir(dir)
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 22 06:43:02 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. pkg/controller/endpointslicemirroring/utils.go

    type addrTypePortMapKey string
    
    // newAddrTypePortMapKey generates a PortMapKey from endpoint ports.
    func newAddrTypePortMapKey(endpointPorts []discovery.EndpointPort, addrType discovery.AddressType) addrTypePortMapKey {
    	pmk := fmt.Sprintf("%s-%s", addrType, endpointsliceutil.NewPortMapKey(endpointPorts))
    	return addrTypePortMapKey(pmk)
    }
    
    func (pk addrTypePortMapKey) addressType() discovery.AddressType {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 18:08:12 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  6. pkg/proxy/util/utils.go

    	IPv6ZeroCIDR = "::/0"
    )
    
    // isValidEndpoint checks that the given host / port pair are valid endpoint
    func isValidEndpoint(host string, port int) bool {
    	return host != "" && port > 0
    }
    
    // IsZeroCIDR checks whether the input CIDR string is either
    // the IPv4 or IPv6 zero CIDR
    func IsZeroCIDR(cidr string) bool {
    	if cidr == IPv4ZeroCIDR || cidr == IPv6ZeroCIDR {
    		return true
    	}
    	return false
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  7. pilot/pkg/security/authn/utils/utils.go

    	"ECDHE-ECDSA-AES128-GCM-SHA256",
    	"ECDHE-RSA-AES128-GCM-SHA256",
    	"AES256-GCM-SHA384",
    	"AES128-GCM-SHA256",
    }
    
    // BuildInboundTLS returns the TLS context corresponding to the mTLS mode.
    func BuildInboundTLS(mTLSMode model.MutualTLSMode, node *model.Proxy,
    	protocol networking.ListenerProtocol, trustDomainAliases []string, minTLSVersion tls.TlsParameters_TlsProtocol,
    	mc *meshconfig.MeshConfig,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 23 00:16:21 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  8. schema/utils.go

    		} else if k != "" {
    			settings[k] = k
    		}
    	}
    
    	return settings
    }
    
    func toColumns(val string) (results []string) {
    	if val != "" {
    		for _, v := range strings.Split(val, ",") {
    			results = append(results, strings.TrimSpace(v))
    		}
    	}
    	return
    }
    
    func removeSettingFromTag(tag reflect.StructTag, names ...string) reflect.StructTag {
    	for _, name := range names {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sat Aug 19 13:35:14 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  9. security/pkg/k8s/chiron/utils.go

    // GenKeyCertK8sCA : Generates a key pair and gets public certificate signed by K8s_CA
    // Options are meant to sign DNS certs
    // 1. Generate a CSR
    // 2. Call SignCSRK8s to finish rest of the flow
    func GenKeyCertK8sCA(client clientset.Interface, dnsName,
    	caFilePath string, signerName string, approveCsr bool, requestedLifetime time.Duration,
    ) ([]byte, []byte, []byte, error) {
    	// 1. Generate a CSR
    	options := util.CertOptions{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 18:11:22 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/utils.go

    	schema "k8s.io/apimachinery/pkg/runtime/schema"
    )
    
    // ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no
    // apply configuration type exists for the given GroupVersionKind.
    func ForKind(kind schema.GroupVersionKind) interface{} {
    	switch kind {
    	// Group=apiextensions.k8s.io, Version=v1
    	case v1.SchemeGroupVersion.WithKind("CustomResourceColumnDefinition"):
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 6.2K bytes
    - Viewed (0)
Back to top