mirror of https://github.com/knative/client.git
upgrade to latest dependencies (#1452)
bumping knative.dev/pkg d4505c6...5ae4821:
> 5ae4821 [release-0.26] Source validation fixes (# 2291)
> a49a60e [release-0.26] Add IsNum to true when set `-0` to minimumVersion.Pre (# 2290)
> 4857ab6 new k8s min version is 1.20 (# 2283)
bumping knative.dev/eventing 316e14d...dcb0aea:
> dcb0aea Add record events to released images (# 5734)
> 24d102d Ce overrides validation (# 5730)
> 9e66fc9 Adding all resources for NOOP migrator (# 5694)
> ef48133 KReference mapping experimental feature (# 5599)
> 407f3cb Update community files (# 5739)
> 7e80074 Update actions (# 5740)
> 21155e9 Enhance DLQ CloudEvents with destination (# 5727)
> deafb9b fixing error message (# 5735)
> cf630ed 💫 Adding 1.22 k8s to GH Actions (# 5737)
> 495814c upgrade to latest dependencies (# 5732)
> 0260d8b Dropping k8s 1.19 as that is unsupported (# 5736)
> f568fd9 Cleaning up v1b1 testing (# 5733)
> 20ec9f7 Like serving use generatedName (# 5664)
> 7c7bd9a Update community files (# 5731)
> 602ea29 Adopt `app.kubernetes.io` labels (# 5628)
> 372e821 Increase MaxNamespaceSkip in test runner (# 5722)
> c2910fd Update resources test to use latest PingSource API (# 5729)
> 10804a2 Remove outdated GCP channel from test flag example listing (# 5728)
> 7266621 upgrade to latest dependencies (# 5723)
bumping knative.dev/serving 33aeffc...2858ef6:
> 2858ef6 Update net-istio nightly (# 12013)
> 1812d3b Wire up MeshCompatibilityMode to ConfigMap property (# 11999)
> de7b0e6 Remove TODO comment for # 1178 (# 12012)
> 5792a5c Update net-contour nightly (# 12009)
> c7aa8f7 Update net-certmanager nightly (# 12007)
> f552122 Rework timeout handler tests with a fake clock (# 12002)
> feebf71 drop deprecated imageDigest property (# 11994)
> afd5297 Update net-kourier nightly (# 12008)
> 1b945a0 Update community files (# 12004)
> c1e4685 Update actions (# 12005)
> 583b182 Add details when bad service account names are used (# 11883)
> 610762a Adding Route GET and LIST Conformance test (# 11972)
> 78d1afb Drop K8s 1.19 as it's no longer supported (# 11998)
> 1085dbe Update net-kourier nightly (# 11991)
> e359985 Update net-certmanager nightly (# 12001)
> a4fa6f8 Update net-contour nightly (# 11989)
> bdd45e2 Update net-istio nightly (# 12000)
> 8f8b701 Copy healthyPods set to avoid concurrent map access (# 11993)
> 0f57579 upgrade to latest dependencies (# 11996)
> 7e6d9f3 Update community files (# 11995)
> 76cb92b Update net-istio nightly (# 11990)
> 893f477 Add serviceAccountToken via projected volume when concurrency state endpoint set (# 11820)
> 3db5f64 adding revisions test for get and list (# 11948)
> 3e175ca Update net-kourier nightly (# 11985)
> 52f9ff3 Update net-contour nightly (# 11984)
> 279014d Teach activator about mesh compatibility modes (# 11976)
> 2990cf0 Drop redundant queue-proxy startup probe (# 11965)
> fa36988 Speed up concurrency state implementation (# 11909)
bumping knative.dev/networking eb37d69...69ad454:
> 69ad454 upgrade to latest dependencies (# 510)
> 3b9592c Add mesh-compatibility-mode to network config map (# 509)
Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
parent
e89bdc7d51
commit
d669111151
8
go.mod
8
go.mod
|
|
@ -18,10 +18,10 @@ require (
|
|||
k8s.io/cli-runtime v0.21.4
|
||||
k8s.io/client-go v0.21.4
|
||||
k8s.io/code-generator v0.21.4
|
||||
knative.dev/eventing v0.25.1-0.20210909163359-316e14d7fbc2
|
||||
knative.dev/eventing v0.25.1-0.20210917075131-dcb0aea20724
|
||||
knative.dev/hack v0.0.0-20210806075220-815cd312d65c
|
||||
knative.dev/networking v0.0.0-20210910120730-eb37d69eb87f
|
||||
knative.dev/pkg v0.0.0-20210909165259-d4505c660535
|
||||
knative.dev/serving v0.25.1-0.20210913112533-33aeffc6c9e2
|
||||
knative.dev/networking v0.0.0-20210914225408-69ad45454096
|
||||
knative.dev/pkg v0.0.0-20210919202233-5ae482141474
|
||||
knative.dev/serving v0.25.1-0.20210917135332-2858ef6185db
|
||||
sigs.k8s.io/yaml v1.2.0
|
||||
)
|
||||
|
|
|
|||
21
go.sum
21
go.sum
|
|
@ -1722,22 +1722,23 @@ k8s.io/legacy-cloud-providers v0.21.0/go.mod h1:bNxo7gDg+PGkBmT/MFZswLTWdSWK9kAl
|
|||
k8s.io/utils v0.0.0-20201110183641-67b214c5f920/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
|
||||
k8s.io/utils v0.0.0-20210111153108-fddb29f9d009 h1:0T5IaWHO3sJTEmCP6mUlBvMukxPKUQWqiI/YuiBNMiQ=
|
||||
k8s.io/utils v0.0.0-20210111153108-fddb29f9d009/go.mod h1:jPW/WVKK9YHAvNhRxK0md/EJ228hCsBRufyofKtW8HA=
|
||||
knative.dev/caching v0.0.0-20210910063632-a51cf6760e00/go.mod h1:PMt1PGfOsjGpIj0m6QWIfutn+5mY4WPGf3q4MP6oFf0=
|
||||
knative.dev/eventing v0.25.1-0.20210909163359-316e14d7fbc2 h1:WKCQDScAr1eP6w1vrl6mwvrIN3wiMLpOg4w17fAFYWw=
|
||||
knative.dev/eventing v0.25.1-0.20210909163359-316e14d7fbc2/go.mod h1:TIwKUgnYc56nHR/pUcEOXGey8iWiGgcWZymp7CO7VpA=
|
||||
knative.dev/caching v0.0.0-20210914230307-0184eb914a42/go.mod h1:bGtv+kY2eDR7VJMUEKMzSeLhsVyoeiXrxv4RvOTb7Jw=
|
||||
knative.dev/eventing v0.25.1-0.20210917075131-dcb0aea20724 h1:pyIFrpt1e4L5c1mf7jnbASXOYPKRW4OccIflDei0Svw=
|
||||
knative.dev/eventing v0.25.1-0.20210917075131-dcb0aea20724/go.mod h1:g0s/qQp4wLhKiJM3xJlLUVpp9gpfYhhrjy2qF2o15GY=
|
||||
knative.dev/hack v0.0.0-20210622141627-e28525d8d260/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
|
||||
knative.dev/hack v0.0.0-20210806075220-815cd312d65c h1:nOXoDWAAItwr4o0dp3nHr6skgpVD4IvME/UX84YNl5k=
|
||||
knative.dev/hack v0.0.0-20210806075220-815cd312d65c/go.mod h1:PHt8x8yX5Z9pPquBEfIj0X66f8iWkWfR0S/sarACJrI=
|
||||
knative.dev/hack/schema v0.0.0-20210806075220-815cd312d65c/go.mod h1:ffjwmdcrH5vN3mPhO8RrF2KfNnbHeCE2C60A+2cv3U0=
|
||||
knative.dev/networking v0.0.0-20210910120730-eb37d69eb87f h1:FHPmpIrUnJjoI2xBIpxTAvCoh9Y1nNHAOWRSJRJECww=
|
||||
knative.dev/networking v0.0.0-20210910120730-eb37d69eb87f/go.mod h1:Bq/n7aJlzPiieLpB/ndIgZXUJeGf50LXN7AQ/UaL6KA=
|
||||
knative.dev/networking v0.0.0-20210914225408-69ad45454096 h1:Zo8WfetGtm4YPtex9Wo5FQbMNvTAMVuvnlZtWcZZFm0=
|
||||
knative.dev/networking v0.0.0-20210914225408-69ad45454096/go.mod h1:nQnVhVss/mFwL6E52vS01Qo0j9/mHTi9UUoETx8BRF0=
|
||||
knative.dev/pkg v0.0.0-20210803160015-21eb4c167cc5/go.mod h1:RPk5txNA3apR9X40D4MpUOP9/VqOG8CrtABWfOwGVS4=
|
||||
knative.dev/pkg v0.0.0-20210909102158-d569db39a812/go.mod h1:jMSqkNMsrzuy+XR4Yr/BMy7SDVbUOl3KKB6+5MR+ZU8=
|
||||
knative.dev/pkg v0.0.0-20210909165259-d4505c660535 h1:1bbKs8NGGodV0LjOyn6s5lo+oAJ/9KtTURUZtpRxr60=
|
||||
knative.dev/pkg v0.0.0-20210909165259-d4505c660535/go.mod h1:jMSqkNMsrzuy+XR4Yr/BMy7SDVbUOl3KKB6+5MR+ZU8=
|
||||
knative.dev/pkg v0.0.0-20210914164111-4857ab6939e3/go.mod h1:jMSqkNMsrzuy+XR4Yr/BMy7SDVbUOl3KKB6+5MR+ZU8=
|
||||
knative.dev/pkg v0.0.0-20210915183108-52b0e2938ecb/go.mod h1:jMSqkNMsrzuy+XR4Yr/BMy7SDVbUOl3KKB6+5MR+ZU8=
|
||||
knative.dev/pkg v0.0.0-20210919202233-5ae482141474 h1:anlUJXoxJvI2U1Fd69mV9uv6d7XvhAgb0zP+FoChP7k=
|
||||
knative.dev/pkg v0.0.0-20210919202233-5ae482141474/go.mod h1:jMSqkNMsrzuy+XR4Yr/BMy7SDVbUOl3KKB6+5MR+ZU8=
|
||||
knative.dev/reconciler-test v0.0.0-20210820180205-a25de6a08087/go.mod h1:+Kovy+G5zXZNcuO/uB+zfo37vFKZzsLIlWezt/nKMz0=
|
||||
knative.dev/serving v0.25.1-0.20210913112533-33aeffc6c9e2 h1:KeBA8Ls2lprv51I2wOg171icGBN8TBt9j3CBSofMsjw=
|
||||
knative.dev/serving v0.25.1-0.20210913112533-33aeffc6c9e2/go.mod h1:GqSjSPq0d0E3P8RgwWE2yWaDCwAMUdz81xSXwVBbds0=
|
||||
knative.dev/serving v0.25.1-0.20210917135332-2858ef6185db h1:sDLXdG03oV0OLCHoqrNWRyUDqSlSRIEqhz9p7Bl9uqk=
|
||||
knative.dev/serving v0.25.1-0.20210917135332-2858ef6185db/go.mod h1:eF/IloQeeYbP9+Zp33F/K9Vmy1Qjika8un91sQ1YMPE=
|
||||
pgregory.net/rapid v0.3.3/go.mod h1:UYpPVyjFHzYBGHIxLFoupi8vwk6rXNzRY9OMvVxFIOU=
|
||||
rsc.io/binaryregexp v0.2.0/go.mod h1:qTv7/COck+e2FymRvadv62gMdZztPaShugOCi3I+8D8=
|
||||
rsc.io/quote/v3 v3.1.0/go.mod h1:yEA65RcK8LyAZtP9Kv3t0HmxON59tX3rD+tICJqUlj0=
|
||||
|
|
|
|||
|
|
@ -19,4 +19,5 @@ package feature
|
|||
const (
|
||||
KReferenceGroup = "kreference-group"
|
||||
DeliveryTimeout = "delivery-timeout"
|
||||
KReferenceMapping = "kreference-mapping"
|
||||
)
|
||||
|
|
|
|||
|
|
@ -72,6 +72,6 @@ func (cs *ApiServerSourceSpec) Validate(ctx context.Context) *apis.FieldError {
|
|||
errs = errs.Also(apis.ErrMissingField("kind").ViaField("owner"))
|
||||
}
|
||||
}
|
||||
|
||||
errs = errs.Also(cs.SourceSpec.Validate(ctx))
|
||||
return errs
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,6 +44,7 @@ func (cs *ContainerSourceSpec) Validate(ctx context.Context) *apis.FieldError {
|
|||
}
|
||||
}
|
||||
}
|
||||
errs = errs.Also(cs.SourceSpec.Validate(ctx))
|
||||
return errs
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@ func (cs *PingSourceSpec) Validate(ctx context.Context) *apis.FieldError {
|
|||
}
|
||||
}
|
||||
}
|
||||
errs = errs.Also(cs.SourceSpec.Validate(ctx))
|
||||
return errs
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ func (fb *SinkBinding) Validate(ctx context.Context) *apis.FieldError {
|
|||
|
||||
// Validate implements apis.Validatable
|
||||
func (fbs *SinkBindingSpec) Validate(ctx context.Context) *apis.FieldError {
|
||||
return fbs.Subject.Validate(ctx).ViaField("subject").Also(
|
||||
err := fbs.Subject.Validate(ctx).ViaField("subject").Also(
|
||||
fbs.Sink.Validate(ctx).ViaField("sink"))
|
||||
err = err.Also(fbs.SourceSpec.Validate(ctx))
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -94,6 +94,7 @@ func (cs *PingSourceSpec) Validate(ctx context.Context) *apis.FieldError {
|
|||
}
|
||||
}
|
||||
}
|
||||
errs = errs.Also(cs.SourceSpec.Validate(ctx))
|
||||
return errs
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -181,6 +181,9 @@ const (
|
|||
// EnableMeshPodAddressabilityKey is the config for enabling pod addressability in mesh.
|
||||
EnableMeshPodAddressabilityKey = "enable-mesh-pod-addressability"
|
||||
|
||||
// MeshCompatibilityModeKey is the config for selecting the mesh compatibility mode.
|
||||
MeshCompatibilityModeKey = "mesh-compatibility-mode"
|
||||
|
||||
// DefaultExternalSchemeKey is the config for defining the scheme of external URLs.
|
||||
DefaultExternalSchemeKey = "defaultExternalScheme"
|
||||
)
|
||||
|
|
@ -263,6 +266,12 @@ type Config struct {
|
|||
// accordingly, i.e. to drop fallback solutions for non-pod-addressable systems.
|
||||
EnableMeshPodAddressability bool
|
||||
|
||||
// MeshCompatibilityMode specifies whether consumers, such as Knative Serving, should
|
||||
// attempt to directly contact pods via their IP (most efficient), or should
|
||||
// use the Cluster IP (less efficient, but needed if mesh is enabled unless
|
||||
// the EnableMeshPodAddressability option is enabled).
|
||||
MeshCompatibilityMode MeshCompatibilityMode
|
||||
|
||||
// DefaultExternalScheme defines the scheme used in external URLs if AutoTLS is
|
||||
// not enabled. Defaults to "http".
|
||||
DefaultExternalScheme string
|
||||
|
|
@ -283,6 +292,32 @@ const (
|
|||
HTTPRedirected HTTPProtocol = "redirected"
|
||||
)
|
||||
|
||||
// MeshCompatibilityMode is one of enabled (always use ClusterIP), disabled
|
||||
// (always use Pod IP), or auto (try PodIP, and fall back to ClusterIP if mesh
|
||||
// is detected).
|
||||
type MeshCompatibilityMode string
|
||||
|
||||
const (
|
||||
// MeshCompatibilityModeEnabled instructs consumers of network plugins, such as
|
||||
// Knative Serving, to use ClusterIP when connecting to pods. This is
|
||||
// required when mesh is enabled (unless EnableMeshPodAddressability is set),
|
||||
// but is less efficient.
|
||||
MeshCompatibilityModeEnabled MeshCompatibilityMode = "enabled"
|
||||
|
||||
// MeshCompatibilityModeDisabled instructs consumers of network plugins, such as
|
||||
// Knative Serving, to connect to individual Pod IPs. This is most efficient,
|
||||
// but will only work with mesh enabled when EnableMeshPodAddressability is
|
||||
// used.
|
||||
MeshCompatibilityModeDisabled MeshCompatibilityMode = "disabled"
|
||||
|
||||
// MeshCompatibilityModeAuto instructs consumers of network plugins, such as
|
||||
// Knative Serving, to heuristically determine whether to connect using the
|
||||
// Cluster IP, or to ocnnect to individual Pod IPs. This is most efficient,
|
||||
// determine whether mesh is enabled, and fall back from Direct Pod IP
|
||||
// communication to Cluster IP as needed.
|
||||
MeshCompatibilityModeAuto MeshCompatibilityMode = "auto"
|
||||
)
|
||||
|
||||
func defaultConfig() *Config {
|
||||
return &Config{
|
||||
DefaultIngressClass: IstioIngressClassName,
|
||||
|
|
@ -293,6 +328,7 @@ func defaultConfig() *Config {
|
|||
HTTPProtocol: HTTPEnabled,
|
||||
AutocreateClusterDomainClaims: false,
|
||||
DefaultExternalScheme: "http",
|
||||
MeshCompatibilityMode: MeshCompatibilityModeAuto,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -315,6 +351,7 @@ func NewConfigFromMap(data map[string]string) (*Config, error) {
|
|||
cm.AsBool(AutocreateClusterDomainClaimsKey, &nc.AutocreateClusterDomainClaims),
|
||||
cm.AsBool(EnableMeshPodAddressabilityKey, &nc.EnableMeshPodAddressability),
|
||||
cm.AsString(DefaultExternalSchemeKey, &nc.DefaultExternalScheme),
|
||||
asMode(MeshCompatibilityModeKey, &nc.MeshCompatibilityMode),
|
||||
); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
|
@ -503,3 +540,18 @@ func PortNumberForName(sub corev1.EndpointSubset, portName string) (int32, error
|
|||
func IsPotentialMeshErrorResponse(resp *http.Response) bool {
|
||||
return resp.StatusCode == http.StatusServiceUnavailable || resp.StatusCode == http.StatusBadGateway
|
||||
}
|
||||
|
||||
// asMode parses the value at key as a MeshCompatibilityMode into the target, if it exists.
|
||||
func asMode(key string, target *MeshCompatibilityMode) cm.ParseFunc {
|
||||
return func(data map[string]string) error {
|
||||
if raw, ok := data[key]; ok {
|
||||
for _, flag := range []MeshCompatibilityMode{MeshCompatibilityModeEnabled, MeshCompatibilityModeDisabled, MeshCompatibilityModeAuto} {
|
||||
if strings.EqualFold(raw, string(flag)) {
|
||||
*target = flag
|
||||
return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -180,6 +180,9 @@ func (s *Source) Validate(ctx context.Context) *apis.FieldError {
|
|||
}
|
||||
|
||||
func (s *SourceSpec) Validate(ctx context.Context) *apis.FieldError {
|
||||
if s.CloudEventOverrides == nil {
|
||||
return nil
|
||||
}
|
||||
return s.CloudEventOverrides.Validate(ctx).ViaField("ceOverrides")
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -331,8 +331,8 @@ func ValidatePodSpec(ctx context.Context, ps corev1.PodSpec) *apis.FieldError {
|
|||
errs = errs.Also(validateContainers(ctx, ps.Containers, volumes))
|
||||
}
|
||||
if ps.ServiceAccountName != "" {
|
||||
for range validation.IsDNS1123Subdomain(ps.ServiceAccountName) {
|
||||
errs = errs.Also(apis.ErrInvalidValue(ps.ServiceAccountName, "serviceAccountName"))
|
||||
for _, err := range validation.IsDNS1123Subdomain(ps.ServiceAccountName) {
|
||||
errs = errs.Also(apis.ErrInvalidValue(ps.ServiceAccountName, "serviceAccountName", err))
|
||||
}
|
||||
}
|
||||
return errs
|
||||
|
|
|
|||
|
|
@ -128,19 +128,6 @@ type RevisionStatus struct {
|
|||
// +optional
|
||||
LogURL string `json:"logUrl,omitempty"`
|
||||
|
||||
// DeprecatedImageDigest holds the resolved digest for the image specified
|
||||
// within .Spec.Container.Image. The digest is resolved during the creation
|
||||
// of Revision. This field holds the digest value regardless of whether
|
||||
// a tag or digest was originally specified in the Container object. It
|
||||
// may be empty if the image comes from a registry listed to skip resolution.
|
||||
// If multiple containers specified then DeprecatedImageDigest holds the digest
|
||||
// for serving container.
|
||||
// DEPRECATED: Use ContainerStatuses instead.
|
||||
// TODO(savitaashture) Remove deprecatedImageDigest.
|
||||
// ref https://kubernetes.io/docs/reference/using-api/deprecation-policy for deprecation.
|
||||
// +optional
|
||||
DeprecatedImageDigest string `json:"imageDigest,omitempty"`
|
||||
|
||||
// ContainerStatuses is a slice of images present in .Spec.Container[*].Image
|
||||
// to their respective digests and their container name.
|
||||
// The digests are resolved during the creation of Revision.
|
||||
|
|
|
|||
|
|
@ -727,7 +727,7 @@ k8s.io/utils/buffer
|
|||
k8s.io/utils/integer
|
||||
k8s.io/utils/pointer
|
||||
k8s.io/utils/trace
|
||||
# knative.dev/eventing v0.25.1-0.20210909163359-316e14d7fbc2
|
||||
# knative.dev/eventing v0.25.1-0.20210917075131-dcb0aea20724
|
||||
## explicit
|
||||
knative.dev/eventing/pkg/apis/config
|
||||
knative.dev/eventing/pkg/apis/duck
|
||||
|
|
@ -756,7 +756,7 @@ knative.dev/eventing/pkg/client/clientset/versioned/typed/sources/v1beta2/fake
|
|||
# knative.dev/hack v0.0.0-20210806075220-815cd312d65c
|
||||
## explicit
|
||||
knative.dev/hack
|
||||
# knative.dev/networking v0.0.0-20210910120730-eb37d69eb87f
|
||||
# knative.dev/networking v0.0.0-20210914225408-69ad45454096
|
||||
## explicit
|
||||
knative.dev/networking/pkg
|
||||
knative.dev/networking/pkg/apis/networking
|
||||
|
|
@ -764,7 +764,7 @@ knative.dev/networking/pkg/apis/networking/v1alpha1
|
|||
knative.dev/networking/pkg/client/clientset/versioned
|
||||
knative.dev/networking/pkg/client/clientset/versioned/scheme
|
||||
knative.dev/networking/pkg/client/clientset/versioned/typed/networking/v1alpha1
|
||||
# knative.dev/pkg v0.0.0-20210909165259-d4505c660535
|
||||
# knative.dev/pkg v0.0.0-20210919202233-5ae482141474
|
||||
## explicit
|
||||
knative.dev/pkg/apis
|
||||
knative.dev/pkg/apis/duck
|
||||
|
|
@ -814,7 +814,7 @@ knative.dev/pkg/tracing/propagation
|
|||
knative.dev/pkg/tracing/propagation/tracecontextb3
|
||||
knative.dev/pkg/tracker
|
||||
knative.dev/pkg/unstructured
|
||||
# knative.dev/serving v0.25.1-0.20210913112533-33aeffc6c9e2
|
||||
# knative.dev/serving v0.25.1-0.20210917135332-2858ef6185db
|
||||
## explicit
|
||||
knative.dev/serving/pkg/apis/autoscaling
|
||||
knative.dev/serving/pkg/apis/autoscaling/v1alpha1
|
||||
|
|
|
|||
Loading…
Reference in New Issue