mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
commit
d05183be41
@ -23,7 +23,6 @@ pkg/controller/resourcequota
|
|||||||
pkg/controller/statefulset
|
pkg/controller/statefulset
|
||||||
pkg/credentialprovider
|
pkg/credentialprovider
|
||||||
pkg/credentialprovider/aws
|
pkg/credentialprovider/aws
|
||||||
pkg/credentialprovider/azure
|
|
||||||
pkg/kubeapiserver/admission
|
pkg/kubeapiserver/admission
|
||||||
pkg/kubectl/cmd/get
|
pkg/kubectl/cmd/get
|
||||||
pkg/kubelet/apis/podresources
|
pkg/kubelet/apis/podresources
|
||||||
@ -37,7 +36,6 @@ pkg/printers/internalversion
|
|||||||
pkg/probe/http
|
pkg/probe/http
|
||||||
pkg/proxy/healthcheck
|
pkg/proxy/healthcheck
|
||||||
pkg/proxy/iptables
|
pkg/proxy/iptables
|
||||||
pkg/proxy/ipvs
|
|
||||||
pkg/proxy/userspace
|
pkg/proxy/userspace
|
||||||
pkg/proxy/winkernel
|
pkg/proxy/winkernel
|
||||||
pkg/proxy/winuserspace
|
pkg/proxy/winuserspace
|
||||||
@ -53,9 +51,7 @@ pkg/scheduler
|
|||||||
pkg/scheduler/algorithm/predicates
|
pkg/scheduler/algorithm/predicates
|
||||||
pkg/scheduler/algorithm/priorities
|
pkg/scheduler/algorithm/priorities
|
||||||
pkg/scheduler/api/v1
|
pkg/scheduler/api/v1
|
||||||
pkg/scheduler/apis/config/v1alpha1
|
|
||||||
pkg/scheduler/internal/queue
|
pkg/scheduler/internal/queue
|
||||||
pkg/security/podsecuritypolicy/sysctl
|
|
||||||
pkg/util/coverage
|
pkg/util/coverage
|
||||||
pkg/util/ebtables
|
pkg/util/ebtables
|
||||||
pkg/util/ipconfig
|
pkg/util/ipconfig
|
||||||
|
@ -37,9 +37,7 @@ import (
|
|||||||
// maxUpdateRetries is the maximum number of retries used for update conflict resolution prior to failure
|
// maxUpdateRetries is the maximum number of retries used for update conflict resolution prior to failure
|
||||||
const maxUpdateRetries = 10
|
const maxUpdateRetries = 10
|
||||||
|
|
||||||
// updateConflictError is the error used to indicate that the maximum number of retries against the API server have
|
|
||||||
// been attempted and we need to back off
|
// been attempted and we need to back off
|
||||||
var updateConflictError = fmt.Errorf("aborting update after %d attempts", maxUpdateRetries)
|
|
||||||
var patchCodec = scheme.Codecs.LegacyCodec(apps.SchemeGroupVersion)
|
var patchCodec = scheme.Codecs.LegacyCodec(apps.SchemeGroupVersion)
|
||||||
|
|
||||||
// overlappingStatefulSets sorts a list of StatefulSets by creation timestamp, using their names as a tie breaker.
|
// overlappingStatefulSets sorts a list of StatefulSets by creation timestamp, using their names as a tie breaker.
|
||||||
|
@ -68,7 +68,6 @@ type acrAuthResponse struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 5 minutes buffer time to allow timeshift between local machine and AAD
|
// 5 minutes buffer time to allow timeshift between local machine and AAD
|
||||||
const timeShiftBuffer = 300
|
|
||||||
const userAgentHeader = "User-Agent"
|
const userAgentHeader = "User-Agent"
|
||||||
const userAgent = "kubernetes-credentialprovider-acr"
|
const userAgent = "kubernetes-credentialprovider-acr"
|
||||||
|
|
||||||
|
@ -50,7 +50,6 @@ const (
|
|||||||
exampleEventValidate examplePluginEvent = 0
|
exampleEventValidate examplePluginEvent = 0
|
||||||
exampleEventRegister examplePluginEvent = 1
|
exampleEventRegister examplePluginEvent = 1
|
||||||
exampleEventDeRegister examplePluginEvent = 2
|
exampleEventDeRegister examplePluginEvent = 2
|
||||||
exampleEventError examplePluginEvent = 3
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewExampleHandler provide a example handler
|
// NewExampleHandler provide a example handler
|
||||||
|
@ -61,15 +61,12 @@ const (
|
|||||||
seedContainer2 = 5000
|
seedContainer2 = 5000
|
||||||
seedSandbox2 = 6000
|
seedSandbox2 = 6000
|
||||||
seedContainer3 = 7000
|
seedContainer3 = 7000
|
||||||
seedSandbox3 = 8000
|
|
||||||
seedContainer5 = 9000
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
pName0 = "pod0"
|
pName0 = "pod0"
|
||||||
pName1 = "pod1"
|
pName1 = "pod1"
|
||||||
pName2 = "pod2"
|
pName2 = "pod2"
|
||||||
pName3 = "pod3"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -66,16 +66,6 @@ const (
|
|||||||
kubeNodePortLocalSetUDPComment = "Kubernetes nodeport UDP port with externalTrafficPolicy=local"
|
kubeNodePortLocalSetUDPComment = "Kubernetes nodeport UDP port with externalTrafficPolicy=local"
|
||||||
kubeNodePortLocalSetUDP = "KUBE-NODE-PORT-LOCAL-UDP"
|
kubeNodePortLocalSetUDP = "KUBE-NODE-PORT-LOCAL-UDP"
|
||||||
|
|
||||||
// This ipset is no longer active but still used in previous versions.
|
|
||||||
// DO NOT create an ipset using this name
|
|
||||||
legacyKubeNodePortSetSCTPComment = "Kubernetes nodeport SCTP port for masquerade purpose"
|
|
||||||
legacyKubeNodePortSetSCTP = "KUBE-NODE-PORT-SCTP"
|
|
||||||
|
|
||||||
// This ipset is no longer active but still used in previous versions.
|
|
||||||
// DO NOT create an ipset using this name
|
|
||||||
legacyKubeNodePortLocalSetSCTPComment = "Kubernetes nodeport SCTP port with externalTrafficPolicy=local"
|
|
||||||
legacyKubeNodePortLocalSetSCTP = "KUBE-NODE-PORT-LOCAL-SCTP"
|
|
||||||
|
|
||||||
kubeNodePortSetSCTPComment = "Kubernetes nodeport SCTP port for masquerade purpose with type 'hash ip:port'"
|
kubeNodePortSetSCTPComment = "Kubernetes nodeport SCTP port for masquerade purpose with type 'hash ip:port'"
|
||||||
kubeNodePortSetSCTP = "KUBE-NODE-PORT-SCTP-HASH"
|
kubeNodePortSetSCTP = "KUBE-NODE-PORT-SCTP-HASH"
|
||||||
|
|
||||||
|
@ -17,7 +17,6 @@ go_library(
|
|||||||
"//pkg/apis/core:go_default_library",
|
"//pkg/apis/core:go_default_library",
|
||||||
"//pkg/master/ports:go_default_library",
|
"//pkg/master/ports:go_default_library",
|
||||||
"//pkg/scheduler/apis/config:go_default_library",
|
"//pkg/scheduler/apis/config:go_default_library",
|
||||||
"//staging/src/k8s.io/api/core/v1:go_default_library",
|
|
||||||
"//staging/src/k8s.io/apimachinery/pkg/conversion:go_default_library",
|
"//staging/src/k8s.io/apimachinery/pkg/conversion:go_default_library",
|
||||||
"//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library",
|
"//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library",
|
||||||
"//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
|
"//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
|
||||||
|
@ -20,7 +20,6 @@ import (
|
|||||||
"net"
|
"net"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"k8s.io/api/core/v1"
|
|
||||||
"k8s.io/apimachinery/pkg/runtime"
|
"k8s.io/apimachinery/pkg/runtime"
|
||||||
componentbaseconfigv1alpha1 "k8s.io/component-base/config/v1alpha1"
|
componentbaseconfigv1alpha1 "k8s.io/component-base/config/v1alpha1"
|
||||||
kubeschedulerconfigv1alpha1 "k8s.io/kube-scheduler/config/v1alpha1"
|
kubeschedulerconfigv1alpha1 "k8s.io/kube-scheduler/config/v1alpha1"
|
||||||
@ -30,10 +29,6 @@ import (
|
|||||||
"k8s.io/kubernetes/pkg/master/ports"
|
"k8s.io/kubernetes/pkg/master/ports"
|
||||||
)
|
)
|
||||||
|
|
||||||
// When the --failure-domains scheduler flag is not specified,
|
|
||||||
// DefaultFailureDomains defines the set of label keys used when TopologyKey is empty in PreferredDuringScheduling anti-affinity.
|
|
||||||
var defaultFailureDomains string = v1.LabelHostname + "," + v1.LabelZoneFailureDomain + "," + v1.LabelZoneRegion
|
|
||||||
|
|
||||||
func addDefaultingFuncs(scheme *runtime.Scheme) error {
|
func addDefaultingFuncs(scheme *runtime.Scheme) error {
|
||||||
return RegisterDefaults(scheme)
|
return RegisterDefaults(scheme)
|
||||||
}
|
}
|
||||||
|
@ -46,8 +46,6 @@ type mustMatchPatterns struct {
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
_ SysctlsStrategy = &mustMatchPatterns{}
|
_ SysctlsStrategy = &mustMatchPatterns{}
|
||||||
|
|
||||||
defaultSysctlsPatterns = []string{"*"}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// NewMustMatchPatterns creates a new mustMatchPatterns strategy that will provide validation.
|
// NewMustMatchPatterns creates a new mustMatchPatterns strategy that will provide validation.
|
||||||
|
Loading…
Reference in New Issue
Block a user