mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
rebase: Bump github.com/aws/aws-sdk-go from 1.44.301 to 1.44.307
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.301 to 1.44.307. - [Release notes](https://github.com/aws/aws-sdk-go/releases) - [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.301...v1.44.307) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
mergify[bot]
parent
0f086bead2
commit
a2762b8ed5
7
vendor/k8s.io/kubernetes/pkg/apis/core/validation/validation.go
generated
vendored
7
vendor/k8s.io/kubernetes/pkg/apis/core/validation/validation.go
generated
vendored
@ -4727,7 +4727,14 @@ func ValidatePodUpdate(newPod, oldPod *core.Pod, opts PodValidationOptions) fiel
|
||||
// already effectively nil, no change needed
|
||||
case mungedPodSpec.Affinity == nil && oldNodeAffinity != nil:
|
||||
mungedPodSpec.Affinity = &core.Affinity{NodeAffinity: oldNodeAffinity} // +k8s:verify-mutation:reason=clone
|
||||
case mungedPodSpec.Affinity != nil && oldPod.Spec.Affinity == nil &&
|
||||
mungedPodSpec.Affinity.PodAntiAffinity == nil && mungedPodSpec.Affinity.PodAffinity == nil:
|
||||
// We ensure no other fields are being changed, but the NodeAffinity. If that's the case, and the
|
||||
// old pod's affinity is nil, we set the mungedPodSpec's affinity to nil.
|
||||
mungedPodSpec.Affinity = nil // +k8s:verify-mutation:reason=clone
|
||||
default:
|
||||
// The node affinity is being updated and the old pod Affinity is not nil.
|
||||
// We set the mungedPodSpec's node affinity to the old pod's node affinity.
|
||||
mungedPodSpec.Affinity.NodeAffinity = oldNodeAffinity // +k8s:verify-mutation:reason=clone
|
||||
}
|
||||
}
|
||||
|
4
vendor/k8s.io/kubernetes/test/utils/pki_helpers.go
generated
vendored
4
vendor/k8s.io/kubernetes/test/utils/pki_helpers.go
generated
vendored
@ -53,10 +53,12 @@ func EncodeCertPEM(cert *x509.Certificate) []byte {
|
||||
|
||||
// NewSignedCert creates a signed certificate using the given CA certificate and key
|
||||
func NewSignedCert(cfg *certutil.Config, key crypto.Signer, caCert *x509.Certificate, caKey crypto.Signer) (*x509.Certificate, error) {
|
||||
serial, err := cryptorand.Int(cryptorand.Reader, new(big.Int).SetInt64(math.MaxInt64))
|
||||
// returns a uniform random value in [0, max-1), then add 1 to serial to make it a uniform random value in [1, max).
|
||||
serial, err := cryptorand.Int(cryptorand.Reader, new(big.Int).SetInt64(math.MaxInt64-1))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
serial = new(big.Int).Add(serial, big.NewInt(1))
|
||||
if len(cfg.CommonName) == 0 {
|
||||
return nil, fmt.Errorf("must specify a CommonName")
|
||||
}
|
||||
|
Reference in New Issue
Block a user