mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
rebase: bump k8s.io/kubernetes from 1.26.2 to 1.27.2
Bumps [k8s.io/kubernetes](https://github.com/kubernetes/kubernetes) from 1.26.2 to 1.27.2. - [Release notes](https://github.com/kubernetes/kubernetes/releases) - [Commits](https://github.com/kubernetes/kubernetes/compare/v1.26.2...v1.27.2) --- updated-dependencies: - dependency-name: k8s.io/kubernetes dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
mergify[bot]
parent
0e79135419
commit
07b05616a0
go.modgo.summodules.txt
vendor
github.com
NYTimes
gziphandler
antlr
antlr4
runtime
Go
antlr
LICENSEatn.goatn_config.goatn_config_set.goatn_deserialization_options.goatn_deserializer.goatn_simulator.goatn_state.goatn_type.gochar_stream.gocommon_token_factory.gocommon_token_stream.godfa.godfa_serializer.godfa_state.godiagnostic_error_listener.goerror_listener.goerror_strategy.goerrors.gofile_stream.goinput_stream.goint_stream.gointerval_set.golexer.golexer_action.golexer_action_executor.golexer_atn_simulator.goll1_analyzer.goparser.goparser_atn_simulator.goparser_rule_context.goprediction_context.goprediction_mode.gorecognizer.gorule_context.gosemantic_context.gotoken.gotoken_source.gotoken_stream.gotokenstream_rewriter.gotrace_listener.gotransition.gotree.gotrees.goutils.goutils_set.go
aws
aws-sdk-go
private
protocol
ec2query
service
coreos
go-semver
go-systemd
go-openapi
gogo
protobuf
gogoproto
protoc-gen-gogo
google
cel-go
LICENSE
cel
checker
common
BUILD.bazel
containers
cost.godebug
doc.goerror.goerrors.golocation.gooperators
overloads
runes
source.gotypes
BUILD.bazelany_value.gobool.gobytes.gocompare.godoc.godouble.goduration.goerr.goint.goiterator.gojson_value.golist.gomap.gonull.goobject.gooverflow.go
pb
provider.goref
string.gotimestamp.gotraits
BUILD.bazelcomparer.gocontainer.gofield_tester.goindexer.goiterator.golister.gomapper.gomatcher.gomath.goreceiver.gosizer.gotraits.go
type.gouint.gounknown.goutil.goext
interpreter
BUILD.bazelactivation.goattribute_patterns.goattributes.gocoster.godecorators.godispatcher.goevalstate.go
functions
interpretable.gointerpreter.gooptimizations.goplanner.goprune.goruntimecost.goparser
onsi
gomega
gcustom
stoewer
go.etcd.io
etcd
api
v3
client
pkg
v3
LICENSE
fileutil
dir_unix.godir_windows.godoc.gofilereader.gofileutil.golock.golock_flock.golock_linux.golock_plan9.golock_solaris.golock_unix.golock_windows.gopreallocate.gopreallocate_darwin.gopreallocate_unix.gopreallocate_unsupported.gopurge.goread_dir.gosync.gosync_darwin.gosync_linux.go
logutil
systemd
tlsutil
transport
doc.gokeepalive_listener.golimit_listen.golistener.golistener_opts.golistener_tls.gosockopt.gosockopt_solaris.gosockopt_unix.gosockopt_windows.gotimeout_conn.gotimeout_dialer.gotimeout_listener.gotimeout_transport.gotls.gotransport.gounix_listener.go
types
v3
go.opentelemetry.io
contrib
instrumentation
google.golang.org
grpc
net
http
otelhttp
go.uber.org
zap
zapgrpc
golang.org
x
crypto
cryptobyte
nacl
secretbox
salsa20
net
sync
text
google.golang.org
genproto
googleapis
grpc
resolver
manual
protobuf
types
gopkg.in
natefinch
k8s.io
apimachinery
pkg
apis
meta
util
waitgroup
apiserver
pkg
admission
cel
plugin
namespace
lifecycle
validatingadmissionpolicy
OWNERSadmission.gocompiler.gocontroller.gocontroller_reconcile.goinitializer.gointerface.go
internal
matching
policy_decision.govalidator.gowebhook
validating
apis
audit
config
doc.goregister.gotypes.go
v1
defaults.godoc.goregister.gotypes.gozz_generated.conversion.gozz_generated.deepcopy.gozz_generated.defaults.go
validation
zz_generated.deepcopy.goflowcontrol
bootstrap
audit
authentication
authenticator
authenticatorfactory
group
request
anonymous
bearertoken
headerrequest
union
websocket
x509
serviceaccount
token
authorization
cel
endpoints
deprecation
discovery
doc.gofilterlatency
filters
OWNERSaudit.goaudit_init.goauthentication.goauthn_audit.goauthorization.gocachecontrol.godoc.goimpersonation.gometrics.gomux_discovery_complete.gorequest_deadline.gorequest_received_time.gorequestinfo.gostorageversion.gotraces.gowarning.gowebhook_duration.go
groupversion.gohandlers
create.godelete.godoc.go
installer.gofieldmanager
OWNERSadmission.gobuildmanagerinfo.gocapmanagers.goendpoints.yamlequality.gofieldmanager.go
internal
lastappliedmanager.golastappliedupdater.gomanagedfieldsupdater.gonode.yamlpod.yamlscalehandler.goskipnonapplied.gostripmeta.gostructuredmerge.gotypeconverter.goversionconverter.gofinisher
get.gohelpers.gometrics
namer.gonegotiation
patch.goresponse.goresponsewriters
rest.gotrace_util.goupdate.gowatch.gometrics
openapi
responsewriter
warning
registry
server
config.goconfig_selfclient.godeleted_kinds.godeprecated_insecure_serving.godoc.go
dynamiccertificates
cert_key.goclient_ca.goconfigmap_cafile_content.godynamic_cafile_content.godynamic_serving_content.godynamic_sni_content.gointerfaces.gonamed_certificates.gostatic_content.gotlsconfig.gounion_content.goutil.go
filters
OWNERScontent_type.gocors.godoc.gogoaway.gohsts.golongrunning.gomaxinflight.gopriority-and-fairness.gotimeout.gowaitgroup.gowith_retry_after.gowrap.go
genericapiserver.gohandler.gohealthz.gohealthz
hooks.gohttplog
lifecycle_signals.gomux
options
OWNERSadmission.goapi_enablement.goaudit.goauthentication.goauthentication_dynamic_request_header.goauthorization.gocoreapi.godeprecated_insecure_serving.godoc.goegress_selector.go
plugins.goencryptionconfig
etcd.gofeature.gorecommended.goserver_run_options.goserving.goserving_unix.goserving_windows.goserving_with_loopback.gotracing.goresourceconfig
routes
secure_serving.gosignal.gosignal_posix.gosignal_windows.gostorage
storage
OWNERSapi_object_versioner.go
cacher
continue.godoc.goerrors.goerrors
etcd3
OWNERScompact.goerrors.goevent.gohealthcheck.golatency_tracker.golease_manager.gologger.go
interfaces.goselection_predicate.gometrics
store.gowatcher.gostoragebackend
util.govalue
OWNERS
encrypt
metrics.gotransformer.gostorageversion
util
apihelpers
dryrun
flowcontrol
OWNERSapf_context.goapf_controller.goapf_controller_debug.goapf_filter.goconc_alloc.go
debug
fairqueuing
format
formatting.gometrics
request
config.golist_work_estimator.gomutating_work_estimator.goobject_count_tracker.goseat_seconds.gowidth.go
rule.gowatch_tracker.goflushwriter
openapi
shufflesharding
wsstream
plugin
pkg
audit
authenticator
token
webhook
authorizer
client-go
dynamic
cloud-provider
app
config
config
doc.go
install
register.gotypes.gov1alpha1
conversion.godefaults.godoc.goregister.gotypes.gozz_generated.conversion.gozz_generated.deepcopy.gozz_generated.defaults.go
zz_generated.deepcopy.gocontrollers
service
options
component-base
config
options
logs
metrics
controller-manager
LICENSE
config
options
pkg
clientbuilder
features
leadermigration
kms
kube-openapi
pkg
builder
builder3
cached
common
common.go
restfuladapter
handler
handler3
internal
schemaconv
spec3
encoding.goexample.goexternal_documentation.gofuzz.goheader.gomedia_type.gooperation.goparameter.gopath.gorequest_body.goresponse.gosecurity_requirement.gosecurity_scheme.goserver.gospec.go
util
validation
kubelet
pkg
kubernetes
pkg
api
apis
apps
autoscaling
batch
core
extensions
networking
policy
client
conditions
cluster
ports
controller
features
fieldpath
kubelet
proxy
securitycontext
volume
test
e2e
framework
.import-restrictionsOWNERSREADME.md
config
debug
expect.goframework.goget.goginkgowrapper.gointernal
junit
kubectl
log.gometrics
namespacedname.gonode
pod
.import-restrictionscreate.godelete.godial.goexec_util.goget.go
provider.gooutput
pod_client.goresource.goutils.gowait.gopv
skipper
ssh
test_context.gotestfiles
timeouts.goutil.govolume
storage
testing-manifests
utils
utils
lru
sigs.k8s.io
apiserver-network-proxy
konnectivity-client
json
structured-merge-diff
v4
merge
217
vendor/github.com/google/cel-go/interpreter/interpreter.go
generated
vendored
Normal file
217
vendor/github.com/google/cel-go/interpreter/interpreter.go
generated
vendored
Normal file
@ -0,0 +1,217 @@
|
||||
// Copyright 2018 Google LLC
|
||||
//
|
||||
// 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 interpreter provides functions to evaluate parsed expressions with
|
||||
// the option to augment the evaluation with inputs and functions supplied at
|
||||
// evaluation time.
|
||||
package interpreter
|
||||
|
||||
import (
|
||||
"github.com/google/cel-go/common/containers"
|
||||
"github.com/google/cel-go/common/types/ref"
|
||||
"github.com/google/cel-go/interpreter/functions"
|
||||
|
||||
exprpb "google.golang.org/genproto/googleapis/api/expr/v1alpha1"
|
||||
)
|
||||
|
||||
// Interpreter generates a new Interpretable from a checked or unchecked expression.
|
||||
type Interpreter interface {
|
||||
// NewInterpretable creates an Interpretable from a checked expression and an
|
||||
// optional list of InterpretableDecorator values.
|
||||
NewInterpretable(checked *exprpb.CheckedExpr,
|
||||
decorators ...InterpretableDecorator) (Interpretable, error)
|
||||
|
||||
// NewUncheckedInterpretable returns an Interpretable from a parsed expression
|
||||
// and an optional list of InterpretableDecorator values.
|
||||
NewUncheckedInterpretable(expr *exprpb.Expr,
|
||||
decorators ...InterpretableDecorator) (Interpretable, error)
|
||||
}
|
||||
|
||||
// EvalObserver is a functional interface that accepts an expression id and an observed value.
|
||||
// The id identifies the expression that was evaluated, the programStep is the Interpretable or Qualifier that
|
||||
// was evaluated and value is the result of the evaluation.
|
||||
type EvalObserver func(id int64, programStep interface{}, value ref.Val)
|
||||
|
||||
// Observe constructs a decorator that calls all the provided observers in order after evaluating each Interpretable
|
||||
// or Qualifier during program evaluation.
|
||||
func Observe(observers ...EvalObserver) InterpretableDecorator {
|
||||
if len(observers) == 1 {
|
||||
return decObserveEval(observers[0])
|
||||
}
|
||||
observeFn := func(id int64, programStep interface{}, val ref.Val) {
|
||||
for _, observer := range observers {
|
||||
observer(id, programStep, val)
|
||||
}
|
||||
}
|
||||
return decObserveEval(observeFn)
|
||||
}
|
||||
|
||||
// EvalCancelledError represents a cancelled program evaluation operation.
|
||||
type EvalCancelledError struct {
|
||||
Message string
|
||||
// Type identifies the cause of the cancellation.
|
||||
Cause CancellationCause
|
||||
}
|
||||
|
||||
func (e EvalCancelledError) Error() string {
|
||||
return e.Message
|
||||
}
|
||||
|
||||
// CancellationCause enumerates the ways a program evaluation operation can be cancelled.
|
||||
type CancellationCause int
|
||||
|
||||
const (
|
||||
// ContextCancelled indicates that the operation was cancelled in response to a Golang context cancellation.
|
||||
ContextCancelled CancellationCause = iota
|
||||
|
||||
// CostLimitExceeded indicates that the operation was cancelled in response to the actual cost limit being
|
||||
// exceeded.
|
||||
CostLimitExceeded
|
||||
)
|
||||
|
||||
// TODO: Replace all usages of TrackState with EvalStateObserver
|
||||
|
||||
// TrackState decorates each expression node with an observer which records the value
|
||||
// associated with the given expression id. EvalState must be provided to the decorator.
|
||||
// This decorator is not thread-safe, and the EvalState must be reset between Eval()
|
||||
// calls.
|
||||
// DEPRECATED: Please use EvalStateObserver instead. It composes gracefully with additional observers.
|
||||
func TrackState(state EvalState) InterpretableDecorator {
|
||||
return Observe(EvalStateObserver(state))
|
||||
}
|
||||
|
||||
// EvalStateObserver provides an observer which records the value
|
||||
// associated with the given expression id. EvalState must be provided to the observer.
|
||||
// This decorator is not thread-safe, and the EvalState must be reset between Eval()
|
||||
// calls.
|
||||
func EvalStateObserver(state EvalState) EvalObserver {
|
||||
return func(id int64, programStep interface{}, val ref.Val) {
|
||||
state.SetValue(id, val)
|
||||
}
|
||||
}
|
||||
|
||||
// ExhaustiveEval replaces operations that short-circuit with versions that evaluate
|
||||
// expressions and couples this behavior with the TrackState() decorator to provide
|
||||
// insight into the evaluation state of the entire expression. EvalState must be
|
||||
// provided to the decorator. This decorator is not thread-safe, and the EvalState
|
||||
// must be reset between Eval() calls.
|
||||
func ExhaustiveEval() InterpretableDecorator {
|
||||
ex := decDisableShortcircuits()
|
||||
return func(i Interpretable) (Interpretable, error) {
|
||||
return ex(i)
|
||||
}
|
||||
}
|
||||
|
||||
// InterruptableEval annotates comprehension loops with information that indicates they
|
||||
// should check the `#interrupted` state within a custom Activation.
|
||||
//
|
||||
// The custom activation is currently managed higher up in the stack within the 'cel' package
|
||||
// and should not require any custom support on behalf of callers.
|
||||
func InterruptableEval() InterpretableDecorator {
|
||||
return decInterruptFolds()
|
||||
}
|
||||
|
||||
// Optimize will pre-compute operations such as list and map construction and optimize
|
||||
// call arguments to set membership tests. The set of optimizations will increase over time.
|
||||
func Optimize() InterpretableDecorator {
|
||||
return decOptimize()
|
||||
}
|
||||
|
||||
// RegexOptimization provides a way to replace an InterpretableCall for a regex function when the
|
||||
// RegexIndex argument is a string constant. Typically, the Factory would compile the regex pattern at
|
||||
// RegexIndex and report any errors (at program creation time) and then use the compiled regex for
|
||||
// all regex function invocations.
|
||||
type RegexOptimization struct {
|
||||
// Function is the name of the function to optimize.
|
||||
Function string
|
||||
// OverloadID is the ID of the overload to optimize.
|
||||
OverloadID string
|
||||
// RegexIndex is the index position of the regex pattern argument. Only calls to the function where this argument is
|
||||
// a string constant will be delegated to this optimizer.
|
||||
RegexIndex int
|
||||
// Factory constructs a replacement InterpretableCall node that optimizes the regex function call. Factory is
|
||||
// provided with the unoptimized regex call and the string constant at the RegexIndex argument.
|
||||
// The Factory may compile the regex for use across all invocations of the call, return any errors and
|
||||
// return an interpreter.NewCall with the desired regex optimized function impl.
|
||||
Factory func(call InterpretableCall, regexPattern string) (InterpretableCall, error)
|
||||
}
|
||||
|
||||
// CompileRegexConstants compiles regex pattern string constants at program creation time and reports any regex pattern
|
||||
// compile errors.
|
||||
func CompileRegexConstants(regexOptimizations ...*RegexOptimization) InterpretableDecorator {
|
||||
return decRegexOptimizer(regexOptimizations...)
|
||||
}
|
||||
|
||||
type exprInterpreter struct {
|
||||
dispatcher Dispatcher
|
||||
container *containers.Container
|
||||
provider ref.TypeProvider
|
||||
adapter ref.TypeAdapter
|
||||
attrFactory AttributeFactory
|
||||
}
|
||||
|
||||
// NewInterpreter builds an Interpreter from a Dispatcher and TypeProvider which will be used
|
||||
// throughout the Eval of all Interpretable instances generated from it.
|
||||
func NewInterpreter(dispatcher Dispatcher,
|
||||
container *containers.Container,
|
||||
provider ref.TypeProvider,
|
||||
adapter ref.TypeAdapter,
|
||||
attrFactory AttributeFactory) Interpreter {
|
||||
return &exprInterpreter{
|
||||
dispatcher: dispatcher,
|
||||
container: container,
|
||||
provider: provider,
|
||||
adapter: adapter,
|
||||
attrFactory: attrFactory}
|
||||
}
|
||||
|
||||
// NewStandardInterpreter builds a Dispatcher and TypeProvider with support for all of the CEL
|
||||
// builtins defined in the language definition.
|
||||
func NewStandardInterpreter(container *containers.Container,
|
||||
provider ref.TypeProvider,
|
||||
adapter ref.TypeAdapter,
|
||||
resolver AttributeFactory) Interpreter {
|
||||
dispatcher := NewDispatcher()
|
||||
dispatcher.Add(functions.StandardOverloads()...)
|
||||
return NewInterpreter(dispatcher, container, provider, adapter, resolver)
|
||||
}
|
||||
|
||||
// NewIntepretable implements the Interpreter interface method.
|
||||
func (i *exprInterpreter) NewInterpretable(
|
||||
checked *exprpb.CheckedExpr,
|
||||
decorators ...InterpretableDecorator) (Interpretable, error) {
|
||||
p := newPlanner(
|
||||
i.dispatcher,
|
||||
i.provider,
|
||||
i.adapter,
|
||||
i.attrFactory,
|
||||
i.container,
|
||||
checked,
|
||||
decorators...)
|
||||
return p.Plan(checked.GetExpr())
|
||||
}
|
||||
|
||||
// NewUncheckedIntepretable implements the Interpreter interface method.
|
||||
func (i *exprInterpreter) NewUncheckedInterpretable(
|
||||
expr *exprpb.Expr,
|
||||
decorators ...InterpretableDecorator) (Interpretable, error) {
|
||||
p := newUncheckedPlanner(
|
||||
i.dispatcher,
|
||||
i.provider,
|
||||
i.adapter,
|
||||
i.attrFactory,
|
||||
i.container,
|
||||
decorators...)
|
||||
return p.Plan(expr)
|
||||
}
|
Reference in New Issue
Block a user