From 5cf1e1f04a1faf9402a63f5512c5519b862ebc1d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 12 Apr 2024 14:23:43 +0000 Subject: [PATCH] Bump google.golang.org/grpc in /vertical-pod-autoscaler/e2e Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.54.0 to 1.56.3. - [Release notes](https://github.com/grpc/grpc-go/releases) - [Commits](https://github.com/grpc/grpc-go/compare/v1.54.0...v1.56.3) --- updated-dependencies: - dependency-name: google.golang.org/grpc dependency-type: indirect ... Signed-off-by: dependabot[bot] --- vertical-pod-autoscaler/e2e/go.mod | 14 +- vertical-pod-autoscaler/e2e/go.sum | 35 +- .../go/compute/internal/version.go | 2 +- .../x/crypto/chacha20/chacha_arm64.go | 1 - .../x/crypto/chacha20/chacha_arm64.s | 1 - .../x/crypto/chacha20/chacha_noasm.go | 1 - .../x/crypto/chacha20/chacha_ppc64le.go | 1 - .../x/crypto/chacha20/chacha_ppc64le.s | 1 - .../x/crypto/chacha20/chacha_s390x.go | 1 - .../x/crypto/chacha20/chacha_s390x.s | 1 - .../golang.org/x/crypto/cryptobyte/asn1.go | 13 +- .../curve25519/internal/field/fe_amd64.go | 1 - .../curve25519/internal/field/fe_amd64.s | 1 - .../internal/field/fe_amd64_noasm.go | 1 - .../curve25519/internal/field/fe_arm64.go | 1 - .../curve25519/internal/field/fe_arm64.s | 1 - .../internal/field/fe_arm64_noasm.go | 1 - .../vendor/golang.org/x/crypto/hkdf/hkdf.go | 4 +- .../x/crypto/internal/alias/alias.go | 1 - .../x/crypto/internal/alias/alias_purego.go | 1 - .../x/crypto/internal/poly1305/bits_compat.go | 40 -- .../x/crypto/internal/poly1305/bits_go1.13.go | 22 - .../x/crypto/internal/poly1305/mac_noasm.go | 1 - .../x/crypto/internal/poly1305/sum_amd64.go | 1 - .../x/crypto/internal/poly1305/sum_amd64.s | 1 - .../x/crypto/internal/poly1305/sum_generic.go | 43 +- .../x/crypto/internal/poly1305/sum_ppc64le.go | 1 - .../x/crypto/internal/poly1305/sum_ppc64le.s | 1 - .../x/crypto/internal/poly1305/sum_s390x.go | 1 - .../x/crypto/internal/poly1305/sum_s390x.s | 1 - .../x/crypto/salsa20/salsa/salsa20_amd64.go | 1 - .../x/crypto/salsa20/salsa/salsa20_amd64.s | 1 - .../x/crypto/salsa20/salsa/salsa20_noasm.go | 1 - .../vendor/golang.org/x/crypto/ssh/channel.go | 28 +- .../vendor/golang.org/x/crypto/ssh/client.go | 2 +- .../golang.org/x/crypto/ssh/client_auth.go | 20 +- .../vendor/golang.org/x/crypto/ssh/common.go | 11 +- .../golang.org/x/crypto/ssh/handshake.go | 63 +- .../vendor/golang.org/x/crypto/ssh/keys.go | 19 +- .../vendor/golang.org/x/crypto/ssh/server.go | 27 +- .../vendor/golang.org/x/crypto/ssh/tcpip.go | 35 + .../golang.org/x/crypto/ssh/transport.go | 32 +- .../vendor/golang.org/x/net/context/go17.go | 1 - .../vendor/golang.org/x/net/context/go19.go | 1 - .../golang.org/x/net/context/pre_go17.go | 1 - .../golang.org/x/net/context/pre_go19.go | 1 - .../e2e/vendor/golang.org/x/net/html/token.go | 12 +- .../golang.org/x/net/http2/databuffer.go | 59 +- .../vendor/golang.org/x/net/http2/frame.go | 11 +- .../vendor/golang.org/x/net/http2/go111.go | 30 - .../vendor/golang.org/x/net/http2/go115.go | 27 - .../vendor/golang.org/x/net/http2/go118.go | 17 - .../golang.org/x/net/http2/not_go111.go | 21 - .../golang.org/x/net/http2/not_go115.go | 31 - .../golang.org/x/net/http2/not_go118.go | 17 - .../vendor/golang.org/x/net/http2/server.go | 24 +- .../golang.org/x/net/http2/transport.go | 33 +- .../e2e/vendor/golang.org/x/net/idna/go118.go | 1 - .../golang.org/x/net/idna/idna10.0.0.go | 1 - .../vendor/golang.org/x/net/idna/idna9.0.0.go | 1 - .../vendor/golang.org/x/net/idna/pre_go118.go | 1 - .../golang.org/x/net/idna/tables10.0.0.go | 1 - .../golang.org/x/net/idna/tables11.0.0.go | 1 - .../golang.org/x/net/idna/tables12.0.0.go | 1 - .../golang.org/x/net/idna/tables13.0.0.go | 1 - .../golang.org/x/net/idna/tables15.0.0.go | 1 - .../golang.org/x/net/idna/tables9.0.0.go | 1 - .../golang.org/x/net/idna/trie12.0.0.go | 1 - .../golang.org/x/net/idna/trie13.0.0.go | 1 - .../golang.org/x/sys/cpu/asm_aix_ppc64.s | 1 - .../vendor/golang.org/x/sys/cpu/cpu_aix.go | 1 - .../vendor/golang.org/x/sys/cpu/cpu_arm64.s | 1 - .../golang.org/x/sys/cpu/cpu_gc_arm64.go | 1 - .../golang.org/x/sys/cpu/cpu_gc_s390x.go | 1 - .../vendor/golang.org/x/sys/cpu/cpu_gc_x86.go | 2 - .../golang.org/x/sys/cpu/cpu_gccgo_arm64.go | 1 - .../golang.org/x/sys/cpu/cpu_gccgo_s390x.go | 1 - .../golang.org/x/sys/cpu/cpu_gccgo_x86.c | 2 - .../golang.org/x/sys/cpu/cpu_gccgo_x86.go | 2 - .../vendor/golang.org/x/sys/cpu/cpu_linux.go | 1 - .../golang.org/x/sys/cpu/cpu_linux_mips64x.go | 2 - .../golang.org/x/sys/cpu/cpu_linux_noinit.go | 1 - .../golang.org/x/sys/cpu/cpu_linux_ppc64x.go | 2 - .../golang.org/x/sys/cpu/cpu_loong64.go | 1 - .../golang.org/x/sys/cpu/cpu_mips64x.go | 1 - .../vendor/golang.org/x/sys/cpu/cpu_mipsx.go | 1 - .../golang.org/x/sys/cpu/cpu_other_arm.go | 1 - .../golang.org/x/sys/cpu/cpu_other_arm64.go | 1 - .../golang.org/x/sys/cpu/cpu_other_mips64x.go | 2 - .../golang.org/x/sys/cpu/cpu_other_ppc64x.go | 3 - .../golang.org/x/sys/cpu/cpu_other_riscv64.go | 1 - .../vendor/golang.org/x/sys/cpu/cpu_ppc64x.go | 1 - .../golang.org/x/sys/cpu/cpu_riscv64.go | 1 - .../vendor/golang.org/x/sys/cpu/cpu_s390x.s | 1 - .../vendor/golang.org/x/sys/cpu/cpu_wasm.go | 1 - .../vendor/golang.org/x/sys/cpu/cpu_x86.go | 1 - .../e2e/vendor/golang.org/x/sys/cpu/cpu_x86.s | 2 - .../vendor/golang.org/x/sys/cpu/endian_big.go | 1 - .../golang.org/x/sys/cpu/endian_little.go | 1 - .../x/sys/cpu/proc_cpuinfo_linux.go | 1 - .../x/sys/cpu/runtime_auxv_go121.go | 1 - .../golang.org/x/sys/cpu/syscall_aix_gccgo.go | 1 - .../x/sys/cpu/syscall_aix_ppc64_gc.go | 1 - .../golang.org/x/sys/execabs/execabs_go118.go | 1 - .../golang.org/x/sys/execabs/execabs_go119.go | 1 - .../golang.org/x/sys/plan9/pwd_go15_plan9.go | 1 - .../golang.org/x/sys/plan9/pwd_plan9.go | 1 - .../e2e/vendor/golang.org/x/sys/plan9/race.go | 1 - .../vendor/golang.org/x/sys/plan9/race0.go | 1 - .../e2e/vendor/golang.org/x/sys/plan9/str.go | 1 - .../vendor/golang.org/x/sys/plan9/syscall.go | 1 - .../x/sys/plan9/zsyscall_plan9_386.go | 1 - .../x/sys/plan9/zsyscall_plan9_amd64.go | 1 - .../x/sys/plan9/zsyscall_plan9_arm.go | 1 - .../vendor/golang.org/x/sys/unix/aliases.go | 2 - .../golang.org/x/sys/unix/asm_aix_ppc64.s | 1 - .../golang.org/x/sys/unix/asm_bsd_386.s | 2 - .../golang.org/x/sys/unix/asm_bsd_amd64.s | 2 - .../golang.org/x/sys/unix/asm_bsd_arm.s | 2 - .../golang.org/x/sys/unix/asm_bsd_arm64.s | 2 - .../golang.org/x/sys/unix/asm_bsd_ppc64.s | 2 - .../golang.org/x/sys/unix/asm_bsd_riscv64.s | 2 - .../golang.org/x/sys/unix/asm_linux_386.s | 1 - .../golang.org/x/sys/unix/asm_linux_amd64.s | 1 - .../golang.org/x/sys/unix/asm_linux_arm.s | 1 - .../golang.org/x/sys/unix/asm_linux_arm64.s | 3 - .../golang.org/x/sys/unix/asm_linux_loong64.s | 3 - .../golang.org/x/sys/unix/asm_linux_mips64x.s | 3 - .../golang.org/x/sys/unix/asm_linux_mipsx.s | 3 - .../golang.org/x/sys/unix/asm_linux_ppc64x.s | 3 - .../golang.org/x/sys/unix/asm_linux_riscv64.s | 2 - .../golang.org/x/sys/unix/asm_linux_s390x.s | 3 - .../x/sys/unix/asm_openbsd_mips64.s | 1 - .../golang.org/x/sys/unix/asm_solaris_amd64.s | 1 - .../golang.org/x/sys/unix/asm_zos_s390x.s | 3 - .../golang.org/x/sys/unix/cap_freebsd.go | 1 - .../vendor/golang.org/x/sys/unix/constants.go | 1 - .../golang.org/x/sys/unix/dev_aix_ppc.go | 1 - .../golang.org/x/sys/unix/dev_aix_ppc64.go | 1 - .../vendor/golang.org/x/sys/unix/dev_zos.go | 1 - .../vendor/golang.org/x/sys/unix/dirent.go | 1 - .../golang.org/x/sys/unix/endian_big.go | 1 - .../golang.org/x/sys/unix/endian_little.go | 1 - .../vendor/golang.org/x/sys/unix/env_unix.go | 1 - .../vendor/golang.org/x/sys/unix/epoll_zos.go | 1 - .../e2e/vendor/golang.org/x/sys/unix/fcntl.go | 3 +- .../x/sys/unix/fcntl_linux_32bit.go | 1 - .../e2e/vendor/golang.org/x/sys/unix/fdset.go | 1 - .../golang.org/x/sys/unix/fstatfs_zos.go | 1 - .../e2e/vendor/golang.org/x/sys/unix/gccgo.go | 1 - .../vendor/golang.org/x/sys/unix/gccgo_c.c | 1 - .../x/sys/unix/gccgo_linux_amd64.go | 1 - .../golang.org/x/sys/unix/ifreq_linux.go | 1 - .../golang.org/x/sys/unix/ioctl_linux.go | 5 + .../golang.org/x/sys/unix/ioctl_signed.go | 1 - .../golang.org/x/sys/unix/ioctl_unsigned.go | 1 - .../vendor/golang.org/x/sys/unix/ioctl_zos.go | 1 - .../vendor/golang.org/x/sys/unix/mkerrors.sh | 43 +- .../golang.org/x/sys/unix/mmap_nomremap.go | 1 - .../vendor/golang.org/x/sys/unix/mremap.go | 1 - .../golang.org/x/sys/unix/pagesize_unix.go | 1 - .../golang.org/x/sys/unix/pledge_openbsd.go | 92 +-- .../golang.org/x/sys/unix/ptrace_darwin.go | 1 - .../golang.org/x/sys/unix/ptrace_ios.go | 1 - .../e2e/vendor/golang.org/x/sys/unix/race.go | 1 - .../e2e/vendor/golang.org/x/sys/unix/race0.go | 1 - .../x/sys/unix/readdirent_getdents.go | 1 - .../x/sys/unix/readdirent_getdirentries.go | 1 - .../golang.org/x/sys/unix/sockcmsg_unix.go | 1 - .../x/sys/unix/sockcmsg_unix_other.go | 1 - .../vendor/golang.org/x/sys/unix/syscall.go | 1 - .../golang.org/x/sys/unix/syscall_aix.go | 4 +- .../golang.org/x/sys/unix/syscall_aix_ppc.go | 1 - .../x/sys/unix/syscall_aix_ppc64.go | 1 - .../golang.org/x/sys/unix/syscall_bsd.go | 3 +- .../x/sys/unix/syscall_darwin_amd64.go | 1 - .../x/sys/unix/syscall_darwin_arm64.go | 1 - .../x/sys/unix/syscall_darwin_libSystem.go | 1 - .../x/sys/unix/syscall_dragonfly_amd64.go | 1 - .../x/sys/unix/syscall_freebsd_386.go | 1 - .../x/sys/unix/syscall_freebsd_amd64.go | 1 - .../x/sys/unix/syscall_freebsd_arm.go | 1 - .../x/sys/unix/syscall_freebsd_arm64.go | 1 - .../x/sys/unix/syscall_freebsd_riscv64.go | 1 - .../golang.org/x/sys/unix/syscall_hurd.go | 1 - .../golang.org/x/sys/unix/syscall_hurd_386.go | 1 - .../golang.org/x/sys/unix/syscall_illumos.go | 1 - .../golang.org/x/sys/unix/syscall_linux.go | 33 +- .../x/sys/unix/syscall_linux_386.go | 1 - .../x/sys/unix/syscall_linux_alarm.go | 2 - .../x/sys/unix/syscall_linux_amd64.go | 1 - .../x/sys/unix/syscall_linux_amd64_gc.go | 1 - .../x/sys/unix/syscall_linux_arm.go | 1 - .../x/sys/unix/syscall_linux_arm64.go | 1 - .../golang.org/x/sys/unix/syscall_linux_gc.go | 1 - .../x/sys/unix/syscall_linux_gc_386.go | 1 - .../x/sys/unix/syscall_linux_gc_arm.go | 1 - .../x/sys/unix/syscall_linux_gccgo_386.go | 1 - .../x/sys/unix/syscall_linux_gccgo_arm.go | 1 - .../x/sys/unix/syscall_linux_loong64.go | 1 - .../x/sys/unix/syscall_linux_mips64x.go | 2 - .../x/sys/unix/syscall_linux_mipsx.go | 2 - .../x/sys/unix/syscall_linux_ppc.go | 1 - .../x/sys/unix/syscall_linux_ppc64x.go | 2 - .../x/sys/unix/syscall_linux_riscv64.go | 1 - .../x/sys/unix/syscall_linux_s390x.go | 1 - .../x/sys/unix/syscall_linux_sparc64.go | 1 - .../x/sys/unix/syscall_netbsd_386.go | 1 - .../x/sys/unix/syscall_netbsd_amd64.go | 1 - .../x/sys/unix/syscall_netbsd_arm.go | 1 - .../x/sys/unix/syscall_netbsd_arm64.go | 1 - .../golang.org/x/sys/unix/syscall_openbsd.go | 28 +- .../x/sys/unix/syscall_openbsd_386.go | 1 - .../x/sys/unix/syscall_openbsd_amd64.go | 1 - .../x/sys/unix/syscall_openbsd_arm.go | 1 - .../x/sys/unix/syscall_openbsd_arm64.go | 1 - .../x/sys/unix/syscall_openbsd_libc.go | 1 - .../x/sys/unix/syscall_openbsd_ppc64.go | 1 - .../x/sys/unix/syscall_openbsd_riscv64.go | 1 - .../golang.org/x/sys/unix/syscall_solaris.go | 5 +- .../x/sys/unix/syscall_solaris_amd64.go | 1 - .../golang.org/x/sys/unix/syscall_unix.go | 1 - .../golang.org/x/sys/unix/syscall_unix_gc.go | 2 - .../x/sys/unix/syscall_unix_gc_ppc64x.go | 3 - .../x/sys/unix/syscall_zos_s390x.go | 3 +- .../golang.org/x/sys/unix/sysvshm_linux.go | 1 - .../golang.org/x/sys/unix/sysvshm_unix.go | 1 - .../x/sys/unix/sysvshm_unix_other.go | 1 - .../golang.org/x/sys/unix/timestruct.go | 1 - .../golang.org/x/sys/unix/unveil_openbsd.go | 41 +- .../vendor/golang.org/x/sys/unix/xattr_bsd.go | 1 - .../golang.org/x/sys/unix/zerrors_aix_ppc.go | 1 - .../x/sys/unix/zerrors_aix_ppc64.go | 1 - .../x/sys/unix/zerrors_darwin_amd64.go | 1 - .../x/sys/unix/zerrors_darwin_arm64.go | 1 - .../x/sys/unix/zerrors_dragonfly_amd64.go | 1 - .../x/sys/unix/zerrors_freebsd_386.go | 1 - .../x/sys/unix/zerrors_freebsd_amd64.go | 1 - .../x/sys/unix/zerrors_freebsd_arm.go | 1 - .../x/sys/unix/zerrors_freebsd_arm64.go | 1 - .../x/sys/unix/zerrors_freebsd_riscv64.go | 1 - .../golang.org/x/sys/unix/zerrors_linux.go | 104 ++- .../x/sys/unix/zerrors_linux_386.go | 4 +- .../x/sys/unix/zerrors_linux_amd64.go | 4 +- .../x/sys/unix/zerrors_linux_arm.go | 4 +- .../x/sys/unix/zerrors_linux_arm64.go | 4 +- .../x/sys/unix/zerrors_linux_loong64.go | 5 +- .../x/sys/unix/zerrors_linux_mips.go | 4 +- .../x/sys/unix/zerrors_linux_mips64.go | 4 +- .../x/sys/unix/zerrors_linux_mips64le.go | 4 +- .../x/sys/unix/zerrors_linux_mipsle.go | 4 +- .../x/sys/unix/zerrors_linux_ppc.go | 4 +- .../x/sys/unix/zerrors_linux_ppc64.go | 4 +- .../x/sys/unix/zerrors_linux_ppc64le.go | 4 +- .../x/sys/unix/zerrors_linux_riscv64.go | 7 +- .../x/sys/unix/zerrors_linux_s390x.go | 4 +- .../x/sys/unix/zerrors_linux_sparc64.go | 4 +- .../x/sys/unix/zerrors_netbsd_386.go | 1 - .../x/sys/unix/zerrors_netbsd_amd64.go | 1 - .../x/sys/unix/zerrors_netbsd_arm.go | 1 - .../x/sys/unix/zerrors_netbsd_arm64.go | 1 - .../x/sys/unix/zerrors_openbsd_386.go | 1 - .../x/sys/unix/zerrors_openbsd_amd64.go | 1 - .../x/sys/unix/zerrors_openbsd_arm.go | 1 - .../x/sys/unix/zerrors_openbsd_arm64.go | 1 - .../x/sys/unix/zerrors_openbsd_mips64.go | 1 - .../x/sys/unix/zerrors_openbsd_ppc64.go | 1 - .../x/sys/unix/zerrors_openbsd_riscv64.go | 1 - .../x/sys/unix/zerrors_solaris_amd64.go | 1 - .../x/sys/unix/zerrors_zos_s390x.go | 1 - .../x/sys/unix/zptrace_armnn_linux.go | 2 - .../x/sys/unix/zptrace_mipsnn_linux.go | 2 - .../x/sys/unix/zptrace_mipsnnle_linux.go | 2 - .../x/sys/unix/zptrace_x86_linux.go | 2 - .../golang.org/x/sys/unix/zsyscall_aix_ppc.go | 1 - .../x/sys/unix/zsyscall_aix_ppc64.go | 1 - .../x/sys/unix/zsyscall_aix_ppc64_gc.go | 1 - .../x/sys/unix/zsyscall_aix_ppc64_gccgo.go | 1 - .../x/sys/unix/zsyscall_darwin_amd64.go | 1 - .../x/sys/unix/zsyscall_darwin_arm64.go | 1 - .../x/sys/unix/zsyscall_dragonfly_amd64.go | 1 - .../x/sys/unix/zsyscall_freebsd_386.go | 1 - .../x/sys/unix/zsyscall_freebsd_amd64.go | 1 - .../x/sys/unix/zsyscall_freebsd_arm.go | 1 - .../x/sys/unix/zsyscall_freebsd_arm64.go | 1 - .../x/sys/unix/zsyscall_freebsd_riscv64.go | 1 - .../x/sys/unix/zsyscall_illumos_amd64.go | 1 - .../golang.org/x/sys/unix/zsyscall_linux.go | 26 +- .../x/sys/unix/zsyscall_linux_386.go | 1 - .../x/sys/unix/zsyscall_linux_amd64.go | 1 - .../x/sys/unix/zsyscall_linux_arm.go | 1 - .../x/sys/unix/zsyscall_linux_arm64.go | 1 - .../x/sys/unix/zsyscall_linux_loong64.go | 1 - .../x/sys/unix/zsyscall_linux_mips.go | 1 - .../x/sys/unix/zsyscall_linux_mips64.go | 1 - .../x/sys/unix/zsyscall_linux_mips64le.go | 1 - .../x/sys/unix/zsyscall_linux_mipsle.go | 1 - .../x/sys/unix/zsyscall_linux_ppc.go | 1 - .../x/sys/unix/zsyscall_linux_ppc64.go | 1 - .../x/sys/unix/zsyscall_linux_ppc64le.go | 1 - .../x/sys/unix/zsyscall_linux_riscv64.go | 1 - .../x/sys/unix/zsyscall_linux_s390x.go | 1 - .../x/sys/unix/zsyscall_linux_sparc64.go | 1 - .../x/sys/unix/zsyscall_netbsd_386.go | 1 - .../x/sys/unix/zsyscall_netbsd_amd64.go | 1 - .../x/sys/unix/zsyscall_netbsd_arm.go | 1 - .../x/sys/unix/zsyscall_netbsd_arm64.go | 1 - .../x/sys/unix/zsyscall_openbsd_386.go | 70 +- .../x/sys/unix/zsyscall_openbsd_386.s | 20 + .../x/sys/unix/zsyscall_openbsd_amd64.go | 70 +- .../x/sys/unix/zsyscall_openbsd_amd64.s | 20 + .../x/sys/unix/zsyscall_openbsd_arm.go | 70 +- .../x/sys/unix/zsyscall_openbsd_arm.s | 20 + .../x/sys/unix/zsyscall_openbsd_arm64.go | 70 +- .../x/sys/unix/zsyscall_openbsd_arm64.s | 20 + .../x/sys/unix/zsyscall_openbsd_mips64.go | 70 +- .../x/sys/unix/zsyscall_openbsd_mips64.s | 20 + .../x/sys/unix/zsyscall_openbsd_ppc64.go | 70 +- .../x/sys/unix/zsyscall_openbsd_ppc64.s | 24 + .../x/sys/unix/zsyscall_openbsd_riscv64.go | 70 +- .../x/sys/unix/zsyscall_openbsd_riscv64.s | 20 + .../x/sys/unix/zsyscall_solaris_amd64.go | 1 - .../x/sys/unix/zsyscall_zos_s390x.go | 1 - .../x/sys/unix/zsysctl_openbsd_386.go | 1 - .../x/sys/unix/zsysctl_openbsd_amd64.go | 1 - .../x/sys/unix/zsysctl_openbsd_arm.go | 1 - .../x/sys/unix/zsysctl_openbsd_arm64.go | 1 - .../x/sys/unix/zsysctl_openbsd_mips64.go | 1 - .../x/sys/unix/zsysctl_openbsd_ppc64.go | 1 - .../x/sys/unix/zsysctl_openbsd_riscv64.go | 1 - .../x/sys/unix/zsysnum_darwin_amd64.go | 1 - .../x/sys/unix/zsysnum_darwin_arm64.go | 1 - .../x/sys/unix/zsysnum_dragonfly_amd64.go | 1 - .../x/sys/unix/zsysnum_freebsd_386.go | 1 - .../x/sys/unix/zsysnum_freebsd_amd64.go | 1 - .../x/sys/unix/zsysnum_freebsd_arm.go | 1 - .../x/sys/unix/zsysnum_freebsd_arm64.go | 1 - .../x/sys/unix/zsysnum_freebsd_riscv64.go | 1 - .../x/sys/unix/zsysnum_linux_386.go | 6 +- .../x/sys/unix/zsysnum_linux_amd64.go | 6 +- .../x/sys/unix/zsysnum_linux_arm.go | 6 +- .../x/sys/unix/zsysnum_linux_arm64.go | 6 +- .../x/sys/unix/zsysnum_linux_loong64.go | 6 +- .../x/sys/unix/zsysnum_linux_mips.go | 6 +- .../x/sys/unix/zsysnum_linux_mips64.go | 6 +- .../x/sys/unix/zsysnum_linux_mips64le.go | 6 +- .../x/sys/unix/zsysnum_linux_mipsle.go | 6 +- .../x/sys/unix/zsysnum_linux_ppc.go | 6 +- .../x/sys/unix/zsysnum_linux_ppc64.go | 6 +- .../x/sys/unix/zsysnum_linux_ppc64le.go | 6 +- .../x/sys/unix/zsysnum_linux_riscv64.go | 6 +- .../x/sys/unix/zsysnum_linux_s390x.go | 6 +- .../x/sys/unix/zsysnum_linux_sparc64.go | 6 +- .../x/sys/unix/zsysnum_netbsd_386.go | 1 - .../x/sys/unix/zsysnum_netbsd_amd64.go | 1 - .../x/sys/unix/zsysnum_netbsd_arm.go | 1 - .../x/sys/unix/zsysnum_netbsd_arm64.go | 1 - .../x/sys/unix/zsysnum_openbsd_386.go | 1 - .../x/sys/unix/zsysnum_openbsd_amd64.go | 1 - .../x/sys/unix/zsysnum_openbsd_arm.go | 1 - .../x/sys/unix/zsysnum_openbsd_arm64.go | 1 - .../x/sys/unix/zsysnum_openbsd_mips64.go | 1 - .../x/sys/unix/zsysnum_openbsd_ppc64.go | 1 - .../x/sys/unix/zsysnum_openbsd_riscv64.go | 1 - .../x/sys/unix/zsysnum_zos_s390x.go | 1 - .../golang.org/x/sys/unix/ztypes_aix_ppc.go | 1 - .../golang.org/x/sys/unix/ztypes_aix_ppc64.go | 1 - .../x/sys/unix/ztypes_darwin_amd64.go | 1 - .../x/sys/unix/ztypes_darwin_arm64.go | 1 - .../x/sys/unix/ztypes_dragonfly_amd64.go | 1 - .../x/sys/unix/ztypes_freebsd_386.go | 1 - .../x/sys/unix/ztypes_freebsd_amd64.go | 1 - .../x/sys/unix/ztypes_freebsd_arm.go | 1 - .../x/sys/unix/ztypes_freebsd_arm64.go | 1 - .../x/sys/unix/ztypes_freebsd_riscv64.go | 1 - .../golang.org/x/sys/unix/ztypes_linux.go | 170 +++-- .../golang.org/x/sys/unix/ztypes_linux_386.go | 1 - .../x/sys/unix/ztypes_linux_amd64.go | 1 - .../golang.org/x/sys/unix/ztypes_linux_arm.go | 1 - .../x/sys/unix/ztypes_linux_arm64.go | 1 - .../x/sys/unix/ztypes_linux_loong64.go | 1 - .../x/sys/unix/ztypes_linux_mips.go | 1 - .../x/sys/unix/ztypes_linux_mips64.go | 1 - .../x/sys/unix/ztypes_linux_mips64le.go | 1 - .../x/sys/unix/ztypes_linux_mipsle.go | 1 - .../golang.org/x/sys/unix/ztypes_linux_ppc.go | 1 - .../x/sys/unix/ztypes_linux_ppc64.go | 1 - .../x/sys/unix/ztypes_linux_ppc64le.go | 1 - .../x/sys/unix/ztypes_linux_riscv64.go | 1 - .../x/sys/unix/ztypes_linux_s390x.go | 1 - .../x/sys/unix/ztypes_linux_sparc64.go | 1 - .../x/sys/unix/ztypes_netbsd_386.go | 1 - .../x/sys/unix/ztypes_netbsd_amd64.go | 1 - .../x/sys/unix/ztypes_netbsd_arm.go | 1 - .../x/sys/unix/ztypes_netbsd_arm64.go | 1 - .../x/sys/unix/ztypes_openbsd_386.go | 1 - .../x/sys/unix/ztypes_openbsd_amd64.go | 1 - .../x/sys/unix/ztypes_openbsd_arm.go | 1 - .../x/sys/unix/ztypes_openbsd_arm64.go | 1 - .../x/sys/unix/ztypes_openbsd_mips64.go | 1 - .../x/sys/unix/ztypes_openbsd_ppc64.go | 1 - .../x/sys/unix/ztypes_openbsd_riscv64.go | 1 - .../x/sys/unix/ztypes_solaris_amd64.go | 1 - .../golang.org/x/sys/unix/ztypes_zos_s390x.go | 1 - .../golang.org/x/sys/windows/aliases.go | 1 - .../vendor/golang.org/x/sys/windows/empty.s | 1 - .../golang.org/x/sys/windows/env_windows.go | 17 +- .../golang.org/x/sys/windows/eventlog.go | 1 - .../golang.org/x/sys/windows/mksyscall.go | 1 - .../vendor/golang.org/x/sys/windows/race.go | 1 - .../vendor/golang.org/x/sys/windows/race0.go | 1 - .../golang.org/x/sys/windows/registry/key.go | 1 - .../x/sys/windows/registry/mksyscall.go | 1 - .../x/sys/windows/registry/syscall.go | 1 - .../x/sys/windows/registry/value.go | 1 - .../golang.org/x/sys/windows/service.go | 1 - .../vendor/golang.org/x/sys/windows/str.go | 1 - .../golang.org/x/sys/windows/syscall.go | 1 - .../x/sys/windows/syscall_windows.go | 10 +- .../golang.org/x/sys/windows/types_windows.go | 28 +- .../x/sys/windows/zsyscall_windows.go | 37 ++ .../e2e/vendor/golang.org/x/term/term_unix.go | 1 - .../vendor/golang.org/x/term/term_unix_bsd.go | 1 - .../golang.org/x/term/term_unix_other.go | 1 - .../golang.org/x/term/term_unsupported.go | 1 - .../golang.org/x/text/message/catalog/go19.go | 1 - .../x/text/message/catalog/gopre19.go | 1 - .../x/text/secure/bidirule/bidirule10.0.0.go | 1 - .../x/text/secure/bidirule/bidirule9.0.0.go | 1 - .../x/text/unicode/bidi/tables10.0.0.go | 1 - .../x/text/unicode/bidi/tables11.0.0.go | 1 - .../x/text/unicode/bidi/tables12.0.0.go | 1 - .../x/text/unicode/bidi/tables13.0.0.go | 1 - .../x/text/unicode/bidi/tables15.0.0.go | 1 - .../x/text/unicode/bidi/tables9.0.0.go | 1 - .../x/text/unicode/norm/tables10.0.0.go | 1 - .../x/text/unicode/norm/tables11.0.0.go | 1 - .../x/text/unicode/norm/tables12.0.0.go | 1 - .../x/text/unicode/norm/tables13.0.0.go | 1 - .../x/text/unicode/norm/tables15.0.0.go | 1 - .../x/text/unicode/norm/tables9.0.0.go | 1 - .../golang.org/x/text/width/tables10.0.0.go | 1 - .../golang.org/x/text/width/tables11.0.0.go | 1 - .../golang.org/x/text/width/tables12.0.0.go | 1 - .../golang.org/x/text/width/tables13.0.0.go | 1 - .../golang.org/x/text/width/tables15.0.0.go | 1 - .../golang.org/x/text/width/tables9.0.0.go | 1 - .../google.golang.org/grpc/CONTRIBUTING.md | 4 - .../grpc/attributes/attributes.go | 29 + .../grpc/balancer/balancer.go | 2 +- .../grpc/balancer_conn_wrappers.go | 486 +++++++------- .../grpc_binarylog_v1/binarylog.pb.go | 2 +- .../e2e/vendor/google.golang.org/grpc/call.go | 5 + .../google.golang.org/grpc/clientconn.go | 622 ++++++++++++------ .../google.golang.org/grpc/dialoptions.go | 30 + .../grpc/health/grpc_health_v1/health.pb.go | 2 +- .../e2e/vendor/google.golang.org/grpc/idle.go | 287 ++++++++ .../grpc/internal/binarylog/binarylog.go | 3 + .../grpc/internal/binarylog/method_logger.go | 9 + .../grpc/internal/buffer/unbounded.go | 26 +- .../grpc/internal/envconfig/envconfig.go | 4 + .../grpc/internal/envconfig/observability.go | 6 + .../grpc/internal/envconfig/xds.go | 21 +- .../grpc/internal/grpcrand/grpcrand.go | 14 + .../internal/grpcsync/callback_serializer.go | 119 ++++ .../grpc/internal/internal.go | 24 + .../grpc/internal/serviceconfig/duration.go | 130 ++++ .../grpc/internal/transport/controlbuf.go | 17 +- .../grpc/internal/transport/handler_server.go | 11 +- .../grpc/internal/transport/http2_client.go | 27 +- .../grpc/internal/transport/http2_server.go | 74 +-- .../grpc/internal/transport/http_util.go | 2 - .../grpc/internal/transport/logging.go | 40 ++ .../grpc/internal/transport/transport.go | 2 +- .../google.golang.org/grpc/picker_wrapper.go | 38 +- .../google.golang.org/grpc/pickfirst.go | 52 +- .../grpc/resolver/manual/manual.go | 11 +- .../grpc/resolver/resolver.go | 16 +- .../grpc/resolver_conn_wrapper.go | 229 ++++--- .../vendor/google.golang.org/grpc/server.go | 99 +-- .../google.golang.org/grpc/service_config.go | 75 +-- .../google.golang.org/grpc/status/status.go | 53 +- .../vendor/google.golang.org/grpc/stream.go | 29 +- .../vendor/google.golang.org/grpc/version.go | 2 +- .../e2e/vendor/modules.txt | 24 +- 485 files changed, 3399 insertions(+), 1758 deletions(-) delete mode 100644 vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/bits_compat.go delete mode 100644 vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/bits_go1.13.go delete mode 100644 vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/go111.go delete mode 100644 vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/go115.go delete mode 100644 vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/go118.go delete mode 100644 vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/not_go111.go delete mode 100644 vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/not_go115.go delete mode 100644 vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/not_go118.go create mode 100644 vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/idle.go create mode 100644 vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/grpcsync/callback_serializer.go create mode 100644 vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/serviceconfig/duration.go create mode 100644 vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/logging.go diff --git a/vertical-pod-autoscaler/e2e/go.mod b/vertical-pod-autoscaler/e2e/go.mod index 790025a9a8b4..9639567c0345 100644 --- a/vertical-pod-autoscaler/e2e/go.mod +++ b/vertical-pod-autoscaler/e2e/go.mod @@ -20,7 +20,7 @@ require ( ) require ( - cloud.google.com/go/compute v1.19.0 // indirect + cloud.google.com/go/compute v1.19.1 // indirect cloud.google.com/go/compute/metadata v0.2.3 // indirect github.com/GoogleCloudPlatform/k8s-cloud-provider v1.18.1-0.20220218231025-f11817397a1b // indirect github.com/JeffAshton/win_pdh v0.0.0-20161109143554-76bb4ee9f0ab // indirect @@ -128,15 +128,15 @@ require ( go.uber.org/atomic v1.10.0 // indirect go.uber.org/multierr v1.11.0 // indirect go.uber.org/zap v1.19.0 // indirect - golang.org/x/crypto v0.14.0 // indirect + golang.org/x/crypto v0.19.0 // indirect golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e // indirect golang.org/x/mod v0.10.0 // indirect - golang.org/x/net v0.17.0 // indirect + golang.org/x/net v0.21.0 // indirect golang.org/x/oauth2 v0.8.0 // indirect golang.org/x/sync v0.3.0 // indirect - golang.org/x/sys v0.13.0 // indirect - golang.org/x/term v0.13.0 // indirect - golang.org/x/text v0.13.0 // indirect + golang.org/x/sys v0.17.0 // indirect + golang.org/x/term v0.17.0 // indirect + golang.org/x/text v0.14.0 // indirect golang.org/x/time v0.4.0 // indirect golang.org/x/tools v0.8.0 // indirect google.golang.org/api v0.114.0 // indirect @@ -144,7 +144,7 @@ require ( google.golang.org/genproto v0.0.0-20230526161137-0005af68ea54 // indirect google.golang.org/genproto/googleapis/api v0.0.0-20230525234035-dd9d682886f9 // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20230525234030-28d5490b6b19 // indirect - google.golang.org/grpc v1.54.0 // indirect + google.golang.org/grpc v1.56.3 // indirect google.golang.org/protobuf v1.31.0 // indirect gopkg.in/gcfg.v1 v1.2.3 // indirect gopkg.in/inf.v0 v0.9.1 // indirect diff --git a/vertical-pod-autoscaler/e2e/go.sum b/vertical-pod-autoscaler/e2e/go.sum index 945c542f6def..2eef42bb8f1b 100644 --- a/vertical-pod-autoscaler/e2e/go.sum +++ b/vertical-pod-autoscaler/e2e/go.sum @@ -33,8 +33,8 @@ cloud.google.com/go/bigquery v1.4.0/go.mod h1:S8dzgnTigyfTmLBfrtrhyYhwRxG72rYxvf cloud.google.com/go/bigquery v1.5.0/go.mod h1:snEHRnqQbz117VIFhE8bmtwIDY80NLUZUMb4Nv6dBIg= cloud.google.com/go/bigquery v1.7.0/go.mod h1://okPTzCYNXSlb24MZs83e2Do+h+VXtc4gLoIoXIAPc= cloud.google.com/go/bigquery v1.8.0/go.mod h1:J5hqkt3O0uAFnINi6JXValWIb1v0goeZM77hZzJN/fQ= -cloud.google.com/go/compute v1.19.0 h1:+9zda3WGgW1ZSTlVppLCYFIr48Pa35q1uG2N1itbCEQ= -cloud.google.com/go/compute v1.19.0/go.mod h1:rikpw2y+UMidAe9tISo04EHNOIf42RLYF/q8Bs93scU= +cloud.google.com/go/compute v1.19.1 h1:am86mquDUgjGNWxiGn+5PGLbmgiWXlE/yNWpIpNvuXY= +cloud.google.com/go/compute v1.19.1/go.mod h1:6ylj3a05WF8leseCdIf77NK0g1ey+nj5IKd5/kvShxE= cloud.google.com/go/compute/metadata v0.2.3 h1:mg4jlk7mCAj6xXp9UJ4fjI9VUI5rubuGBW5aJ7UnBMY= cloud.google.com/go/compute/metadata v0.2.3/go.mod h1:VAV5nSsACxMJvgaAuX6Pk2AawlZn8kiOGuCv6gTkwuA= cloud.google.com/go/datastore v1.0.0/go.mod h1:LXYbyblFSglQ5pkeyhO+Qmw7ukd3C+pD7TKLgZqpHYE= @@ -121,6 +121,8 @@ github.com/cncf/xds/go v0.0.0-20210805033703-aa0b78936158/go.mod h1:eXthEFrGJvWH github.com/cncf/xds/go v0.0.0-20210922020428-25de7278fc84/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211001041855-01bcc9b48dfe/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/cncf/xds/go v0.0.0-20211011173535-cb28da3451f1/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= +github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4 h1:/inchEIKaYC1Akx+H+gqO04wryn5h75LSazbRlnya1k= +github.com/cncf/xds/go v0.0.0-20230607035331-e9ce68804cb4/go.mod h1:eXthEFrGJvWHgFFCl3hGmgk+/aYT6PnTQLykKQRLhEs= github.com/container-storage-interface/spec v1.8.0 h1:D0vhF3PLIZwlwZEf2eNbpujGCNwspwTYf2idJRJx4xI= github.com/container-storage-interface/spec v1.8.0/go.mod h1:ROLik+GhPslwwWRNFF1KasPzroNARibH2rfz1rkg4H0= github.com/containerd/cgroups v1.0.1/go.mod h1:0SJrPIenamHDcZhEcJMNBB85rHcUsw4f25ZfBiPYRkU= @@ -187,6 +189,8 @@ github.com/envoyproxy/go-control-plane v0.9.9-0.20210512163311-63b5d3c536b0/go.m github.com/envoyproxy/go-control-plane v0.9.10-0.20210907150352-cf90f659a021/go.mod h1:AFq3mo9L8Lqqiid3OhADV3RfLJnjiw63cSpi+fDTRC0= github.com/envoyproxy/go-control-plane v0.10.2-0.20220325020618-49ff273808a1/go.mod h1:KJwIaB5Mv44NWtYuAOFCVOjcI94vtpEz2JU/D2v6IjE= github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c= +github.com/envoyproxy/protoc-gen-validate v0.10.1 h1:c0g45+xCJhdgFGw7a5QAfdS4byAbud7miNWJ1WwEVf8= +github.com/envoyproxy/protoc-gen-validate v0.10.1/go.mod h1:DRjgyB0I43LtJapqN6NiRwroiAU2PaFuvk/vjgh61ss= github.com/euank/go-kmsg-parser v2.0.0+incompatible h1:cHD53+PLQuuQyLZeriD1V/esuG4MuU0Pjs5y6iknohY= github.com/euank/go-kmsg-parser v2.0.0+incompatible/go.mod h1:MhmAMZ8V4CYH4ybgdRwPr2TU5ThnS43puaKEMpja1uw= github.com/evanphx/json-patch v4.12.0+incompatible h1:4onqiflcdA9EOZ4RxV643DvftH5pOlLGNtQ5lPWQu84= @@ -241,8 +245,9 @@ github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69 github.com/golang-jwt/jwt/v4 v4.5.0 h1:7cYmW1XlMY7h7ii7UhUyChSgS5wUJEnm9uZVTGqOWzg= github.com/golang-jwt/jwt/v4 v4.5.0/go.mod h1:m21LjoU+eqJr34lmDMbreY2eSTRJ1cv77w39/MY0Ch0= github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q= -github.com/golang/glog v1.0.0 h1:nfP3RFugxnNRyKgeWd4oI1nYvXpxrx8ck8ZrcizshdQ= github.com/golang/glog v1.0.0/go.mod h1:EWib/APOK0SL3dFbYqvxE3UYd8E6s1ouQ7iEp/0LWV4= +github.com/golang/glog v1.1.0 h1:/d3pCKDPWNnvIWe0vVUpNP32qc8U3PDVxySP/y360qE= +github.com/golang/glog v1.1.0/go.mod h1:pfYeQZ3JWZoXTV5sFc986z3HTpwQs9At6P4ImfuP3NQ= github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20190702054246-869f871628b6/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= github.com/golang/groupcache v0.0.0-20191227052852-215e87163ea7/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc= @@ -638,8 +643,8 @@ golang.org/x/crypto v0.0.0-20190605123033-f99c8df09eb5/go.mod h1:yigFU9vqHzYiE8U golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI= golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto= golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/crypto v0.14.0 h1:wBqGXzWJW6m1XrIKlAH0Hs1JJ7+9KBwnIO8v66Q9cHc= -golang.org/x/crypto v0.14.0/go.mod h1:MVFd36DqK4CsrnJYDkBA3VC4m2GkXAM0PvzMCn4JQf4= +golang.org/x/crypto v0.19.0 h1:ENy+Az/9Y1vSrlrvBSyna3PITt4tiZLf7sgCjZBX7Wo= +golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -725,8 +730,8 @@ golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk= golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= golang.org/x/net v0.4.0/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE= -golang.org/x/net v0.17.0 h1:pVaXccu2ozPjCXewfr1S7xza/zcXTity9cCdXQYSjIM= -golang.org/x/net v0.17.0/go.mod h1:NxSsAGuq816PNPmqtQdLE42eU2Fs7NoRIZrHJAlaCOE= +golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4= +golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20190226205417-e64efc72b421/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= golang.org/x/oauth2 v0.0.0-20190604053449-0f29369cfe45/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= @@ -834,13 +839,13 @@ golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE= -golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y= +golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA= -golang.org/x/term v0.13.0 h1:bb+I9cTfFazGW51MZqBVmZy7+JEJMouUHTUSKVQLBek= -golang.org/x/term v0.13.0/go.mod h1:LTmsnFJwVN6bCy1rVCoS+qHT1HhALEFxKncY3WNNh4U= +golang.org/x/term v0.17.0 h1:mkTF7LCd6WGJNL3K1Ad7kwxNfYAW6a8a8QqtMblp/4U= +golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -852,8 +857,8 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.13.0 h1:ablQoSUd0tRdKxZewP80B+BaqeKJuVhuRxj/dkrun3k= -golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= +golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= +golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1056,8 +1061,8 @@ google.golang.org/grpc v1.40.0/go.mod h1:ogyxbiOoUXAkP+4+xa6PZSE9DZgIHtSpzjDTB9K google.golang.org/grpc v1.42.0/go.mod h1:k+4IHHFw41K8+bbowsex27ge2rCb65oeWqe4jJ590SU= google.golang.org/grpc v1.46.0/go.mod h1:vN9eftEi1UMyUsIF80+uQXhHjbXYbm0uXoFCACuMGWk= google.golang.org/grpc v1.51.0/go.mod h1:wgNDFcnuBGmxLKI/qn4T+m5BtEBYXJPvibbUPsAIPww= -google.golang.org/grpc v1.54.0 h1:EhTqbhiYeixwWQtAEZAxmV9MGqcjEU2mFx52xCzNyag= -google.golang.org/grpc v1.54.0/go.mod h1:PUSEXI6iWghWaB6lXM4knEgpJNu2qUcKfDtNci3EC2g= +google.golang.org/grpc v1.56.3 h1:8I4C0Yq1EjstUzUJzpcRVbuYA2mODtEmpWiQoN/b2nc= +google.golang.org/grpc v1.56.3/go.mod h1:I9bI3vqKfayGqPUAwGdOSu7kt6oIJLixfffKrpXqQ9s= google.golang.org/grpc/cmd/protoc-gen-go-grpc v1.1.0/go.mod h1:6Kw0yEErY5E/yWrBtf03jp27GLLJujG4z/JK95pnjjw= google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8= google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0= diff --git a/vertical-pod-autoscaler/e2e/vendor/cloud.google.com/go/compute/internal/version.go b/vertical-pod-autoscaler/e2e/vendor/cloud.google.com/go/compute/internal/version.go index ac02a3ce126f..a5b020992b84 100644 --- a/vertical-pod-autoscaler/e2e/vendor/cloud.google.com/go/compute/internal/version.go +++ b/vertical-pod-autoscaler/e2e/vendor/cloud.google.com/go/compute/internal/version.go @@ -15,4 +15,4 @@ package internal // Version is the current tagged release of the library. -const Version = "1.19.0" +const Version = "1.19.1" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go index 5dfacbb98395..661ea132e028 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_arm64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc && !purego -// +build gc,!purego package chacha20 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_arm64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_arm64.s index f1f66230d1c2..7dd2638e88ad 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_arm64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_arm64.s @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc && !purego -// +build gc,!purego #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_noasm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_noasm.go index 02ff3d05e9ae..db42e6676ab3 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_noasm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_noasm.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build (!arm64 && !s390x && !ppc64le) || !gc || purego -// +build !arm64,!s390x,!ppc64le !gc purego package chacha20 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.go index da420b2e97b0..3a4287f9900e 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc && !purego -// +build gc,!purego package chacha20 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.s index 5c0fed26f850..66aebae25885 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_ppc64le.s @@ -20,7 +20,6 @@ // due to the calling conventions and initialization of constants. //go:build gc && !purego -// +build gc,!purego #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_s390x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_s390x.go index 4652247b8a63..683ccfd1c35c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_s390x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_s390x.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc && !purego -// +build gc,!purego package chacha20 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_s390x.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_s390x.s index f3ef5a019d95..1eda91a3d470 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_s390x.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/chacha20/chacha_s390x.s @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc && !purego -// +build gc,!purego #include "go_asm.h" #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/cryptobyte/asn1.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/cryptobyte/asn1.go index 6fc2838a3fb8..2492f796af97 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/cryptobyte/asn1.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/cryptobyte/asn1.go @@ -733,13 +733,14 @@ func (s *String) ReadOptionalASN1OctetString(out *[]byte, outPresent *bool, tag return true } -// ReadOptionalASN1Boolean sets *out to the value of the next ASN.1 BOOLEAN or, -// if the next bytes are not an ASN.1 BOOLEAN, to the value of defaultValue. -// It reports whether the operation was successful. -func (s *String) ReadOptionalASN1Boolean(out *bool, defaultValue bool) bool { +// ReadOptionalASN1Boolean attempts to read an optional ASN.1 BOOLEAN +// explicitly tagged with tag into out and advances. If no element with a +// matching tag is present, it sets "out" to defaultValue instead. It reports +// whether the read was successful. +func (s *String) ReadOptionalASN1Boolean(out *bool, tag asn1.Tag, defaultValue bool) bool { var present bool var child String - if !s.ReadOptionalASN1(&child, &present, asn1.BOOLEAN) { + if !s.ReadOptionalASN1(&child, &present, tag) { return false } @@ -748,7 +749,7 @@ func (s *String) ReadOptionalASN1Boolean(out *bool, defaultValue bool) bool { return true } - return s.ReadASN1Boolean(out) + return child.ReadASN1Boolean(out) } func (s *String) readASN1(out *String, outTag *asn1.Tag, skipHeader bool) bool { diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.go index edcf163c4ed4..70c541692c3a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.go @@ -1,7 +1,6 @@ // Code generated by command: go run fe_amd64_asm.go -out ../fe_amd64.s -stubs ../fe_amd64.go -pkg field. DO NOT EDIT. //go:build amd64 && gc && !purego -// +build amd64,gc,!purego package field diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.s index 293f013c94a6..60817acc4131 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64.s @@ -1,7 +1,6 @@ // Code generated by command: go run fe_amd64_asm.go -out ../fe_amd64.s -stubs ../fe_amd64.go -pkg field. DO NOT EDIT. //go:build amd64 && gc && !purego -// +build amd64,gc,!purego #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64_noasm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64_noasm.go index ddb6c9b8f7f2..9da280d1d887 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64_noasm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_amd64_noasm.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !amd64 || !gc || purego -// +build !amd64 !gc purego package field diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.go index af459ef51549..075fe9b92574 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build arm64 && gc && !purego -// +build arm64,gc,!purego package field diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.s index 5c91e458923e..3126a434191c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64.s @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build arm64 && gc && !purego -// +build arm64,gc,!purego #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64_noasm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64_noasm.go index 234a5b2e5d18..fc029ac12dae 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64_noasm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/curve25519/internal/field/fe_arm64_noasm.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !arm64 || !gc || purego -// +build !arm64 !gc purego package field diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/hkdf/hkdf.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/hkdf/hkdf.go index dda3f143bec5..f4ded5fee2fb 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/hkdf/hkdf.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/hkdf/hkdf.go @@ -56,7 +56,9 @@ func (f *hkdf) Read(p []byte) (int, error) { // Fill the rest of the buffer for len(p) > 0 { - f.expander.Reset() + if f.counter > 1 { + f.expander.Reset() + } f.expander.Write(f.prev) f.expander.Write(f.info) f.expander.Write([]byte{f.counter}) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/alias/alias.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/alias/alias.go index 69c17f822b9a..551ff0c353f8 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/alias/alias.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/alias/alias.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !purego -// +build !purego // Package alias implements memory aliasing tests. package alias diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/alias/alias_purego.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/alias/alias_purego.go index 4775b0a43843..6fe61b5c6ec0 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/alias/alias_purego.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/alias/alias_purego.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build purego -// +build purego // Package alias implements memory aliasing tests. package alias diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/bits_compat.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/bits_compat.go deleted file mode 100644 index 45b5c966b2be..000000000000 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/bits_compat.go +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright 2019 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build !go1.13 -// +build !go1.13 - -package poly1305 - -// Generic fallbacks for the math/bits intrinsics, copied from -// src/math/bits/bits.go. They were added in Go 1.12, but Add64 and Sum64 had -// variable time fallbacks until Go 1.13. - -func bitsAdd64(x, y, carry uint64) (sum, carryOut uint64) { - sum = x + y + carry - carryOut = ((x & y) | ((x | y) &^ sum)) >> 63 - return -} - -func bitsSub64(x, y, borrow uint64) (diff, borrowOut uint64) { - diff = x - y - borrow - borrowOut = ((^x & y) | (^(x ^ y) & diff)) >> 63 - return -} - -func bitsMul64(x, y uint64) (hi, lo uint64) { - const mask32 = 1<<32 - 1 - x0 := x & mask32 - x1 := x >> 32 - y0 := y & mask32 - y1 := y >> 32 - w0 := x0 * y0 - t := x1*y0 + w0>>32 - w1 := t & mask32 - w2 := t >> 32 - w1 += x0 * y1 - hi = x1*y1 + w2 + w1>>32 - lo = x * y - return -} diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/bits_go1.13.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/bits_go1.13.go deleted file mode 100644 index ed52b3418ab5..000000000000 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/bits_go1.13.go +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright 2019 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build go1.13 -// +build go1.13 - -package poly1305 - -import "math/bits" - -func bitsAdd64(x, y, carry uint64) (sum, carryOut uint64) { - return bits.Add64(x, y, carry) -} - -func bitsSub64(x, y, borrow uint64) (diff, borrowOut uint64) { - return bits.Sub64(x, y, borrow) -} - -func bitsMul64(x, y uint64) (hi, lo uint64) { - return bits.Mul64(x, y) -} diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go index f184b67d98db..333da285b32a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/mac_noasm.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build (!amd64 && !ppc64le && !s390x) || !gc || purego -// +build !amd64,!ppc64le,!s390x !gc purego package poly1305 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.go index 6d522333f29e..164cd47d322a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc && !purego -// +build gc,!purego package poly1305 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.s index 1d74f0f88189..e0d3c6475669 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_amd64.s @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc && !purego -// +build gc,!purego #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_generic.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_generic.go index e041da5ea3e7..ec2202bd7d5f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_generic.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_generic.go @@ -7,7 +7,10 @@ package poly1305 -import "encoding/binary" +import ( + "encoding/binary" + "math/bits" +) // Poly1305 [RFC 7539] is a relatively simple algorithm: the authentication tag // for a 64 bytes message is approximately @@ -114,13 +117,13 @@ type uint128 struct { } func mul64(a, b uint64) uint128 { - hi, lo := bitsMul64(a, b) + hi, lo := bits.Mul64(a, b) return uint128{lo, hi} } func add128(a, b uint128) uint128 { - lo, c := bitsAdd64(a.lo, b.lo, 0) - hi, c := bitsAdd64(a.hi, b.hi, c) + lo, c := bits.Add64(a.lo, b.lo, 0) + hi, c := bits.Add64(a.hi, b.hi, c) if c != 0 { panic("poly1305: unexpected overflow") } @@ -155,8 +158,8 @@ func updateGeneric(state *macState, msg []byte) { // hide leading zeroes. For full chunks, that's 1 << 128, so we can just // add 1 to the most significant (2¹²⁸) limb, h2. if len(msg) >= TagSize { - h0, c = bitsAdd64(h0, binary.LittleEndian.Uint64(msg[0:8]), 0) - h1, c = bitsAdd64(h1, binary.LittleEndian.Uint64(msg[8:16]), c) + h0, c = bits.Add64(h0, binary.LittleEndian.Uint64(msg[0:8]), 0) + h1, c = bits.Add64(h1, binary.LittleEndian.Uint64(msg[8:16]), c) h2 += c + 1 msg = msg[TagSize:] @@ -165,8 +168,8 @@ func updateGeneric(state *macState, msg []byte) { copy(buf[:], msg) buf[len(msg)] = 1 - h0, c = bitsAdd64(h0, binary.LittleEndian.Uint64(buf[0:8]), 0) - h1, c = bitsAdd64(h1, binary.LittleEndian.Uint64(buf[8:16]), c) + h0, c = bits.Add64(h0, binary.LittleEndian.Uint64(buf[0:8]), 0) + h1, c = bits.Add64(h1, binary.LittleEndian.Uint64(buf[8:16]), c) h2 += c msg = nil @@ -219,9 +222,9 @@ func updateGeneric(state *macState, msg []byte) { m3 := h2r1 t0 := m0.lo - t1, c := bitsAdd64(m1.lo, m0.hi, 0) - t2, c := bitsAdd64(m2.lo, m1.hi, c) - t3, _ := bitsAdd64(m3.lo, m2.hi, c) + t1, c := bits.Add64(m1.lo, m0.hi, 0) + t2, c := bits.Add64(m2.lo, m1.hi, c) + t3, _ := bits.Add64(m3.lo, m2.hi, c) // Now we have the result as 4 64-bit limbs, and we need to reduce it // modulo 2¹³⁰ - 5. The special shape of this Crandall prime lets us do @@ -243,14 +246,14 @@ func updateGeneric(state *macState, msg []byte) { // To add c * 5 to h, we first add cc = c * 4, and then add (cc >> 2) = c. - h0, c = bitsAdd64(h0, cc.lo, 0) - h1, c = bitsAdd64(h1, cc.hi, c) + h0, c = bits.Add64(h0, cc.lo, 0) + h1, c = bits.Add64(h1, cc.hi, c) h2 += c cc = shiftRightBy2(cc) - h0, c = bitsAdd64(h0, cc.lo, 0) - h1, c = bitsAdd64(h1, cc.hi, c) + h0, c = bits.Add64(h0, cc.lo, 0) + h1, c = bits.Add64(h1, cc.hi, c) h2 += c // h2 is at most 3 + 1 + 1 = 5, making the whole of h at most @@ -287,9 +290,9 @@ func finalize(out *[TagSize]byte, h *[3]uint64, s *[2]uint64) { // in constant time, we compute t = h - (2¹³⁰ - 5), and select h as the // result if the subtraction underflows, and t otherwise. - hMinusP0, b := bitsSub64(h0, p0, 0) - hMinusP1, b := bitsSub64(h1, p1, b) - _, b = bitsSub64(h2, p2, b) + hMinusP0, b := bits.Sub64(h0, p0, 0) + hMinusP1, b := bits.Sub64(h1, p1, b) + _, b = bits.Sub64(h2, p2, b) // h = h if h < p else h - p h0 = select64(b, h0, hMinusP0) @@ -301,8 +304,8 @@ func finalize(out *[TagSize]byte, h *[3]uint64, s *[2]uint64) { // // by just doing a wide addition with the 128 low bits of h and discarding // the overflow. - h0, c := bitsAdd64(h0, s[0], 0) - h1, _ = bitsAdd64(h1, s[1], c) + h0, c := bits.Add64(h0, s[0], 0) + h1, _ = bits.Add64(h1, s[1], c) binary.LittleEndian.PutUint64(out[0:8], h0) binary.LittleEndian.PutUint64(out[8:16], h1) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.go index 4a069941a6ef..4aec4874b507 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc && !purego -// +build gc,!purego package poly1305 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.s index 58422aad2305..d2ca5deeb9f5 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_ppc64le.s @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc && !purego -// +build gc,!purego #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.go index ec9596688969..e1d033a4915a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc && !purego -// +build gc,!purego package poly1305 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.s index aa9e0494c909..0fe3a7c21750 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/internal/poly1305/sum_s390x.s @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc && !purego -// +build gc,!purego #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/salsa20/salsa/salsa20_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/salsa20/salsa/salsa20_amd64.go index c400dfcf7bce..e76b44fe59e7 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/salsa20/salsa/salsa20_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/salsa20/salsa/salsa20_amd64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build amd64 && !purego && gc -// +build amd64,!purego,gc package salsa diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/salsa20/salsa/salsa20_amd64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/salsa20/salsa/salsa20_amd64.s index c0892772045a..fcce0234b690 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/salsa20/salsa/salsa20_amd64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/salsa20/salsa/salsa20_amd64.s @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build amd64 && !purego && gc -// +build amd64,!purego,gc // This code was translated into a form compatible with 6a from the public // domain sources in SUPERCOP: https://bench.cr.yp.to/supercop.html diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/salsa20/salsa/salsa20_noasm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/salsa20/salsa/salsa20_noasm.go index 4392cc1ac740..9448760f26fb 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/salsa20/salsa/salsa20_noasm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/salsa20/salsa/salsa20_noasm.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !amd64 || purego || !gc -// +build !amd64 purego !gc package salsa diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/channel.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/channel.go index c0834c00dfee..cc0bb7ab6481 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/channel.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/channel.go @@ -187,9 +187,11 @@ type channel struct { pending *buffer extPending *buffer - // windowMu protects myWindow, the flow-control window. - windowMu sync.Mutex - myWindow uint32 + // windowMu protects myWindow, the flow-control window, and myConsumed, + // the number of bytes consumed since we last increased myWindow + windowMu sync.Mutex + myWindow uint32 + myConsumed uint32 // writeMu serializes calls to mux.conn.writePacket() and // protects sentClose and packetPool. This mutex must be @@ -332,14 +334,24 @@ func (ch *channel) handleData(packet []byte) error { return nil } -func (c *channel) adjustWindow(n uint32) error { +func (c *channel) adjustWindow(adj uint32) error { c.windowMu.Lock() - // Since myWindow is managed on our side, and can never exceed - // the initial window setting, we don't worry about overflow. - c.myWindow += uint32(n) + // Since myConsumed and myWindow are managed on our side, and can never + // exceed the initial window setting, we don't worry about overflow. + c.myConsumed += adj + var sendAdj uint32 + if (channelWindowSize-c.myWindow > 3*c.maxIncomingPayload) || + (c.myWindow < channelWindowSize/2) { + sendAdj = c.myConsumed + c.myConsumed = 0 + c.myWindow += sendAdj + } c.windowMu.Unlock() + if sendAdj == 0 { + return nil + } return c.sendMessage(windowAdjustMsg{ - AdditionalBytes: uint32(n), + AdditionalBytes: sendAdj, }) } diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/client.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/client.go index bdc356cbdf1e..fd8c49749eba 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/client.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/client.go @@ -82,7 +82,7 @@ func NewClientConn(c net.Conn, addr string, config *ClientConfig) (Conn, <-chan if err := conn.clientHandshake(addr, &fullConf); err != nil { c.Close() - return nil, nil, nil, fmt.Errorf("ssh: handshake failed: %v", err) + return nil, nil, nil, fmt.Errorf("ssh: handshake failed: %w", err) } conn.mux = newMux(conn.transport) return conn, conn.mux.incomingChannels, conn.mux.incomingRequests, nil diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/client_auth.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/client_auth.go index 5c3bc2572335..34bf089d0bb7 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/client_auth.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/client_auth.go @@ -307,7 +307,10 @@ func (cb publicKeyCallback) auth(session []byte, user string, c packetConn, rand } var methods []string var errSigAlgo error - for _, signer := range signers { + + origSignersLen := len(signers) + for idx := 0; idx < len(signers); idx++ { + signer := signers[idx] pub := signer.PublicKey() as, algo, err := pickSignatureAlgorithm(signer, extensions) if err != nil && errSigAlgo == nil { @@ -321,6 +324,21 @@ func (cb publicKeyCallback) auth(session []byte, user string, c packetConn, rand if err != nil { return authFailure, nil, err } + // OpenSSH 7.2-7.7 advertises support for rsa-sha2-256 and rsa-sha2-512 + // in the "server-sig-algs" extension but doesn't support these + // algorithms for certificate authentication, so if the server rejects + // the key try to use the obtained algorithm as if "server-sig-algs" had + // not been implemented if supported from the algorithm signer. + if !ok && idx < origSignersLen && isRSACert(algo) && algo != CertAlgoRSAv01 { + if contains(as.Algorithms(), KeyAlgoRSA) { + // We retry using the compat algorithm after all signers have + // been tried normally. + signers = append(signers, &multiAlgorithmSigner{ + AlgorithmSigner: as, + supportedAlgorithms: []string{KeyAlgoRSA}, + }) + } + } if !ok { continue } diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/common.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/common.go index b419c761edbc..7e9c2cbc647e 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/common.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/common.go @@ -10,7 +10,6 @@ import ( "fmt" "io" "math" - "strings" "sync" _ "crypto/sha1" @@ -128,6 +127,14 @@ func isRSA(algo string) bool { return contains(algos, underlyingAlgo(algo)) } +func isRSACert(algo string) bool { + _, ok := certKeyAlgoNames[algo] + if !ok { + return false + } + return isRSA(algo) +} + // supportedPubKeyAuthAlgos specifies the supported client public key // authentication algorithms. Note that this doesn't include certificate types // since those use the underlying algorithm. This list is sent to the client if @@ -140,8 +147,6 @@ var supportedPubKeyAuthAlgos = []string{ KeyAlgoDSA, } -var supportedPubKeyAuthAlgosList = strings.Join(supportedPubKeyAuthAlgos, ",") - // unexpectedMessageError results when the SSH message that we received didn't // match what we wanted. func unexpectedMessageError(expected, got uint8) error { diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/handshake.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/handshake.go index 70a7369ff913..56cdc7c21c3b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/handshake.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/handshake.go @@ -11,6 +11,7 @@ import ( "io" "log" "net" + "strings" "sync" ) @@ -34,6 +35,16 @@ type keyingTransport interface { // direction will be effected if a msgNewKeys message is sent // or received. prepareKeyChange(*algorithms, *kexResult) error + + // setStrictMode sets the strict KEX mode, notably triggering + // sequence number resets on sending or receiving msgNewKeys. + // If the sequence number is already > 1 when setStrictMode + // is called, an error is returned. + setStrictMode() error + + // setInitialKEXDone indicates to the transport that the initial key exchange + // was completed + setInitialKEXDone() } // handshakeTransport implements rekeying on top of a keyingTransport @@ -50,6 +61,10 @@ type handshakeTransport struct { // connection. hostKeys []Signer + // publicKeyAuthAlgorithms is non-empty if we are the server. In that case, + // it contains the supported client public key authentication algorithms. + publicKeyAuthAlgorithms []string + // hostKeyAlgorithms is non-empty if we are the client. In that case, // we accept these key types from the server as host key. hostKeyAlgorithms []string @@ -95,6 +110,10 @@ type handshakeTransport struct { // The session ID or nil if first kex did not complete yet. sessionID []byte + + // strictMode indicates if the other side of the handshake indicated + // that we should be following the strict KEX protocol restrictions. + strictMode bool } type pendingKex struct { @@ -141,6 +160,7 @@ func newClientTransport(conn keyingTransport, clientVersion, serverVersion []byt func newServerTransport(conn keyingTransport, clientVersion, serverVersion []byte, config *ServerConfig) *handshakeTransport { t := newHandshakeTransport(conn, &config.Config, clientVersion, serverVersion) t.hostKeys = config.hostKeys + t.publicKeyAuthAlgorithms = config.PublicKeyAuthAlgorithms go t.readLoop() go t.kexLoop() return t @@ -203,7 +223,10 @@ func (t *handshakeTransport) readLoop() { close(t.incoming) break } - if p[0] == msgIgnore || p[0] == msgDebug { + // If this is the first kex, and strict KEX mode is enabled, + // we don't ignore any messages, as they may be used to manipulate + // the packet sequence numbers. + if !(t.sessionID == nil && t.strictMode) && (p[0] == msgIgnore || p[0] == msgDebug) { continue } t.incoming <- p @@ -435,6 +458,11 @@ func (t *handshakeTransport) readOnePacket(first bool) ([]byte, error) { return successPacket, nil } +const ( + kexStrictClient = "kex-strict-c-v00@openssh.com" + kexStrictServer = "kex-strict-s-v00@openssh.com" +) + // sendKexInit sends a key change message. func (t *handshakeTransport) sendKexInit() error { t.mu.Lock() @@ -448,7 +476,6 @@ func (t *handshakeTransport) sendKexInit() error { } msg := &kexInitMsg{ - KexAlgos: t.config.KeyExchanges, CiphersClientServer: t.config.Ciphers, CiphersServerClient: t.config.Ciphers, MACsClientServer: t.config.MACs, @@ -458,6 +485,13 @@ func (t *handshakeTransport) sendKexInit() error { } io.ReadFull(rand.Reader, msg.Cookie[:]) + // We mutate the KexAlgos slice, in order to add the kex-strict extension algorithm, + // and possibly to add the ext-info extension algorithm. Since the slice may be the + // user owned KeyExchanges, we create our own slice in order to avoid using user + // owned memory by mistake. + msg.KexAlgos = make([]string, 0, len(t.config.KeyExchanges)+2) // room for kex-strict and ext-info + msg.KexAlgos = append(msg.KexAlgos, t.config.KeyExchanges...) + isServer := len(t.hostKeys) > 0 if isServer { for _, k := range t.hostKeys { @@ -482,17 +516,24 @@ func (t *handshakeTransport) sendKexInit() error { msg.ServerHostKeyAlgos = append(msg.ServerHostKeyAlgos, keyFormat) } } + + if t.sessionID == nil { + msg.KexAlgos = append(msg.KexAlgos, kexStrictServer) + } } else { msg.ServerHostKeyAlgos = t.hostKeyAlgorithms // As a client we opt in to receiving SSH_MSG_EXT_INFO so we know what // algorithms the server supports for public key authentication. See RFC // 8308, Section 2.1. + // + // We also send the strict KEX mode extension algorithm, in order to opt + // into the strict KEX mode. if firstKeyExchange := t.sessionID == nil; firstKeyExchange { - msg.KexAlgos = make([]string, 0, len(t.config.KeyExchanges)+1) - msg.KexAlgos = append(msg.KexAlgos, t.config.KeyExchanges...) msg.KexAlgos = append(msg.KexAlgos, "ext-info-c") + msg.KexAlgos = append(msg.KexAlgos, kexStrictClient) } + } packet := Marshal(msg) @@ -598,6 +639,13 @@ func (t *handshakeTransport) enterKeyExchange(otherInitPacket []byte) error { return err } + if t.sessionID == nil && ((isClient && contains(serverInit.KexAlgos, kexStrictServer)) || (!isClient && contains(clientInit.KexAlgos, kexStrictClient))) { + t.strictMode = true + if err := t.conn.setStrictMode(); err != nil { + return err + } + } + // We don't send FirstKexFollows, but we handle receiving it. // // RFC 4253 section 7 defines the kex and the agreement method for @@ -649,6 +697,7 @@ func (t *handshakeTransport) enterKeyExchange(otherInitPacket []byte) error { // message with the server-sig-algs extension if the client supports it. See // RFC 8308, Sections 2.4 and 3.1, and [PROTOCOL], Section 1.9. if !isClient && firstKeyExchange && contains(clientInit.KexAlgos, "ext-info-c") { + supportedPubKeyAuthAlgosList := strings.Join(t.publicKeyAuthAlgorithms, ",") extInfo := &extInfoMsg{ NumExtensions: 2, Payload: make([]byte, 0, 4+15+4+len(supportedPubKeyAuthAlgosList)+4+16+4+1), @@ -672,6 +721,12 @@ func (t *handshakeTransport) enterKeyExchange(otherInitPacket []byte) error { return unexpectedMessageError(msgNewKeys, packet[0]) } + if firstKeyExchange { + // Indicates to the transport that the first key exchange is completed + // after receiving SSH_MSG_NEWKEYS. + t.conn.setInitialKEXDone() + } + return nil } diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/keys.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/keys.go index ef1bad731ba5..df4ebdada501 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/keys.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/keys.go @@ -1232,16 +1232,27 @@ func ParseRawPrivateKeyWithPassphrase(pemBytes, passphrase []byte) (interface{}, return nil, fmt.Errorf("ssh: cannot decode encrypted private keys: %v", err) } + var result interface{} + switch block.Type { case "RSA PRIVATE KEY": - return x509.ParsePKCS1PrivateKey(buf) + result, err = x509.ParsePKCS1PrivateKey(buf) case "EC PRIVATE KEY": - return x509.ParseECPrivateKey(buf) + result, err = x509.ParseECPrivateKey(buf) case "DSA PRIVATE KEY": - return ParseDSAPrivateKey(buf) + result, err = ParseDSAPrivateKey(buf) default: - return nil, fmt.Errorf("ssh: unsupported key type %q", block.Type) + err = fmt.Errorf("ssh: unsupported key type %q", block.Type) } + // Because of deficiencies in the format, DecryptPEMBlock does not always + // detect an incorrect password. In these cases decrypted DER bytes is + // random noise. If the parsing of the key returns an asn1.StructuralError + // we return x509.IncorrectPasswordError. + if _, ok := err.(asn1.StructuralError); ok { + return nil, x509.IncorrectPasswordError + } + + return result, err } // ParseDSAPrivateKey returns a DSA private key from its ASN.1 DER encoding, as diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/server.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/server.go index 727c71b9c7d9..c2dfe3268c56 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/server.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/server.go @@ -64,6 +64,13 @@ type ServerConfig struct { // Config contains configuration shared between client and server. Config + // PublicKeyAuthAlgorithms specifies the supported client public key + // authentication algorithms. Note that this should not include certificate + // types since those use the underlying algorithm. This list is sent to the + // client if it supports the server-sig-algs extension. Order is irrelevant. + // If unspecified then a default set of algorithms is used. + PublicKeyAuthAlgorithms []string + hostKeys []Signer // NoClientAuth is true if clients are allowed to connect without @@ -201,9 +208,20 @@ func NewServerConn(c net.Conn, config *ServerConfig) (*ServerConn, <-chan NewCha if fullConf.MaxAuthTries == 0 { fullConf.MaxAuthTries = 6 } + if len(fullConf.PublicKeyAuthAlgorithms) == 0 { + fullConf.PublicKeyAuthAlgorithms = supportedPubKeyAuthAlgos + } else { + for _, algo := range fullConf.PublicKeyAuthAlgorithms { + if !contains(supportedPubKeyAuthAlgos, algo) { + c.Close() + return nil, nil, nil, fmt.Errorf("ssh: unsupported public key authentication algorithm %s", algo) + } + } + } // Check if the config contains any unsupported key exchanges for _, kex := range fullConf.KeyExchanges { if _, ok := serverForbiddenKexAlgos[kex]; ok { + c.Close() return nil, nil, nil, fmt.Errorf("ssh: unsupported key exchange %s for server", kex) } } @@ -321,7 +339,7 @@ func checkSourceAddress(addr net.Addr, sourceAddrs string) error { return fmt.Errorf("ssh: remote address %v is not allowed because of source-address restriction", addr) } -func gssExchangeToken(gssapiConfig *GSSAPIWithMICConfig, firstToken []byte, s *connection, +func gssExchangeToken(gssapiConfig *GSSAPIWithMICConfig, token []byte, s *connection, sessionID []byte, userAuthReq userAuthRequestMsg) (authErr error, perms *Permissions, err error) { gssAPIServer := gssapiConfig.Server defer gssAPIServer.DeleteSecContext() @@ -331,7 +349,7 @@ func gssExchangeToken(gssapiConfig *GSSAPIWithMICConfig, firstToken []byte, s *c outToken []byte needContinue bool ) - outToken, srcName, needContinue, err = gssAPIServer.AcceptSecContext(firstToken) + outToken, srcName, needContinue, err = gssAPIServer.AcceptSecContext(token) if err != nil { return err, nil, nil } @@ -353,6 +371,7 @@ func gssExchangeToken(gssapiConfig *GSSAPIWithMICConfig, firstToken []byte, s *c if err := Unmarshal(packet, userAuthGSSAPITokenReq); err != nil { return nil, nil, err } + token = userAuthGSSAPITokenReq.Token } packet, err := s.transport.readPacket() if err != nil { @@ -524,7 +543,7 @@ userAuthLoop: return nil, parseError(msgUserAuthRequest) } algo := string(algoBytes) - if !contains(supportedPubKeyAuthAlgos, underlyingAlgo(algo)) { + if !contains(config.PublicKeyAuthAlgorithms, underlyingAlgo(algo)) { authErr = fmt.Errorf("ssh: algorithm %q not accepted", algo) break } @@ -591,7 +610,7 @@ userAuthLoop: // algorithm name that corresponds to algo with // sig.Format. This is usually the same, but // for certs, the names differ. - if !contains(supportedPubKeyAuthAlgos, sig.Format) { + if !contains(config.PublicKeyAuthAlgorithms, sig.Format) { authErr = fmt.Errorf("ssh: algorithm %q not accepted", sig.Format) break } diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/tcpip.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/tcpip.go index 80d35f5ec187..ef5059a11d79 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/tcpip.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/tcpip.go @@ -5,6 +5,7 @@ package ssh import ( + "context" "errors" "fmt" "io" @@ -332,6 +333,40 @@ func (l *tcpListener) Addr() net.Addr { return l.laddr } +// DialContext initiates a connection to the addr from the remote host. +// +// The provided Context must be non-nil. If the context expires before the +// connection is complete, an error is returned. Once successfully connected, +// any expiration of the context will not affect the connection. +// +// See func Dial for additional information. +func (c *Client) DialContext(ctx context.Context, n, addr string) (net.Conn, error) { + if err := ctx.Err(); err != nil { + return nil, err + } + type connErr struct { + conn net.Conn + err error + } + ch := make(chan connErr) + go func() { + conn, err := c.Dial(n, addr) + select { + case ch <- connErr{conn, err}: + case <-ctx.Done(): + if conn != nil { + conn.Close() + } + } + }() + select { + case res := <-ch: + return res.conn, res.err + case <-ctx.Done(): + return nil, ctx.Err() + } +} + // Dial initiates a connection to the addr from the remote host. // The resulting connection has a zero LocalAddr() and RemoteAddr(). func (c *Client) Dial(n, addr string) (net.Conn, error) { diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/transport.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/transport.go index da015801ea5b..0424d2d37c0b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/transport.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/crypto/ssh/transport.go @@ -49,6 +49,9 @@ type transport struct { rand io.Reader isClient bool io.Closer + + strictMode bool + initialKEXDone bool } // packetCipher represents a combination of SSH encryption/MAC @@ -74,6 +77,18 @@ type connectionState struct { pendingKeyChange chan packetCipher } +func (t *transport) setStrictMode() error { + if t.reader.seqNum != 1 { + return errors.New("ssh: sequence number != 1 when strict KEX mode requested") + } + t.strictMode = true + return nil +} + +func (t *transport) setInitialKEXDone() { + t.initialKEXDone = true +} + // prepareKeyChange sets up key material for a keychange. The key changes in // both directions are triggered by reading and writing a msgNewKey packet // respectively. @@ -112,11 +127,12 @@ func (t *transport) printPacket(p []byte, write bool) { // Read and decrypt next packet. func (t *transport) readPacket() (p []byte, err error) { for { - p, err = t.reader.readPacket(t.bufReader) + p, err = t.reader.readPacket(t.bufReader, t.strictMode) if err != nil { break } - if len(p) == 0 || (p[0] != msgIgnore && p[0] != msgDebug) { + // in strict mode we pass through DEBUG and IGNORE packets only during the initial KEX + if len(p) == 0 || (t.strictMode && !t.initialKEXDone) || (p[0] != msgIgnore && p[0] != msgDebug) { break } } @@ -127,7 +143,7 @@ func (t *transport) readPacket() (p []byte, err error) { return p, err } -func (s *connectionState) readPacket(r *bufio.Reader) ([]byte, error) { +func (s *connectionState) readPacket(r *bufio.Reader, strictMode bool) ([]byte, error) { packet, err := s.packetCipher.readCipherPacket(s.seqNum, r) s.seqNum++ if err == nil && len(packet) == 0 { @@ -140,6 +156,9 @@ func (s *connectionState) readPacket(r *bufio.Reader) ([]byte, error) { select { case cipher := <-s.pendingKeyChange: s.packetCipher = cipher + if strictMode { + s.seqNum = 0 + } default: return nil, errors.New("ssh: got bogus newkeys message") } @@ -170,10 +189,10 @@ func (t *transport) writePacket(packet []byte) error { if debugTransport { t.printPacket(packet, true) } - return t.writer.writePacket(t.bufWriter, t.rand, packet) + return t.writer.writePacket(t.bufWriter, t.rand, packet, t.strictMode) } -func (s *connectionState) writePacket(w *bufio.Writer, rand io.Reader, packet []byte) error { +func (s *connectionState) writePacket(w *bufio.Writer, rand io.Reader, packet []byte, strictMode bool) error { changeKeys := len(packet) > 0 && packet[0] == msgNewKeys err := s.packetCipher.writeCipherPacket(s.seqNum, w, rand, packet) @@ -188,6 +207,9 @@ func (s *connectionState) writePacket(w *bufio.Writer, rand io.Reader, packet [] select { case cipher := <-s.pendingKeyChange: s.packetCipher = cipher + if strictMode { + s.seqNum = 0 + } default: panic("ssh: no key material for msgNewKeys") } diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/context/go17.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/context/go17.go index 2cb9c408f2e7..0c1b8679376a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/context/go17.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/context/go17.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build go1.7 -// +build go1.7 package context diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/context/go19.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/context/go19.go index 64d31ecc3ef4..e31e35a9045b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/context/go19.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/context/go19.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build go1.9 -// +build go1.9 package context diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/context/pre_go17.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/context/pre_go17.go index 7b6b685114a9..065ff3dfa525 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/context/pre_go17.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/context/pre_go17.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !go1.7 -// +build !go1.7 package context diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/context/pre_go19.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/context/pre_go19.go index 1f9715341faa..ec5a63803358 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/context/pre_go19.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/context/pre_go19.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !go1.9 -// +build !go1.9 package context diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/html/token.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/html/token.go index de67f938a14b..3c57880d6979 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/html/token.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/html/token.go @@ -910,9 +910,6 @@ func (z *Tokenizer) readTagAttrKey() { return } switch c { - case ' ', '\n', '\r', '\t', '\f', '/': - z.pendingAttr[0].end = z.raw.end - 1 - return case '=': if z.pendingAttr[0].start+1 == z.raw.end { // WHATWG 13.2.5.32, if we see an equals sign before the attribute name @@ -920,7 +917,9 @@ func (z *Tokenizer) readTagAttrKey() { continue } fallthrough - case '>': + case ' ', '\n', '\r', '\t', '\f', '/', '>': + // WHATWG 13.2.5.33 Attribute name state + // We need to reconsume the char in the after attribute name state to support the / character z.raw.end-- z.pendingAttr[0].end = z.raw.end return @@ -939,6 +938,11 @@ func (z *Tokenizer) readTagAttrVal() { if z.err != nil { return } + if c == '/' { + // WHATWG 13.2.5.34 After attribute name state + // U+002F SOLIDUS (/) - Switch to the self-closing start tag state. + return + } if c != '=' { z.raw.end-- return diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/databuffer.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/databuffer.go index a3067f8de741..e6f55cbd163a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/databuffer.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/databuffer.go @@ -20,41 +20,44 @@ import ( // TODO: Benchmark to determine if the pools are necessary. The GC may have // improved enough that we can instead allocate chunks like this: // make([]byte, max(16<<10, expectedBytesRemaining)) -var ( - dataChunkSizeClasses = []int{ - 1 << 10, - 2 << 10, - 4 << 10, - 8 << 10, - 16 << 10, - } - dataChunkPools = [...]sync.Pool{ - {New: func() interface{} { return make([]byte, 1<<10) }}, - {New: func() interface{} { return make([]byte, 2<<10) }}, - {New: func() interface{} { return make([]byte, 4<<10) }}, - {New: func() interface{} { return make([]byte, 8<<10) }}, - {New: func() interface{} { return make([]byte, 16<<10) }}, - } -) +var dataChunkPools = [...]sync.Pool{ + {New: func() interface{} { return new([1 << 10]byte) }}, + {New: func() interface{} { return new([2 << 10]byte) }}, + {New: func() interface{} { return new([4 << 10]byte) }}, + {New: func() interface{} { return new([8 << 10]byte) }}, + {New: func() interface{} { return new([16 << 10]byte) }}, +} func getDataBufferChunk(size int64) []byte { - i := 0 - for ; i < len(dataChunkSizeClasses)-1; i++ { - if size <= int64(dataChunkSizeClasses[i]) { - break - } + switch { + case size <= 1<<10: + return dataChunkPools[0].Get().(*[1 << 10]byte)[:] + case size <= 2<<10: + return dataChunkPools[1].Get().(*[2 << 10]byte)[:] + case size <= 4<<10: + return dataChunkPools[2].Get().(*[4 << 10]byte)[:] + case size <= 8<<10: + return dataChunkPools[3].Get().(*[8 << 10]byte)[:] + default: + return dataChunkPools[4].Get().(*[16 << 10]byte)[:] } - return dataChunkPools[i].Get().([]byte) } func putDataBufferChunk(p []byte) { - for i, n := range dataChunkSizeClasses { - if len(p) == n { - dataChunkPools[i].Put(p) - return - } + switch len(p) { + case 1 << 10: + dataChunkPools[0].Put((*[1 << 10]byte)(p)) + case 2 << 10: + dataChunkPools[1].Put((*[2 << 10]byte)(p)) + case 4 << 10: + dataChunkPools[2].Put((*[4 << 10]byte)(p)) + case 8 << 10: + dataChunkPools[3].Put((*[8 << 10]byte)(p)) + case 16 << 10: + dataChunkPools[4].Put((*[16 << 10]byte)(p)) + default: + panic(fmt.Sprintf("unexpected buffer len=%v", len(p))) } - panic(fmt.Sprintf("unexpected buffer len=%v", len(p))) } // dataBuffer is an io.ReadWriter backed by a list of data chunks. diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/frame.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/frame.go index c1f6b90dc32f..e2b298d85934 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/frame.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/frame.go @@ -1510,13 +1510,12 @@ func (mh *MetaHeadersFrame) checkPseudos() error { } func (fr *Framer) maxHeaderStringLen() int { - v := fr.maxHeaderListSize() - if uint32(int(v)) == v { - return int(v) + v := int(fr.maxHeaderListSize()) + if v < 0 { + // If maxHeaderListSize overflows an int, use no limit (0). + return 0 } - // They had a crazy big number for MaxHeaderBytes anyway, - // so give them unlimited header lengths: - return 0 + return v } // readMetaFrame returns 0 or more CONTINUATION frames from fr and diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/go111.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/go111.go deleted file mode 100644 index 5bf62b032ec5..000000000000 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/go111.go +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build go1.11 -// +build go1.11 - -package http2 - -import ( - "net/http/httptrace" - "net/textproto" -) - -func traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool { - return trace != nil && trace.WroteHeaderField != nil -} - -func traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) { - if trace != nil && trace.WroteHeaderField != nil { - trace.WroteHeaderField(k, []string{v}) - } -} - -func traceGot1xxResponseFunc(trace *httptrace.ClientTrace) func(int, textproto.MIMEHeader) error { - if trace != nil { - return trace.Got1xxResponse - } - return nil -} diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/go115.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/go115.go deleted file mode 100644 index 908af1ab93c5..000000000000 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/go115.go +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build go1.15 -// +build go1.15 - -package http2 - -import ( - "context" - "crypto/tls" -) - -// dialTLSWithContext uses tls.Dialer, added in Go 1.15, to open a TLS -// connection. -func (t *Transport) dialTLSWithContext(ctx context.Context, network, addr string, cfg *tls.Config) (*tls.Conn, error) { - dialer := &tls.Dialer{ - Config: cfg, - } - cn, err := dialer.DialContext(ctx, network, addr) - if err != nil { - return nil, err - } - tlsCn := cn.(*tls.Conn) // DialContext comment promises this will always succeed - return tlsCn, nil -} diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/go118.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/go118.go deleted file mode 100644 index aca4b2b31acd..000000000000 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/go118.go +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build go1.18 -// +build go1.18 - -package http2 - -import ( - "crypto/tls" - "net" -) - -func tlsUnderlyingConn(tc *tls.Conn) net.Conn { - return tc.NetConn() -} diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/not_go111.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/not_go111.go deleted file mode 100644 index cc0baa8197fe..000000000000 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/not_go111.go +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright 2018 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build !go1.11 -// +build !go1.11 - -package http2 - -import ( - "net/http/httptrace" - "net/textproto" -) - -func traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool { return false } - -func traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) {} - -func traceGot1xxResponseFunc(trace *httptrace.ClientTrace) func(int, textproto.MIMEHeader) error { - return nil -} diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/not_go115.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/not_go115.go deleted file mode 100644 index e6c04cf7ac75..000000000000 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/not_go115.go +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build !go1.15 -// +build !go1.15 - -package http2 - -import ( - "context" - "crypto/tls" -) - -// dialTLSWithContext opens a TLS connection. -func (t *Transport) dialTLSWithContext(ctx context.Context, network, addr string, cfg *tls.Config) (*tls.Conn, error) { - cn, err := tls.Dial(network, addr, cfg) - if err != nil { - return nil, err - } - if err := cn.Handshake(); err != nil { - return nil, err - } - if cfg.InsecureSkipVerify { - return cn, nil - } - if err := cn.VerifyHostname(cfg.ServerName); err != nil { - return nil, err - } - return cn, nil -} diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/not_go118.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/not_go118.go deleted file mode 100644 index eab532c96bc0..000000000000 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/not_go118.go +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright 2021 The Go Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -//go:build !go1.18 -// +build !go1.18 - -package http2 - -import ( - "crypto/tls" - "net" -) - -func tlsUnderlyingConn(tc *tls.Conn) net.Conn { - return nil -} diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/server.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/server.go index 02c88b6b3e1f..ae94c6408d5d 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/server.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/server.go @@ -2549,7 +2549,6 @@ type responseWriterState struct { wroteHeader bool // WriteHeader called (explicitly or implicitly). Not necessarily sent to user yet. sentHeader bool // have we sent the header frame? handlerDone bool // handler has finished - dirty bool // a Write failed; don't reuse this responseWriterState sentContentLen int64 // non-zero if handler set a Content-Length header wroteBytes int64 @@ -2669,7 +2668,6 @@ func (rws *responseWriterState) writeChunk(p []byte) (n int, err error) { date: date, }) if err != nil { - rws.dirty = true return 0, err } if endStream { @@ -2690,7 +2688,6 @@ func (rws *responseWriterState) writeChunk(p []byte) (n int, err error) { if len(p) > 0 || endStream { // only send a 0 byte DATA frame if we're ending the stream. if err := rws.conn.writeDataFromHandler(rws.stream, p, endStream); err != nil { - rws.dirty = true return 0, err } } @@ -2702,9 +2699,6 @@ func (rws *responseWriterState) writeChunk(p []byte) (n int, err error) { trailers: rws.trailers, endStream: true, }) - if err != nil { - rws.dirty = true - } return len(p), err } return len(p), nil @@ -2920,14 +2914,12 @@ func (rws *responseWriterState) writeHeader(code int) { h.Del("Transfer-Encoding") } - if rws.conn.writeHeaders(rws.stream, &writeResHeaders{ + rws.conn.writeHeaders(rws.stream, &writeResHeaders{ streamID: rws.stream.id, httpResCode: code, h: h, endStream: rws.handlerDone && !rws.hasTrailers(), - }) != nil { - rws.dirty = true - } + }) return } @@ -2992,19 +2984,10 @@ func (w *responseWriter) write(lenData int, dataB []byte, dataS string) (n int, func (w *responseWriter) handlerDone() { rws := w.rws - dirty := rws.dirty rws.handlerDone = true w.Flush() w.rws = nil - if !dirty { - // Only recycle the pool if all prior Write calls to - // the serverConn goroutine completed successfully. If - // they returned earlier due to resets from the peer - // there might still be write goroutines outstanding - // from the serverConn referencing the rws memory. See - // issue 20704. - responseWriterStatePool.Put(rws) - } + responseWriterStatePool.Put(rws) } // Push errors. @@ -3187,6 +3170,7 @@ func (sc *serverConn) startPush(msg *startPushRequest) { panic(fmt.Sprintf("newWriterAndRequestNoBody(%+v): %v", msg.url, err)) } + sc.curHandlers++ go sc.runHandler(rw, req, sc.handler.ServeHTTP) return promisedID, nil } diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/transport.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/transport.go index 4515b22c4a16..df578b86c650 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/transport.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/http2/transport.go @@ -1018,7 +1018,7 @@ func (cc *ClientConn) forceCloseConn() { if !ok { return } - if nc := tlsUnderlyingConn(tc); nc != nil { + if nc := tc.NetConn(); nc != nil { nc.Close() } } @@ -3201,3 +3201,34 @@ func traceFirstResponseByte(trace *httptrace.ClientTrace) { trace.GotFirstResponseByte() } } + +func traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool { + return trace != nil && trace.WroteHeaderField != nil +} + +func traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) { + if trace != nil && trace.WroteHeaderField != nil { + trace.WroteHeaderField(k, []string{v}) + } +} + +func traceGot1xxResponseFunc(trace *httptrace.ClientTrace) func(int, textproto.MIMEHeader) error { + if trace != nil { + return trace.Got1xxResponse + } + return nil +} + +// dialTLSWithContext uses tls.Dialer, added in Go 1.15, to open a TLS +// connection. +func (t *Transport) dialTLSWithContext(ctx context.Context, network, addr string, cfg *tls.Config) (*tls.Conn, error) { + dialer := &tls.Dialer{ + Config: cfg, + } + cn, err := dialer.DialContext(ctx, network, addr) + if err != nil { + return nil, err + } + tlsCn := cn.(*tls.Conn) // DialContext comment promises this will always succeed + return tlsCn, nil +} diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/go118.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/go118.go index c5c4338dbed4..712f1ad839f2 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/go118.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/go118.go @@ -5,7 +5,6 @@ // license that can be found in the LICENSE file. //go:build go1.18 -// +build go1.18 package idna diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/idna10.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/idna10.0.0.go index 64ccf85febb6..7b371788473a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/idna10.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/idna10.0.0.go @@ -5,7 +5,6 @@ // license that can be found in the LICENSE file. //go:build go1.10 -// +build go1.10 // Package idna implements IDNA2008 using the compatibility processing // defined by UTS (Unicode Technical Standard) #46, which defines a standard to diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/idna9.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/idna9.0.0.go index ee1698cefbd8..cc6a892a4a3c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/idna9.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/idna9.0.0.go @@ -5,7 +5,6 @@ // license that can be found in the LICENSE file. //go:build !go1.10 -// +build !go1.10 // Package idna implements IDNA2008 using the compatibility processing // defined by UTS (Unicode Technical Standard) #46, which defines a standard to diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/pre_go118.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/pre_go118.go index 3aaccab1c5a0..40e74bb3d2ac 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/pre_go118.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/pre_go118.go @@ -5,7 +5,6 @@ // license that can be found in the LICENSE file. //go:build !go1.18 -// +build !go1.18 package idna diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables10.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables10.0.0.go index d1d62ef459bb..c6c2bf10a60a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables10.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables10.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.10 && !go1.13 -// +build go1.10,!go1.13 package idna diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables11.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables11.0.0.go index 167efba71256..76789393cc0c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables11.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables11.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.13 && !go1.14 -// +build go1.13,!go1.14 package idna diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables12.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables12.0.0.go index ab40f7bcc3b8..0600cd2ae547 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables12.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables12.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.14 && !go1.16 -// +build go1.14,!go1.16 package idna diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables13.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables13.0.0.go index 66701eadfb37..2fb768ef6d9a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables13.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables13.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.16 && !go1.21 -// +build go1.16,!go1.21 package idna diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables15.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables15.0.0.go index 40033778f01f..5ff05fe1afca 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables15.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables15.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.21 -// +build go1.21 package idna diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables9.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables9.0.0.go index 4074b5332e3e..0f25e84ca207 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables9.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/tables9.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build !go1.10 -// +build !go1.10 package idna diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/trie12.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/trie12.0.0.go index bb63f904b379..8a75b9667334 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/trie12.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/trie12.0.0.go @@ -5,7 +5,6 @@ // license that can be found in the LICENSE file. //go:build !go1.16 -// +build !go1.16 package idna diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/trie13.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/trie13.0.0.go index 7d68a8dc13cb..fa45bb90745b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/trie13.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/net/idna/trie13.0.0.go @@ -5,7 +5,6 @@ // license that can be found in the LICENSE file. //go:build go1.16 -// +build go1.16 package idna diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/asm_aix_ppc64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/asm_aix_ppc64.s index db9171c2e491..269e173ca469 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/asm_aix_ppc64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/asm_aix_ppc64.s @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_aix.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_aix.go index 8aaeef545a76..9bf0c32eb6ad 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_aix.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_aix.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix -// +build aix package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_arm64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_arm64.s index c61f95a05a73..fcb9a3888205 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_arm64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_arm64.s @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gc_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gc_arm64.go index ccf542a73da8..a8acd3e3285d 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gc_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gc_arm64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc -// +build gc package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gc_s390x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gc_s390x.go index 0af2f248412d..c8ae6ddc156f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gc_s390x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gc_s390x.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc -// +build gc package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gc_x86.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gc_x86.go index fa7cdb9bcd5f..910728fb163f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gc_x86.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gc_x86.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build (386 || amd64 || amd64p32) && gc -// +build 386 amd64 amd64p32 -// +build gc package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.go index 2aff31891162..7f1946780bd3 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gccgo -// +build gccgo package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gccgo_s390x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gccgo_s390x.go index 4bfbda61993d..9526d2ce3a95 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gccgo_s390x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gccgo_s390x.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gccgo -// +build gccgo package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.c b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.c index 6cc73109f595..3f73a05dcf32 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.c +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.c @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build (386 || amd64 || amd64p32) && gccgo -// +build 386 amd64 amd64p32 -// +build gccgo #include #include diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go index 863d415ab498..99c60fe9f9c6 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build (386 || amd64 || amd64p32) && gccgo -// +build 386 amd64 amd64p32 -// +build gccgo package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_linux.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_linux.go index 159a686f6f7a..743eb54354b5 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_linux.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_linux.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !386 && !amd64 && !amd64p32 && !arm64 -// +build !386,!amd64,!amd64p32,!arm64 package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go index 6000db4cdd1b..4686c1d541d8 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && (mips64 || mips64le) -// +build linux -// +build mips64 mips64le package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go index f4992b1a5938..cd63e7335573 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_linux_noinit.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && !arm && !arm64 && !mips64 && !mips64le && !ppc64 && !ppc64le && !s390x -// +build linux,!arm,!arm64,!mips64,!mips64le,!ppc64,!ppc64le,!s390x package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_linux_ppc64x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_linux_ppc64x.go index 021356d6deb0..197188e67f34 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_linux_ppc64x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_linux_ppc64x.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && (ppc64 || ppc64le) -// +build linux -// +build ppc64 ppc64le package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_loong64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_loong64.go index 0f57b05bdbe5..558635850c78 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_loong64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_loong64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build loong64 -// +build loong64 package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_mips64x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_mips64x.go index f4063c66423b..fedb00cc4cb9 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_mips64x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_mips64x.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build mips64 || mips64le -// +build mips64 mips64le package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_mipsx.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_mipsx.go index 07c4e36d8f55..ffb4ec7eb39e 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_mipsx.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_mipsx.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build mips || mipsle -// +build mips mipsle package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_arm.go index d7b4fb4ccc24..e9ecf2a45674 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_arm.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !linux && arm -// +build !linux,arm package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_arm64.go index f3cde129b634..5341e7f88d71 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_arm64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !linux && !netbsd && !openbsd && arm64 -// +build !linux,!netbsd,!openbsd,arm64 package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_mips64x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_mips64x.go index 0dafe9644a5a..5f8f2419ab85 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_mips64x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_mips64x.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build !linux && (mips64 || mips64le) -// +build !linux -// +build mips64 mips64le package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go index 060d46b6eacc..89608fba2763 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go @@ -3,9 +3,6 @@ // license that can be found in the LICENSE file. //go:build !aix && !linux && (ppc64 || ppc64le) -// +build !aix -// +build !linux -// +build ppc64 ppc64le package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_riscv64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_riscv64.go index dd10eb79feef..5ab87808f710 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_riscv64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_other_riscv64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !linux && riscv64 -// +build !linux,riscv64 package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_ppc64x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_ppc64x.go index 4e8acd16583d..c14f12b14942 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_ppc64x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_ppc64x.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build ppc64 || ppc64le -// +build ppc64 ppc64le package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_riscv64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_riscv64.go index ff7da60eb8d7..7f0c79c004b4 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_riscv64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_riscv64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build riscv64 -// +build riscv64 package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_s390x.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_s390x.s index 96f81e209717..1fb4b701334c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_s390x.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_s390x.s @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_wasm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_wasm.go index 7747d888a692..384787ea3062 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_wasm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_wasm.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build wasm -// +build wasm package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_x86.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_x86.go index 2dcde8285d59..c29f5e4c5a6e 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_x86.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_x86.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build 386 || amd64 || amd64p32 -// +build 386 amd64 amd64p32 package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_x86.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_x86.s index 39acab2ff5c2..7d7ba33efb85 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_x86.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/cpu_x86.s @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build (386 || amd64 || amd64p32) && gc -// +build 386 amd64 amd64p32 -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/endian_big.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/endian_big.go index 93ce03a34605..7fe04b0a13b1 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/endian_big.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/endian_big.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 -// +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64 package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/endian_little.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/endian_little.go index 55db853efbec..48eccc4c7996 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/endian_little.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/endian_little.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh || wasm -// +build 386 amd64 amd64p32 alpha arm arm64 loong64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh wasm package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go index d87bd6b3eb05..4cd64c7042bc 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && arm64 -// +build linux,arm64 package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go index b975ea2a04ef..4c9788ea8ee8 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build go1.21 -// +build go1.21 package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/syscall_aix_gccgo.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/syscall_aix_gccgo.go index 96134157a10d..1b9ccb091a57 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/syscall_aix_gccgo.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/syscall_aix_gccgo.go @@ -9,7 +9,6 @@ // gccgo's libgo and thus must not used a CGo method. //go:build aix && gccgo -// +build aix,gccgo package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/syscall_aix_ppc64_gc.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/syscall_aix_ppc64_gc.go index 904be42ffdce..e8b6cdbe9a7c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/syscall_aix_ppc64_gc.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/cpu/syscall_aix_ppc64_gc.go @@ -7,7 +7,6 @@ // (See golang.org/issue/32102) //go:build aix && ppc64 && gc -// +build aix,ppc64,gc package cpu diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/execabs/execabs_go118.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/execabs/execabs_go118.go index 2000064a8124..5627d70e3985 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/execabs/execabs_go118.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/execabs/execabs_go118.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !go1.19 -// +build !go1.19 package execabs diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/execabs/execabs_go119.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/execabs/execabs_go119.go index f364b3418926..d60ab1b41951 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/execabs/execabs_go119.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/execabs/execabs_go119.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build go1.19 -// +build go1.19 package execabs diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/pwd_go15_plan9.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/pwd_go15_plan9.go index c9b69937a0d0..73687de748ad 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/pwd_go15_plan9.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/pwd_go15_plan9.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build go1.5 -// +build go1.5 package plan9 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/pwd_plan9.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/pwd_plan9.go index 98bf56b7322c..fb945821847a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/pwd_plan9.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/pwd_plan9.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !go1.5 -// +build !go1.5 package plan9 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/race.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/race.go index 62377d2ff96c..c02d9ed3339c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/race.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/race.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build plan9 && race -// +build plan9,race package plan9 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/race0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/race0.go index f8da30876dbf..7b15e15f65b9 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/race0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/race0.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build plan9 && !race -// +build plan9,!race package plan9 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/str.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/str.go index 55fa8d025eca..ba3e8ff8a625 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/str.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/str.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build plan9 -// +build plan9 package plan9 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/syscall.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/syscall.go index 67e5b0115c1f..d631fd664a72 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/syscall.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/syscall.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build plan9 -// +build plan9 // Package plan9 contains an interface to the low-level operating system // primitives. OS details vary depending on the underlying system, and diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/zsyscall_plan9_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/zsyscall_plan9_386.go index 3f40b9bd743e..f780d5c80790 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/zsyscall_plan9_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/zsyscall_plan9_386.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build plan9 && 386 -// +build plan9,386 package plan9 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/zsyscall_plan9_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/zsyscall_plan9_amd64.go index 0e6a96aa4fa1..7de61065f659 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/zsyscall_plan9_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/zsyscall_plan9_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build plan9 && amd64 -// +build plan9,amd64 package plan9 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/zsyscall_plan9_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/zsyscall_plan9_arm.go index 244c501b77ba..ea85780f03ec 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/zsyscall_plan9_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/plan9/zsyscall_plan9_arm.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build plan9 && arm -// +build plan9,arm package plan9 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/aliases.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/aliases.go index abc89c104a8e..e7d3df4bd360 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/aliases.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/aliases.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) && go1.9 -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos -// +build go1.9 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_aix_ppc64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_aix_ppc64.s index db9171c2e491..269e173ca469 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_aix_ppc64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_aix_ppc64.s @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_386.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_386.s index e0fcd9b3deec..a4fcef0e0d7a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_386.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_386.s @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build (freebsd || netbsd || openbsd) && gc -// +build freebsd netbsd openbsd -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_amd64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_amd64.s index 2b99c349a2d3..1e63615c5703 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_amd64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_amd64.s @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build (darwin || dragonfly || freebsd || netbsd || openbsd) && gc -// +build darwin dragonfly freebsd netbsd openbsd -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_arm.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_arm.s index d702d4adc77d..6496c310087d 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_arm.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_arm.s @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build (freebsd || netbsd || openbsd) && gc -// +build freebsd netbsd openbsd -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_arm64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_arm64.s index fe36a7391a64..4fd1f54daaab 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_arm64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_arm64.s @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build (darwin || freebsd || netbsd || openbsd) && gc -// +build darwin freebsd netbsd openbsd -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s index e5b9a84899ac..42f7eb9e4747 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build (darwin || freebsd || netbsd || openbsd) && gc -// +build darwin freebsd netbsd openbsd -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s index d560019ea29e..f8902667e975 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build (darwin || freebsd || netbsd || openbsd) && gc -// +build darwin freebsd netbsd openbsd -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_386.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_386.s index 8fd101d0716d..3b4734870d97 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_386.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_386.s @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_amd64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_amd64.s index 7ed38e43c673..67e29f3178b0 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_amd64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_amd64.s @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_arm.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_arm.s index 8ef1d51402ae..d6ae269ce166 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_arm.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_arm.s @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_arm64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_arm64.s index 98ae02760da1..01e5e253c68e 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_arm64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_arm64.s @@ -3,9 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && arm64 && gc -// +build linux -// +build arm64 -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_loong64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_loong64.s index 565357288a81..2abf12f6e871 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_loong64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_loong64.s @@ -3,9 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && loong64 && gc -// +build linux -// +build loong64 -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_mips64x.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_mips64x.s index 21231d2ce13f..f84bae7120e7 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_mips64x.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_mips64x.s @@ -3,9 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && (mips64 || mips64le) && gc -// +build linux -// +build mips64 mips64le -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_mipsx.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_mipsx.s index 6783b26c606a..f08f62807723 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_mipsx.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_mipsx.s @@ -3,9 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && (mips || mipsle) && gc -// +build linux -// +build mips mipsle -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s index 19d4989344df..bdfc024d2d3b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_ppc64x.s @@ -3,9 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && (ppc64 || ppc64le) && gc -// +build linux -// +build ppc64 ppc64le -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_riscv64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_riscv64.s index e42eb81d583d..2e8c99612038 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_riscv64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_riscv64.s @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build riscv64 && gc -// +build riscv64 -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_s390x.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_s390x.s index c46aab339594..2c394b11ebd6 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_s390x.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_linux_s390x.s @@ -3,9 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && s390x && gc -// +build linux -// +build s390x -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s index 5e7a1169c05d..fab586a2c419 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s index f8c5394c1a72..f949ec5476d2 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gc -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_zos_s390x.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_zos_s390x.s index 3b54e1858131..2f67ba86d574 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_zos_s390x.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/asm_zos_s390x.s @@ -3,9 +3,6 @@ // license that can be found in the LICENSE file. //go:build zos && s390x && gc -// +build zos -// +build s390x -// +build gc #include "textflag.h" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/cap_freebsd.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/cap_freebsd.go index 0b7c6adb8661..a08657890f39 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/cap_freebsd.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/cap_freebsd.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build freebsd -// +build freebsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/constants.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/constants.go index 394a3965b68d..6fb7cb77d0a3 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/constants.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/constants.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/dev_aix_ppc.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/dev_aix_ppc.go index 65a998508db4..d78513461777 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/dev_aix_ppc.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/dev_aix_ppc.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix && ppc -// +build aix,ppc // Functions to access/create device major and minor numbers matching the // encoding used by AIX. diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/dev_aix_ppc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/dev_aix_ppc64.go index 8fc08ad0aae2..623a5e6973a0 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/dev_aix_ppc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/dev_aix_ppc64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix && ppc64 -// +build aix,ppc64 // Functions to access/create device major and minor numbers matching the // encoding used AIX. diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/dev_zos.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/dev_zos.go index a388e59a0e0f..bb6a64fe92d2 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/dev_zos.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/dev_zos.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build zos && s390x -// +build zos,s390x // Functions to access/create device major and minor numbers matching the // encoding used by z/OS. diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/dirent.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/dirent.go index 2499f977b070..1ebf1178269f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/dirent.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/dirent.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/endian_big.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/endian_big.go index a52026557681..1095fd31d685 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/endian_big.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/endian_big.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. // //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 -// +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/endian_little.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/endian_little.go index b0f2bc4ae3b2..b9f0e277b149 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/endian_little.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/endian_little.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. // //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh -// +build 386 amd64 amd64p32 alpha arm arm64 loong64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/env_unix.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/env_unix.go index 29ccc4d1334c..a96da71f4736 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/env_unix.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/env_unix.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos // Unix environment variables. diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/epoll_zos.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/epoll_zos.go index cedaf7e024b4..7753fddea817 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/epoll_zos.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/epoll_zos.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build zos && s390x -// +build zos,s390x package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/fcntl.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/fcntl.go index e9b991258c18..6200876fb28c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/fcntl.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/fcntl.go @@ -2,8 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -//go:build dragonfly || freebsd || linux || netbsd || openbsd -// +build dragonfly freebsd linux netbsd openbsd +//go:build dragonfly || freebsd || linux || netbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go index 29d44808b1d0..13b4acd5c691 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc) -// +build linux,386 linux,arm linux,mips linux,mipsle linux,ppc package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/fdset.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/fdset.go index a8068f94f290..9e83d18cd042 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/fdset.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/fdset.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/fstatfs_zos.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/fstatfs_zos.go index e377cc9f49c3..c8bde601e772 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/fstatfs_zos.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/fstatfs_zos.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build zos && s390x -// +build zos,s390x package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/gccgo.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/gccgo.go index b06f52d748f6..aca5721ddccd 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/gccgo.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/gccgo.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gccgo && !aix && !hurd -// +build gccgo,!aix,!hurd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/gccgo_c.c b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/gccgo_c.c index f98a1c542f05..d468b7b47f14 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/gccgo_c.c +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/gccgo_c.c @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gccgo && !aix && !hurd -// +build gccgo,!aix,!hurd #include #include diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go index e60e49a3d9c0..972d61bd7549 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build gccgo && linux && amd64 -// +build gccgo,linux,amd64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ifreq_linux.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ifreq_linux.go index 15721a5104e4..848840ae4c75 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ifreq_linux.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ifreq_linux.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux -// +build linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ioctl_linux.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ioctl_linux.go index 0d12c0851adf..dbe680eab88a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ioctl_linux.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ioctl_linux.go @@ -231,3 +231,8 @@ func IoctlLoopGetStatus64(fd int) (*LoopInfo64, error) { func IoctlLoopSetStatus64(fd int, value *LoopInfo64) error { return ioctlPtr(fd, LOOP_SET_STATUS64, unsafe.Pointer(value)) } + +// IoctlLoopConfigure configures all loop device parameters in a single step +func IoctlLoopConfigure(fd int, value *LoopConfig) error { + return ioctlPtr(fd, LOOP_CONFIGURE, unsafe.Pointer(value)) +} diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ioctl_signed.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ioctl_signed.go index 7def9580e6f8..5b0759bd8652 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ioctl_signed.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ioctl_signed.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix || solaris -// +build aix solaris package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ioctl_unsigned.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ioctl_unsigned.go index 649913d1ea71..20f470b9d09e 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ioctl_unsigned.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ioctl_unsigned.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin || dragonfly || freebsd || hurd || linux || netbsd || openbsd -// +build darwin dragonfly freebsd hurd linux netbsd openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ioctl_zos.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ioctl_zos.go index cdc21bf76dcb..c8b2a750f8cd 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ioctl_zos.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ioctl_zos.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build zos && s390x -// +build zos,s390x package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/mkerrors.sh b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/mkerrors.sh index 47fa6a7ebd45..fdcaa974d23b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/mkerrors.sh +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/mkerrors.sh @@ -248,6 +248,7 @@ struct ltchars { #include #include #include +#include #include #include #include @@ -283,10 +284,6 @@ struct ltchars { #include #endif -#ifndef MSG_FASTOPEN -#define MSG_FASTOPEN 0x20000000 -#endif - #ifndef PTRACE_GETREGS #define PTRACE_GETREGS 0xc #endif @@ -295,14 +292,6 @@ struct ltchars { #define PTRACE_SETREGS 0xd #endif -#ifndef SOL_NETLINK -#define SOL_NETLINK 270 -#endif - -#ifndef SOL_SMC -#define SOL_SMC 286 -#endif - #ifdef SOL_BLUETOOTH // SPARC includes this in /usr/include/sparc64-linux-gnu/bits/socket.h // but it is already in bluetooth_linux.go @@ -319,10 +308,23 @@ struct ltchars { #undef TIPC_WAIT_FOREVER #define TIPC_WAIT_FOREVER 0xffffffff -// Copied from linux/l2tp.h -// Including linux/l2tp.h here causes conflicts between linux/in.h -// and netinet/in.h included via net/route.h above. -#define IPPROTO_L2TP 115 +// Copied from linux/netfilter/nf_nat.h +// Including linux/netfilter/nf_nat.h here causes conflicts between linux/in.h +// and netinet/in.h. +#define NF_NAT_RANGE_MAP_IPS (1 << 0) +#define NF_NAT_RANGE_PROTO_SPECIFIED (1 << 1) +#define NF_NAT_RANGE_PROTO_RANDOM (1 << 2) +#define NF_NAT_RANGE_PERSISTENT (1 << 3) +#define NF_NAT_RANGE_PROTO_RANDOM_FULLY (1 << 4) +#define NF_NAT_RANGE_PROTO_OFFSET (1 << 5) +#define NF_NAT_RANGE_NETMAP (1 << 6) +#define NF_NAT_RANGE_PROTO_RANDOM_ALL \ + (NF_NAT_RANGE_PROTO_RANDOM | NF_NAT_RANGE_PROTO_RANDOM_FULLY) +#define NF_NAT_RANGE_MASK \ + (NF_NAT_RANGE_MAP_IPS | NF_NAT_RANGE_PROTO_SPECIFIED | \ + NF_NAT_RANGE_PROTO_RANDOM | NF_NAT_RANGE_PERSISTENT | \ + NF_NAT_RANGE_PROTO_RANDOM_FULLY | NF_NAT_RANGE_PROTO_OFFSET | \ + NF_NAT_RANGE_NETMAP) // Copied from linux/hid.h. // Keep in sync with the size of the referenced fields. @@ -519,6 +521,7 @@ ccflags="$@" $2 ~ /^LOCK_(SH|EX|NB|UN)$/ || $2 ~ /^LO_(KEY|NAME)_SIZE$/ || $2 ~ /^LOOP_(CLR|CTL|GET|SET)_/ || + $2 == "LOOP_CONFIGURE" || $2 ~ /^(AF|SOCK|SO|SOL|IPPROTO|IP|IPV6|TCP|MCAST|EVFILT|NOTE|SHUT|PROT|MAP|MREMAP|MFD|T?PACKET|MSG|SCM|MCL|DT|MADV|PR|LOCAL|TCPOPT|UDP)_/ || $2 ~ /^NFC_(GENL|PROTO|COMM|RF|SE|DIRECTION|LLCP|SOCKPROTO)_/ || $2 ~ /^NFC_.*_(MAX)?SIZE$/ || @@ -560,7 +563,7 @@ ccflags="$@" $2 ~ /^RLIMIT_(AS|CORE|CPU|DATA|FSIZE|LOCKS|MEMLOCK|MSGQUEUE|NICE|NOFILE|NPROC|RSS|RTPRIO|RTTIME|SIGPENDING|STACK)|RLIM_INFINITY/ || $2 ~ /^PRIO_(PROCESS|PGRP|USER)/ || $2 ~ /^CLONE_[A-Z_]+/ || - $2 !~ /^(BPF_TIMEVAL|BPF_FIB_LOOKUP_[A-Z]+)$/ && + $2 !~ /^(BPF_TIMEVAL|BPF_FIB_LOOKUP_[A-Z]+|BPF_F_LINK)$/ && $2 ~ /^(BPF|DLT)_/ || $2 ~ /^AUDIT_/ || $2 ~ /^(CLOCK|TIMER)_/ || @@ -581,7 +584,7 @@ ccflags="$@" $2 ~ /^KEY_(SPEC|REQKEY_DEFL)_/ || $2 ~ /^KEYCTL_/ || $2 ~ /^PERF_/ || - $2 ~ /^SECCOMP_MODE_/ || + $2 ~ /^SECCOMP_/ || $2 ~ /^SEEK_/ || $2 ~ /^SCHED_/ || $2 ~ /^SPLICE_/ || @@ -602,6 +605,9 @@ ccflags="$@" $2 ~ /^FSOPT_/ || $2 ~ /^WDIO[CFS]_/ || $2 ~ /^NFN/ || + $2 !~ /^NFT_META_IIFTYPE/ && + $2 ~ /^NFT_/ || + $2 ~ /^NF_NAT_/ || $2 ~ /^XDP_/ || $2 ~ /^RWF_/ || $2 ~ /^(HDIO|WIN|SMART)_/ || @@ -663,7 +669,6 @@ echo '// mkerrors.sh' "$@" echo '// Code generated by the command above; see README.md. DO NOT EDIT.' echo echo "//go:build ${GOARCH} && ${GOOS}" -echo "// +build ${GOARCH},${GOOS}" echo go tool cgo -godefs -- "$@" _const.go >_error.out cat _error.out | grep -vf _error.grep | grep -vf _signal.grep diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/mmap_nomremap.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/mmap_nomremap.go index ca0513632ee3..4b68e59780a2 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/mmap_nomremap.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/mmap_nomremap.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix || darwin || dragonfly || freebsd || openbsd || solaris -// +build aix darwin dragonfly freebsd openbsd solaris package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/mremap.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/mremap.go index fa93d0aa9045..fd45fe529da5 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/mremap.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/mremap.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux || netbsd -// +build linux netbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/pagesize_unix.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/pagesize_unix.go index 53f1b4c5b81e..4d0a3430edc5 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/pagesize_unix.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/pagesize_unix.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris // For Unix, get the pagesize from the runtime. diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/pledge_openbsd.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/pledge_openbsd.go index eb48294b2742..6a09af53e6bb 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/pledge_openbsd.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/pledge_openbsd.go @@ -8,54 +8,31 @@ import ( "errors" "fmt" "strconv" - "syscall" - "unsafe" ) // Pledge implements the pledge syscall. // -// The pledge syscall does not accept execpromises on OpenBSD releases -// before 6.3. -// -// execpromises must be empty when Pledge is called on OpenBSD -// releases predating 6.3, otherwise an error will be returned. +// This changes both the promises and execpromises; use PledgePromises or +// PledgeExecpromises to only change the promises or execpromises +// respectively. // // For more information see pledge(2). func Pledge(promises, execpromises string) error { - maj, min, err := majmin() - if err != nil { + if err := pledgeAvailable(); err != nil { return err } - err = pledgeAvailable(maj, min, execpromises) + pptr, err := BytePtrFromString(promises) if err != nil { return err } - pptr, err := syscall.BytePtrFromString(promises) + exptr, err := BytePtrFromString(execpromises) if err != nil { return err } - // This variable will hold either a nil unsafe.Pointer or - // an unsafe.Pointer to a string (execpromises). - var expr unsafe.Pointer - - // If we're running on OpenBSD > 6.2, pass execpromises to the syscall. - if maj > 6 || (maj == 6 && min > 2) { - exptr, err := syscall.BytePtrFromString(execpromises) - if err != nil { - return err - } - expr = unsafe.Pointer(exptr) - } - - _, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(unsafe.Pointer(pptr)), uintptr(expr), 0) - if e != 0 { - return e - } - - return nil + return pledge(pptr, exptr) } // PledgePromises implements the pledge syscall. @@ -64,30 +41,16 @@ func Pledge(promises, execpromises string) error { // // For more information see pledge(2). func PledgePromises(promises string) error { - maj, min, err := majmin() - if err != nil { - return err - } - - err = pledgeAvailable(maj, min, "") - if err != nil { + if err := pledgeAvailable(); err != nil { return err } - // This variable holds the execpromises and is always nil. - var expr unsafe.Pointer - - pptr, err := syscall.BytePtrFromString(promises) + pptr, err := BytePtrFromString(promises) if err != nil { return err } - _, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(unsafe.Pointer(pptr)), uintptr(expr), 0) - if e != 0 { - return e - } - - return nil + return pledge(pptr, nil) } // PledgeExecpromises implements the pledge syscall. @@ -96,30 +59,16 @@ func PledgePromises(promises string) error { // // For more information see pledge(2). func PledgeExecpromises(execpromises string) error { - maj, min, err := majmin() - if err != nil { + if err := pledgeAvailable(); err != nil { return err } - err = pledgeAvailable(maj, min, execpromises) + exptr, err := BytePtrFromString(execpromises) if err != nil { return err } - // This variable holds the promises and is always nil. - var pptr unsafe.Pointer - - exptr, err := syscall.BytePtrFromString(execpromises) - if err != nil { - return err - } - - _, _, e := syscall.Syscall(SYS_PLEDGE, uintptr(pptr), uintptr(unsafe.Pointer(exptr)), 0) - if e != 0 { - return e - } - - return nil + return pledge(nil, exptr) } // majmin returns major and minor version number for an OpenBSD system. @@ -147,16 +96,15 @@ func majmin() (major int, minor int, err error) { // pledgeAvailable checks for availability of the pledge(2) syscall // based on the running OpenBSD version. -func pledgeAvailable(maj, min int, execpromises string) error { - // If OpenBSD <= 5.9, pledge is not available. - if (maj == 5 && min != 9) || maj < 5 { - return fmt.Errorf("pledge syscall is not available on OpenBSD %d.%d", maj, min) +func pledgeAvailable() error { + maj, min, err := majmin() + if err != nil { + return err } - // If OpenBSD <= 6.2 and execpromises is not empty, - // return an error - execpromises is not available before 6.3 - if (maj < 6 || (maj == 6 && min <= 2)) && execpromises != "" { - return fmt.Errorf("cannot use execpromises on OpenBSD %d.%d", maj, min) + // Require OpenBSD 6.4 as a minimum. + if maj < 6 || (maj == 6 && min <= 3) { + return fmt.Errorf("cannot call Pledge on OpenBSD %d.%d", maj, min) } return nil diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ptrace_darwin.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ptrace_darwin.go index 463c3eff7fd2..3f0975f3de76 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ptrace_darwin.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ptrace_darwin.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin && !ios -// +build darwin,!ios package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ptrace_ios.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ptrace_ios.go index ed0509a0117c..a4d35db5dc28 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ptrace_ios.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ptrace_ios.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build ios -// +build ios package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/race.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/race.go index 6f6c5fec5ae3..714d2aae7c09 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/race.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/race.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build (darwin && race) || (linux && race) || (freebsd && race) -// +build darwin,race linux,race freebsd,race package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/race0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/race0.go index 706e1322ae41..4a9f6634c980 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/race0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/race0.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos -// +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly zos package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/readdirent_getdents.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/readdirent_getdents.go index 4d6257569ea8..dbd2b6ccb1b3 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/readdirent_getdents.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/readdirent_getdents.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd -// +build aix dragonfly freebsd linux netbsd openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go index 2a4ba47c45b4..130398b6b767 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin -// +build darwin package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sockcmsg_unix.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sockcmsg_unix.go index 3865943f6e27..c3a62dbb1b6c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sockcmsg_unix.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sockcmsg_unix.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos // Socket control messages diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go index 0840fe4a5749..4a1eab37ec08 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sockcmsg_unix_other.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix || darwin || freebsd || linux || netbsd || openbsd || solaris || zos -// +build aix darwin freebsd linux netbsd openbsd solaris zos package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall.go index 63e8c838317f..5ea74da98204 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos // Package unix contains an interface to the low-level operating system // primitives. OS details vary depending on the underlying system, and diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_aix.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_aix.go index e94e6cdac882..67ce6cef2d5c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_aix.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_aix.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix -// +build aix // Aix system calls. // This file is compiled as ordinary Go code, @@ -107,7 +106,8 @@ func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) { if n > 0 { sl += _Socklen(n) + 1 } - if sa.raw.Path[0] == '@' { + if sa.raw.Path[0] == '@' || (sa.raw.Path[0] == 0 && sl > 3) { + // Check sl > 3 so we don't change unnamed socket behavior. sa.raw.Path[0] = 0 // Don't count trailing NUL for abstract address. sl-- diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go index f2871fa95351..1fdaa476005f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_aix_ppc.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix && ppc -// +build aix,ppc package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go index 75718ec0f19b..c87f9a9f4568 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_aix_ppc64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix && ppc64 -// +build aix,ppc64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_bsd.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_bsd.go index 4217de518bc8..a00c3e5450b3 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_bsd.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_bsd.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin || dragonfly || freebsd || netbsd || openbsd -// +build darwin dragonfly freebsd netbsd openbsd // BSD system call wrappers shared by *BSD based systems // including OS X (Darwin) and FreeBSD. Like the other @@ -317,7 +316,7 @@ func GetsockoptString(fd, level, opt int) (string, error) { if err != nil { return "", err } - return string(buf[:vallen-1]), nil + return ByteSliceToString(buf[:vallen]), nil } //sys recvfrom(fd int, p []byte, flags int, from *RawSockaddrAny, fromlen *_Socklen) (n int, err error) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go index b37310ce9b40..0eaecf5fc32f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_darwin_amd64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build amd64 && darwin -// +build amd64,darwin package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go index d51ec996304e..f36c6707cfb1 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_darwin_arm64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build arm64 && darwin -// +build arm64,darwin package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go index 53c96641f813..16dc6993799f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_darwin_libSystem.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin && go1.12 -// +build darwin,go1.12 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go index 4e2d32120a89..14bab6b2de50 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_dragonfly_amd64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build amd64 && dragonfly -// +build amd64,dragonfly package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go index b8da510043cb..3967bca772de 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_386.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build 386 && freebsd -// +build 386,freebsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go index 47155c48390b..eff19ada2359 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_amd64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build amd64 && freebsd -// +build amd64,freebsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go index 08932093fa24..4f24b517a673 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_arm.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build arm && freebsd -// +build arm,freebsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go index d151a0d0e53a..ac30759ece1a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_arm64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build arm64 && freebsd -// +build arm64,freebsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go index d5cd64b37874..aab725ca77fb 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_freebsd_riscv64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build riscv64 && freebsd -// +build riscv64,freebsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_hurd.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_hurd.go index 381fd4673bec..ba46651f8e38 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_hurd.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_hurd.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build hurd -// +build hurd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_hurd_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_hurd_386.go index 7cf54a3e4f10..df89f9e6b476 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_hurd_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_hurd_386.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build 386 && hurd -// +build 386,hurd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_illumos.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_illumos.go index 87db5a6a8ccc..a863f7052c72 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_illumos.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_illumos.go @@ -5,7 +5,6 @@ // illumos system calls not present on Solaris. //go:build amd64 && illumos -// +build amd64,illumos package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux.go index fb4e50224c9b..0f85e29e621c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux.go @@ -61,15 +61,23 @@ func FanotifyMark(fd int, flags uint, mask uint64, dirFd int, pathname string) ( } //sys fchmodat(dirfd int, path string, mode uint32) (err error) - -func Fchmodat(dirfd int, path string, mode uint32, flags int) (err error) { - // Linux fchmodat doesn't support the flags parameter. Mimick glibc's behavior - // and check the flags. Otherwise the mode would be applied to the symlink - // destination which is not what the user expects. - if flags&^AT_SYMLINK_NOFOLLOW != 0 { - return EINVAL - } else if flags&AT_SYMLINK_NOFOLLOW != 0 { - return EOPNOTSUPP +//sys fchmodat2(dirfd int, path string, mode uint32, flags int) (err error) + +func Fchmodat(dirfd int, path string, mode uint32, flags int) error { + // Linux fchmodat doesn't support the flags parameter, but fchmodat2 does. + // Try fchmodat2 if flags are specified. + if flags != 0 { + err := fchmodat2(dirfd, path, mode, flags) + if err == ENOSYS { + // fchmodat2 isn't available. If the flags are known to be valid, + // return EOPNOTSUPP to indicate that fchmodat doesn't support them. + if flags&^(AT_SYMLINK_NOFOLLOW|AT_EMPTY_PATH) != 0 { + return EINVAL + } else if flags&(AT_SYMLINK_NOFOLLOW|AT_EMPTY_PATH) != 0 { + return EOPNOTSUPP + } + } + return err } return fchmodat(dirfd, path, mode) } @@ -417,7 +425,8 @@ func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) { if n > 0 { sl += _Socklen(n) + 1 } - if sa.raw.Path[0] == '@' { + if sa.raw.Path[0] == '@' || (sa.raw.Path[0] == 0 && sl > 3) { + // Check sl > 3 so we don't change unnamed socket behavior. sa.raw.Path[0] = 0 // Don't count trailing NUL for abstract address. sl-- @@ -1301,7 +1310,7 @@ func GetsockoptString(fd, level, opt int) (string, error) { return "", err } } - return string(buf[:vallen-1]), nil + return ByteSliceToString(buf[:vallen]), nil } func GetsockoptTpacketStats(fd, level, opt int) (*TpacketStats, error) { @@ -2482,3 +2491,5 @@ func SchedGetAttr(pid int, flags uint) (*SchedAttr, error) { } return attr, nil } + +//sys Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, flags uint) (err error) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_386.go index c7d9945ea19a..506dafa7b4c6 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_386.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build 386 && linux -// +build 386,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_alarm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_alarm.go index 08086ac6a4c4..38d55641b52b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_alarm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_alarm.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && (386 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64) -// +build linux -// +build 386 amd64 mips mipsle mips64 mipsle ppc64 ppc64le ppc s390x sparc64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go index 70601ce3692c..d557cf8de3f2 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_amd64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build amd64 && linux -// +build amd64,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go index 8b0f0f3aa568..facdb83b23b7 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build amd64 && linux && gc -// +build amd64,linux,gc package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_arm.go index da2986415ae2..cd2dd797fd6c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_arm.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build arm && linux -// +build arm,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go index f5266689af0e..cf2ee6c75ef3 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_arm64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build arm64 && linux -// +build arm64,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gc.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gc.go index 2b1168d7d19f..ffc4c2b635d0 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gc.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gc.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && gc -// +build linux,gc package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go index 9843fb489601..9ebfdcf4478f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && gc && 386 -// +build linux,gc,386 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go index a6008fccd59d..5f2b57c4c277 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build arm && gc && linux -// +build arm,gc,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go index 7740af2428be..d1a3ad826334 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_386.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && gccgo && 386 -// +build linux,gccgo,386 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go index e16a12299aea..f2f67423e981 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && gccgo && arm -// +build linux,gccgo,arm package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go index f6ab02ec1501..3d0e98451f8a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_loong64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build loong64 && linux -// +build loong64,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go index 93fe59d25d9f..70963a95abf3 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_mips64x.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && (mips64 || mips64le) -// +build linux -// +build mips64 mips64le package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go index aae7f0ffd3fc..c218ebd28016 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_mipsx.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && (mips || mipsle) -// +build linux -// +build mips mipsle package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go index 66eff19a320b..e6c48500ca94 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_ppc.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && ppc -// +build linux,ppc package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go index 806aa2574d8d..7286a9aa882b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_ppc64x.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && (ppc64 || ppc64le) -// +build linux -// +build ppc64 ppc64le package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go index 5e6ceee129fb..6f5a288944df 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_riscv64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build riscv64 && linux -// +build riscv64,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go index 2f89e8f5defe..66f31210d083 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_s390x.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build s390x && linux -// +build s390x,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go index 7ca064ae7649..11d1f1698665 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_linux_sparc64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build sparc64 && linux -// +build sparc64,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go index 5199d282fd0d..7a5eb57432fa 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_netbsd_386.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build 386 && netbsd -// +build 386,netbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go index 70a9c52e9801..62d8957ae6e2 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build amd64 && netbsd -// +build amd64,netbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go index 3eb5942f93ff..ce6a0688512f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_netbsd_arm.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build arm && netbsd -// +build arm,netbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go index fc6ccfd810d9..d46d689d1b64 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_netbsd_arm64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build arm64 && netbsd -// +build arm64,netbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd.go index 6f34479b5973..b25343c71a42 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd.go @@ -137,18 +137,13 @@ func sendfile(outfd int, infd int, offset *int64, count int) (written int, err e } func Getfsstat(buf []Statfs_t, flags int) (n int, err error) { - var _p0 unsafe.Pointer + var bufptr *Statfs_t var bufsize uintptr if len(buf) > 0 { - _p0 = unsafe.Pointer(&buf[0]) + bufptr = &buf[0] bufsize = unsafe.Sizeof(Statfs_t{}) * uintptr(len(buf)) } - r0, _, e1 := Syscall(SYS_GETFSSTAT, uintptr(_p0), bufsize, uintptr(flags)) - n = int(r0) - if e1 != 0 { - err = e1 - } - return + return getfsstat(bufptr, bufsize, flags) } //sysnb getresuid(ruid *_C_int, euid *_C_int, suid *_C_int) @@ -171,6 +166,20 @@ func Getresgid() (rgid, egid, sgid int) { //sys sysctl(mib []_C_int, old *byte, oldlen *uintptr, new *byte, newlen uintptr) (err error) = SYS___SYSCTL +//sys fcntl(fd int, cmd int, arg int) (n int, err error) +//sys fcntlPtr(fd int, cmd int, arg unsafe.Pointer) (n int, err error) = SYS_FCNTL + +// FcntlInt performs a fcntl syscall on fd with the provided command and argument. +func FcntlInt(fd uintptr, cmd, arg int) (int, error) { + return fcntl(int(fd), cmd, arg) +} + +// FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. +func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { + _, err := fcntlPtr(int(fd), cmd, unsafe.Pointer(lk)) + return err +} + //sys ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) func Ppoll(fds []PollFd, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { @@ -326,4 +335,7 @@ func Uname(uname *Utsname) error { //sys write(fd int, p []byte) (n int, err error) //sys mmap(addr uintptr, length uintptr, prot int, flag int, fd int, pos int64) (ret uintptr, err error) //sys munmap(addr uintptr, length uintptr) (err error) +//sys getfsstat(stat *Statfs_t, bufsize uintptr, flags int) (n int, err error) //sys utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) +//sys pledge(promises *byte, execpromises *byte) (err error) +//sys unveil(path *byte, flags *byte) (err error) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go index 6baabcdcb069..9ddc89f4fcd7 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_386.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build 386 && openbsd -// +build 386,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go index bab25360eae3..70a3c96eea17 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_amd64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build amd64 && openbsd -// +build amd64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go index 8eed3c4d4e7c..265caa87f76e 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_arm.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build arm && openbsd -// +build arm,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go index 483dde99d4c6..ac4fda1715ae 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_arm64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build arm64 && openbsd -// +build arm64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go index 04aa43f41b25..0a451e6dd40a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_libc.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build openbsd -// +build openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_ppc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_ppc64.go index c2796139c013..30a308cbb4b8 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_ppc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_ppc64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build ppc64 && openbsd -// +build ppc64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go index 23199a7ff624..ea954330fac0 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_openbsd_riscv64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build riscv64 && openbsd -// +build riscv64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_solaris.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_solaris.go index b99cfa1342f0..21974af064dd 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_solaris.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_solaris.go @@ -128,7 +128,8 @@ func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, _Socklen, error) { if n > 0 { sl += _Socklen(n) + 1 } - if sa.raw.Path[0] == '@' { + if sa.raw.Path[0] == '@' || (sa.raw.Path[0] == 0 && sl > 3) { + // Check sl > 3 so we don't change unnamed socket behavior. sa.raw.Path[0] = 0 // Don't count trailing NUL for abstract address. sl-- @@ -157,7 +158,7 @@ func GetsockoptString(fd, level, opt int) (string, error) { if err != nil { return "", err } - return string(buf[:vallen-1]), nil + return ByteSliceToString(buf[:vallen]), nil } const ImplementsGetwd = true diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go index 0bd25ef81f20..e02d8ceae37e 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build amd64 && solaris -// +build amd64,solaris package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_unix.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_unix.go index f6eda27050da..77081de8c7de 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_unix.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_unix.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_unix_gc.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_unix_gc.go index b6919ca580e7..05c95bccfab4 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_unix_gc.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_unix_gc.go @@ -3,8 +3,6 @@ // license that can be found in the LICENSE file. //go:build (darwin || dragonfly || freebsd || (linux && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc -// +build darwin dragonfly freebsd linux,!ppc64,!ppc64le netbsd openbsd solaris -// +build gc package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go index f6f707acf2c3..23f39b7af7e6 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go @@ -3,9 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux && (ppc64le || ppc64) && gc -// +build linux -// +build ppc64le ppc64 -// +build gc package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go index 4596d041ce37..b473038c6155 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/syscall_zos_s390x.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build zos && s390x -// +build zos,s390x package unix @@ -1105,7 +1104,7 @@ func GetsockoptString(fd, level, opt int) (string, error) { return "", err } - return string(buf[:vallen-1]), nil + return ByteSliceToString(buf[:vallen]), nil } func Recvmsg(fd int, p, oob []byte, flags int) (n, oobn int, recvflags int, from Sockaddr, err error) { diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sysvshm_linux.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sysvshm_linux.go index 2c3a4437f0f0..4fcd38de2762 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sysvshm_linux.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sysvshm_linux.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build linux -// +build linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sysvshm_unix.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sysvshm_unix.go index 5bb41d17bc47..79a84f18b46d 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sysvshm_unix.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sysvshm_unix.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build (darwin && !ios) || linux -// +build darwin,!ios linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go index 71bddefdb87d..9eb0db664cbf 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin && !ios -// +build darwin,!ios package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/timestruct.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/timestruct.go index 616b1b284858..7997b1902269 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/timestruct.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/timestruct.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/unveil_openbsd.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/unveil_openbsd.go index 168d5ae77914..cb7e598cef9d 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/unveil_openbsd.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/unveil_openbsd.go @@ -4,39 +4,48 @@ package unix -import ( - "syscall" - "unsafe" -) +import "fmt" // Unveil implements the unveil syscall. // For more information see unveil(2). // Note that the special case of blocking further // unveil calls is handled by UnveilBlock. func Unveil(path string, flags string) error { - pathPtr, err := syscall.BytePtrFromString(path) - if err != nil { + if err := supportsUnveil(); err != nil { return err } - flagsPtr, err := syscall.BytePtrFromString(flags) + pathPtr, err := BytePtrFromString(path) if err != nil { return err } - _, _, e := syscall.Syscall(SYS_UNVEIL, uintptr(unsafe.Pointer(pathPtr)), uintptr(unsafe.Pointer(flagsPtr)), 0) - if e != 0 { - return e + flagsPtr, err := BytePtrFromString(flags) + if err != nil { + return err } - return nil + return unveil(pathPtr, flagsPtr) } // UnveilBlock blocks future unveil calls. // For more information see unveil(2). func UnveilBlock() error { - // Both pointers must be nil. - var pathUnsafe, flagsUnsafe unsafe.Pointer - _, _, e := syscall.Syscall(SYS_UNVEIL, uintptr(pathUnsafe), uintptr(flagsUnsafe), 0) - if e != 0 { - return e + if err := supportsUnveil(); err != nil { + return err } + return unveil(nil, nil) +} + +// supportsUnveil checks for availability of the unveil(2) system call based +// on the running OpenBSD version. +func supportsUnveil() error { + maj, min, err := majmin() + if err != nil { + return err + } + + // unveil is not available before 6.4 + if maj < 6 || (maj == 6 && min <= 3) { + return fmt.Errorf("cannot call Unveil on OpenBSD %d.%d", maj, min) + } + return nil } diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/xattr_bsd.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/xattr_bsd.go index f5f8e9f3665e..e1687939618c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/xattr_bsd.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/xattr_bsd.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build freebsd || netbsd -// +build freebsd netbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go index ca9799b79ef9..2fb219d78763 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_aix_ppc.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build ppc && aix -// +build ppc,aix // Created by cgo -godefs - DO NOT EDIT // cgo -godefs -- -maix32 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go index 200c8c26fe65..b0e6f5c85c7d 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_aix_ppc64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build ppc64 && aix -// +build ppc64,aix // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -maix64 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go index 143007627150..e40fa85245f4 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && darwin -// +build amd64,darwin // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go index ab044a74274f..bb02aa6c0564 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm64 && darwin -// +build arm64,darwin // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go index 17bba0e44f9e..c0e0f8694c1e 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_dragonfly_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && dragonfly -// +build amd64,dragonfly // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go index f8c2c5138748..6c6923906f4e 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_386.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build 386 && freebsd -// +build 386,freebsd // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m32 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go index 96310c3be1b0..dd9163f8e885 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && freebsd -// +build amd64,freebsd // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go index 777b69defa04..493a2a793c02 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm && freebsd -// +build arm,freebsd // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go index c557ac2db317..8b437b307d56 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm64 && freebsd -// +build arm64,freebsd // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_riscv64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_riscv64.go index 341b4d96265b..67c02dd57950 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_riscv64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_freebsd_riscv64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build riscv64 && freebsd -// +build riscv64,freebsd // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux.go index f9c7f479b038..36bf8399f4fa 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux.go @@ -1,7 +1,6 @@ // Code generated by mkmerge; DO NOT EDIT. //go:build linux -// +build linux package unix @@ -481,10 +480,13 @@ const ( BPF_FROM_BE = 0x8 BPF_FROM_LE = 0x0 BPF_FS_MAGIC = 0xcafe4a11 + BPF_F_AFTER = 0x10 BPF_F_ALLOW_MULTI = 0x2 BPF_F_ALLOW_OVERRIDE = 0x1 BPF_F_ANY_ALIGNMENT = 0x2 - BPF_F_KPROBE_MULTI_RETURN = 0x1 + BPF_F_BEFORE = 0x8 + BPF_F_ID = 0x20 + BPF_F_NETFILTER_IP_DEFRAG = 0x1 BPF_F_QUERY_EFFECTIVE = 0x1 BPF_F_REPLACE = 0x4 BPF_F_SLEEPABLE = 0x10 @@ -521,6 +523,7 @@ const ( BPF_MAJOR_VERSION = 0x1 BPF_MAXINSNS = 0x1000 BPF_MEM = 0x60 + BPF_MEMSX = 0x80 BPF_MEMWORDS = 0x10 BPF_MINOR_VERSION = 0x1 BPF_MISC = 0x7 @@ -776,6 +779,8 @@ const ( DEVLINK_GENL_MCGRP_CONFIG_NAME = "config" DEVLINK_GENL_NAME = "devlink" DEVLINK_GENL_VERSION = 0x1 + DEVLINK_PORT_FN_CAP_IPSEC_CRYPTO = 0x4 + DEVLINK_PORT_FN_CAP_IPSEC_PACKET = 0x8 DEVLINK_PORT_FN_CAP_MIGRATABLE = 0x2 DEVLINK_PORT_FN_CAP_ROCE = 0x1 DEVLINK_SB_THRESHOLD_TO_ALPHA_MAX = 0x14 @@ -1698,6 +1703,7 @@ const ( KEXEC_ON_CRASH = 0x1 KEXEC_PRESERVE_CONTEXT = 0x2 KEXEC_SEGMENT_MAX = 0x10 + KEXEC_UPDATE_ELFCOREHDR = 0x4 KEYCTL_ASSUME_AUTHORITY = 0x10 KEYCTL_CAPABILITIES = 0x1f KEYCTL_CAPS0_BIG_KEY = 0x10 @@ -1779,6 +1785,8 @@ const ( LANDLOCK_ACCESS_FS_REMOVE_FILE = 0x20 LANDLOCK_ACCESS_FS_TRUNCATE = 0x4000 LANDLOCK_ACCESS_FS_WRITE_FILE = 0x2 + LANDLOCK_ACCESS_NET_BIND_TCP = 0x1 + LANDLOCK_ACCESS_NET_CONNECT_TCP = 0x2 LANDLOCK_CREATE_RULESET_VERSION = 0x1 LINUX_REBOOT_CMD_CAD_OFF = 0x0 LINUX_REBOOT_CMD_CAD_ON = 0x89abcdef @@ -1795,6 +1803,7 @@ const ( LOCK_SH = 0x1 LOCK_UN = 0x8 LOOP_CLR_FD = 0x4c01 + LOOP_CONFIGURE = 0x4c0a LOOP_CTL_ADD = 0x4c80 LOOP_CTL_GET_FREE = 0x4c82 LOOP_CTL_REMOVE = 0x4c81 @@ -2120,6 +2129,60 @@ const ( NFNL_SUBSYS_QUEUE = 0x3 NFNL_SUBSYS_ULOG = 0x4 NFS_SUPER_MAGIC = 0x6969 + NFT_CHAIN_FLAGS = 0x7 + NFT_CHAIN_MAXNAMELEN = 0x100 + NFT_CT_MAX = 0x17 + NFT_DATA_RESERVED_MASK = 0xffffff00 + NFT_DATA_VALUE_MAXLEN = 0x40 + NFT_EXTHDR_OP_MAX = 0x4 + NFT_FIB_RESULT_MAX = 0x3 + NFT_INNER_MASK = 0xf + NFT_LOGLEVEL_MAX = 0x8 + NFT_NAME_MAXLEN = 0x100 + NFT_NG_MAX = 0x1 + NFT_OBJECT_CONNLIMIT = 0x5 + NFT_OBJECT_COUNTER = 0x1 + NFT_OBJECT_CT_EXPECT = 0x9 + NFT_OBJECT_CT_HELPER = 0x3 + NFT_OBJECT_CT_TIMEOUT = 0x7 + NFT_OBJECT_LIMIT = 0x4 + NFT_OBJECT_MAX = 0xa + NFT_OBJECT_QUOTA = 0x2 + NFT_OBJECT_SECMARK = 0x8 + NFT_OBJECT_SYNPROXY = 0xa + NFT_OBJECT_TUNNEL = 0x6 + NFT_OBJECT_UNSPEC = 0x0 + NFT_OBJ_MAXNAMELEN = 0x100 + NFT_OSF_MAXGENRELEN = 0x10 + NFT_QUEUE_FLAG_BYPASS = 0x1 + NFT_QUEUE_FLAG_CPU_FANOUT = 0x2 + NFT_QUEUE_FLAG_MASK = 0x3 + NFT_REG32_COUNT = 0x10 + NFT_REG32_SIZE = 0x4 + NFT_REG_MAX = 0x4 + NFT_REG_SIZE = 0x10 + NFT_REJECT_ICMPX_MAX = 0x3 + NFT_RT_MAX = 0x4 + NFT_SECMARK_CTX_MAXLEN = 0x100 + NFT_SET_MAXNAMELEN = 0x100 + NFT_SOCKET_MAX = 0x3 + NFT_TABLE_F_MASK = 0x3 + NFT_TABLE_MAXNAMELEN = 0x100 + NFT_TRACETYPE_MAX = 0x3 + NFT_TUNNEL_F_MASK = 0x7 + NFT_TUNNEL_MAX = 0x1 + NFT_TUNNEL_MODE_MAX = 0x2 + NFT_USERDATA_MAXLEN = 0x100 + NFT_XFRM_KEY_MAX = 0x6 + NF_NAT_RANGE_MAP_IPS = 0x1 + NF_NAT_RANGE_MASK = 0x7f + NF_NAT_RANGE_NETMAP = 0x40 + NF_NAT_RANGE_PERSISTENT = 0x8 + NF_NAT_RANGE_PROTO_OFFSET = 0x20 + NF_NAT_RANGE_PROTO_RANDOM = 0x4 + NF_NAT_RANGE_PROTO_RANDOM_ALL = 0x14 + NF_NAT_RANGE_PROTO_RANDOM_FULLY = 0x10 + NF_NAT_RANGE_PROTO_SPECIFIED = 0x2 NILFS_SUPER_MAGIC = 0x3434 NL0 = 0x0 NL1 = 0x100 @@ -2275,6 +2338,7 @@ const ( PERF_MEM_LVLNUM_PMEM = 0xe PERF_MEM_LVLNUM_RAM = 0xd PERF_MEM_LVLNUM_SHIFT = 0x21 + PERF_MEM_LVLNUM_UNC = 0x8 PERF_MEM_LVL_HIT = 0x2 PERF_MEM_LVL_IO = 0x1000 PERF_MEM_LVL_L1 = 0x8 @@ -2403,6 +2467,7 @@ const ( PR_MCE_KILL_GET = 0x22 PR_MCE_KILL_LATE = 0x0 PR_MCE_KILL_SET = 0x1 + PR_MDWE_NO_INHERIT = 0x2 PR_MDWE_REFUSE_EXEC_GAIN = 0x1 PR_MPX_DISABLE_MANAGEMENT = 0x2c PR_MPX_ENABLE_MANAGEMENT = 0x2b @@ -2607,8 +2672,9 @@ const ( RTAX_FEATURES = 0xc RTAX_FEATURE_ALLFRAG = 0x8 RTAX_FEATURE_ECN = 0x1 - RTAX_FEATURE_MASK = 0xf + RTAX_FEATURE_MASK = 0x1f RTAX_FEATURE_SACK = 0x2 + RTAX_FEATURE_TCP_USEC_TS = 0x10 RTAX_FEATURE_TIMESTAMP = 0x4 RTAX_HOPLIMIT = 0xa RTAX_INITCWND = 0xb @@ -2851,9 +2917,38 @@ const ( SCM_RIGHTS = 0x1 SCM_TIMESTAMP = 0x1d SC_LOG_FLUSH = 0x100000 + SECCOMP_ADDFD_FLAG_SEND = 0x2 + SECCOMP_ADDFD_FLAG_SETFD = 0x1 + SECCOMP_FILTER_FLAG_LOG = 0x2 + SECCOMP_FILTER_FLAG_NEW_LISTENER = 0x8 + SECCOMP_FILTER_FLAG_SPEC_ALLOW = 0x4 + SECCOMP_FILTER_FLAG_TSYNC = 0x1 + SECCOMP_FILTER_FLAG_TSYNC_ESRCH = 0x10 + SECCOMP_FILTER_FLAG_WAIT_KILLABLE_RECV = 0x20 + SECCOMP_GET_ACTION_AVAIL = 0x2 + SECCOMP_GET_NOTIF_SIZES = 0x3 + SECCOMP_IOCTL_NOTIF_RECV = 0xc0502100 + SECCOMP_IOCTL_NOTIF_SEND = 0xc0182101 + SECCOMP_IOC_MAGIC = '!' SECCOMP_MODE_DISABLED = 0x0 SECCOMP_MODE_FILTER = 0x2 SECCOMP_MODE_STRICT = 0x1 + SECCOMP_RET_ACTION = 0x7fff0000 + SECCOMP_RET_ACTION_FULL = 0xffff0000 + SECCOMP_RET_ALLOW = 0x7fff0000 + SECCOMP_RET_DATA = 0xffff + SECCOMP_RET_ERRNO = 0x50000 + SECCOMP_RET_KILL = 0x0 + SECCOMP_RET_KILL_PROCESS = 0x80000000 + SECCOMP_RET_KILL_THREAD = 0x0 + SECCOMP_RET_LOG = 0x7ffc0000 + SECCOMP_RET_TRACE = 0x7ff00000 + SECCOMP_RET_TRAP = 0x30000 + SECCOMP_RET_USER_NOTIF = 0x7fc00000 + SECCOMP_SET_MODE_FILTER = 0x1 + SECCOMP_SET_MODE_STRICT = 0x0 + SECCOMP_USER_NOTIF_FD_SYNC_WAKE_UP = 0x1 + SECCOMP_USER_NOTIF_FLAG_CONTINUE = 0x1 SECRETMEM_MAGIC = 0x5345434d SECURITYFS_MAGIC = 0x73636673 SEEK_CUR = 0x1 @@ -3013,6 +3108,7 @@ const ( SOL_TIPC = 0x10f SOL_TLS = 0x11a SOL_UDP = 0x11 + SOL_VSOCK = 0x11f SOL_X25 = 0x106 SOL_XDP = 0x11b SOMAXCONN = 0x1000 @@ -3461,6 +3557,7 @@ const ( XDP_PACKET_HEADROOM = 0x100 XDP_PGOFF_RX_RING = 0x0 XDP_PGOFF_TX_RING = 0x80000000 + XDP_PKT_CONTD = 0x1 XDP_RING_NEED_WAKEUP = 0x1 XDP_RX_RING = 0x2 XDP_SHARED_UMEM = 0x1 @@ -3473,6 +3570,7 @@ const ( XDP_UMEM_REG = 0x4 XDP_UMEM_UNALIGNED_CHUNK_FLAG = 0x1 XDP_USE_NEED_WAKEUP = 0x8 + XDP_USE_SG = 0x10 XDP_ZEROCOPY = 0x4 XENFS_SUPER_MAGIC = 0xabba1974 XFS_SUPER_MAGIC = 0x58465342 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_386.go index 30aee00a5373..42ff8c3c1b06 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_386.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build 386 && linux -// +build 386,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -Wall -Werror -static -I/tmp/386/include -m32 _const.go @@ -282,6 +281,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x40182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x40082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x40082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go index 8ebfa5127857..dca436004fa4 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && linux -// +build amd64,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -Wall -Werror -static -I/tmp/amd64/include -m64 _const.go @@ -283,6 +282,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x40182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x40082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x40082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go index 271a21cdc7ec..5cca668ac302 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_arm.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm && linux -// +build arm,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -Wall -Werror -static -I/tmp/arm/include _const.go @@ -289,6 +288,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x40182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x40082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x40082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go index 910c330a39c5..d8cae6d15340 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm64 && linux -// +build arm64,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -Wall -Werror -static -I/tmp/arm64/include -fsigned-char _const.go @@ -279,6 +278,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x40182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x40082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x40082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go index a640798c9331..28e39afdcb4a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_loong64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build loong64 && linux -// +build loong64,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -Wall -Werror -static -I/tmp/loong64/include _const.go @@ -119,6 +118,7 @@ const ( IXOFF = 0x1000 IXON = 0x400 LASX_CTX_MAGIC = 0x41535801 + LBT_CTX_MAGIC = 0x42540001 LSX_CTX_MAGIC = 0x53580001 MAP_ANON = 0x20 MAP_ANONYMOUS = 0x20 @@ -275,6 +275,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x40182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x40082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x40082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go index 0d5925d34074..cd66e92cb426 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_mips.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build mips && linux -// +build mips,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -Wall -Werror -static -I/tmp/mips/include _const.go @@ -282,6 +281,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x80182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x80082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x80082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x80 SIOCATMARK = 0x40047307 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go index d72a00e0b638..c1595eba78e3 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_mips64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build mips64 && linux -// +build mips64,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -Wall -Werror -static -I/tmp/mips64/include _const.go @@ -282,6 +281,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x80182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x80082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x80082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x80 SIOCATMARK = 0x40047307 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go index 02ba129f857e..ee9456b0da74 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build mips64le && linux -// +build mips64le,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -Wall -Werror -static -I/tmp/mips64le/include _const.go @@ -282,6 +281,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x80182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x80082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x80082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x80 SIOCATMARK = 0x40047307 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go index 8daa6dd96888..8cfca81e1b56 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build mipsle && linux -// +build mipsle,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -Wall -Werror -static -I/tmp/mipsle/include _const.go @@ -282,6 +281,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x80182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x80082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x80082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x80 SIOCATMARK = 0x40047307 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go index 63c8fa2f7f0b..60b0deb3af77 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_ppc.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build ppc && linux -// +build ppc,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -Wall -Werror -static -I/tmp/ppc/include _const.go @@ -337,6 +336,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x80182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x80082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x80082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go index 930799ec1b3b..f90aa7281bfb 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build ppc64 && linux -// +build ppc64,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -Wall -Werror -static -I/tmp/ppc64/include _const.go @@ -341,6 +340,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x80182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x80082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x80082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go index 8605a7dd7efc..ba9e01503383 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build ppc64le && linux -// +build ppc64le,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -Wall -Werror -static -I/tmp/ppc64le/include _const.go @@ -341,6 +340,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x80182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x80082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x80082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go index 95a016f1c01f..07cdfd6e9fd3 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build riscv64 && linux -// +build riscv64,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -Wall -Werror -static -I/tmp/riscv64/include _const.go @@ -228,6 +227,9 @@ const ( PPPIOCUNBRIDGECHAN = 0x7434 PPPIOCXFERUNIT = 0x744e PR_SET_PTRACER_ANY = 0xffffffffffffffff + PTRACE_GETFDPIC = 0x21 + PTRACE_GETFDPIC_EXEC = 0x0 + PTRACE_GETFDPIC_INTERP = 0x1 RLIMIT_AS = 0x9 RLIMIT_MEMLOCK = 0x8 RLIMIT_NOFILE = 0x7 @@ -270,6 +272,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x40182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x40082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x40082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go index 1ae0108f5767..2f1dd214a74e 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_s390x.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build s390x && linux -// +build s390x,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -Wall -Werror -static -I/tmp/s390x/include -fsigned-char _const.go @@ -345,6 +344,9 @@ const ( SCM_TIMESTAMPNS = 0x23 SCM_TXTIME = 0x3d SCM_WIFI_STATUS = 0x29 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x40182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x40082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x40082104 SFD_CLOEXEC = 0x80000 SFD_NONBLOCK = 0x800 SIOCATMARK = 0x8905 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go index 1bb7c6333b42..f40519d90180 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build sparc64 && linux -// +build sparc64,linux // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -Wall -Werror -static -I/tmp/sparc64/include _const.go @@ -336,6 +335,9 @@ const ( SCM_TIMESTAMPNS = 0x21 SCM_TXTIME = 0x3f SCM_WIFI_STATUS = 0x25 + SECCOMP_IOCTL_NOTIF_ADDFD = 0x80182103 + SECCOMP_IOCTL_NOTIF_ID_VALID = 0x80082102 + SECCOMP_IOCTL_NOTIF_SET_FLAGS = 0x80082104 SFD_CLOEXEC = 0x400000 SFD_NONBLOCK = 0x4000 SF_FP = 0x38 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go index 72f7420d20a1..130085df407c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_netbsd_386.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build 386 && netbsd -// +build 386,netbsd // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m32 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go index 8d4eb0c0804e..84769a1a386e 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_netbsd_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && netbsd -// +build amd64,netbsd // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go index 9eef9749f6aa..602ded003332 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm && netbsd -// +build arm,netbsd // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -marm _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm64.go index 3b62ba192c35..efc0406ee1d8 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_netbsd_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm64 && netbsd -// +build arm64,netbsd // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go index af20e474b388..5a6500f83775 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_386.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build 386 && openbsd -// +build 386,openbsd // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m32 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go index 6015fcb2bf69..a5aeeb979de0 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && openbsd -// +build amd64,openbsd // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go index 8d44955e44d8..0e9748a72295 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm && openbsd -// +build arm,openbsd // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go index ae16fe7542ae..4f4449abc17d 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm64 && openbsd -// +build arm64,openbsd // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go index 03d90fe35501..76a363f0fe03 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_mips64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build mips64 && openbsd -// +build mips64,openbsd // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go index 8e2c51b1eec0..43ca0cdfdcf4 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_ppc64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build ppc64 && openbsd -// +build ppc64,openbsd // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go index 13d403031ed6..b1b8bb2005c9 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_openbsd_riscv64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build riscv64 && openbsd -// +build riscv64,openbsd // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go index 1afee6a08905..d2ddd3176e39 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_solaris_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && solaris -// +build amd64,solaris // Code generated by cmd/cgo -godefs; DO NOT EDIT. // cgo -godefs -- -m64 _const.go diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go index fc7d0506f6c0..4dfd2e051d35 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zerrors_zos_s390x.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build zos && s390x -// +build zos,s390x // Hand edited based on zerrors_linux_s390x.go // TODO: auto-generate. diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go index 97f20ca282f5..586317c78e71 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go @@ -1,8 +1,6 @@ // Code generated by linux/mkall.go generatePtracePair("arm", "arm64"). DO NOT EDIT. //go:build linux && (arm || arm64) -// +build linux -// +build arm arm64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go index 0b5f7943054b..d7c881be77d8 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zptrace_mipsnn_linux.go @@ -1,8 +1,6 @@ // Code generated by linux/mkall.go generatePtracePair("mips", "mips64"). DO NOT EDIT. //go:build linux && (mips || mips64) -// +build linux -// +build mips mips64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go index 2807f7e64602..2d2de5d29226 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zptrace_mipsnnle_linux.go @@ -1,8 +1,6 @@ // Code generated by linux/mkall.go generatePtracePair("mipsle", "mips64le"). DO NOT EDIT. //go:build linux && (mipsle || mips64le) -// +build linux -// +build mipsle mips64le package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zptrace_x86_linux.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zptrace_x86_linux.go index 281ea64e34ac..5adc79fb5eab 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zptrace_x86_linux.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zptrace_x86_linux.go @@ -1,8 +1,6 @@ // Code generated by linux/mkall.go generatePtracePair("386", "amd64"). DO NOT EDIT. //go:build linux && (386 || amd64) -// +build linux -// +build 386 amd64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go index d1d1d23311dc..6ea64a3c0c35 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build aix && ppc -// +build aix,ppc package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go index f99a18adc330..99ee4399a3a3 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build aix && ppc64 -// +build aix,ppc64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go index c4d50ae5005c..b68a78362b2c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gc.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build aix && ppc64 && gc -// +build aix,ppc64,gc package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go index 6903d3b09e3d..0a87450bf8ee 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_aix_ppc64_gccgo.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build aix && ppc64 && gccgo -// +build aix,ppc64,gccgo package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go index 1cad561e9839..ccb02f240a4f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build darwin && amd64 -// +build darwin,amd64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go index b18edbd0e31f..1b40b997b526 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build darwin && arm64 -// +build darwin,arm64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go index 0c67df64a503..aad65fc7932f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_dragonfly_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build dragonfly && amd64 -// +build dragonfly,amd64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go index e6e05d145bf7..c0096391af99 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build freebsd && 386 -// +build freebsd,386 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go index 7508accac92f..7664df749600 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build freebsd && amd64 -// +build freebsd,amd64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go index 7b56aead469d..ae099182c9f5 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build freebsd && arm -// +build freebsd,arm package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go index cc623dcaae5d..11fd5d45bbb8 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build freebsd && arm64 -// +build freebsd,arm64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go index 581849197404..c3d2d6530728 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build freebsd && riscv64 -// +build freebsd,riscv64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go index 6be25cd19014..c698cbc01a53 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_illumos_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build illumos && amd64 -// +build illumos,amd64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux.go index 1ff3aec74c5e..1488d27128cd 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux.go @@ -1,7 +1,6 @@ // Code generated by mkmerge; DO NOT EDIT. //go:build linux -// +build linux package unix @@ -38,6 +37,21 @@ func fchmodat(dirfd int, path string, mode uint32) (err error) { // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func fchmodat2(dirfd int, path string, mode uint32, flags int) (err error) { + var _p0 *byte + _p0, err = BytePtrFromString(path) + if err != nil { + return + } + _, _, e1 := Syscall6(SYS_FCHMODAT2, uintptr(dirfd), uintptr(unsafe.Pointer(_p0)), uintptr(mode), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ioctl(fd int, req uint, arg uintptr) (err error) { _, _, e1 := Syscall(SYS_IOCTL, uintptr(fd), uintptr(req), uintptr(arg)) if e1 != 0 { @@ -2195,3 +2209,13 @@ func schedGetattr(pid int, attr *SchedAttr, size uint, flags uint) (err error) { } return } + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func Cachestat(fd uint, crange *CachestatRange, cstat *Cachestat_t, flags uint) (err error) { + _, _, e1 := Syscall6(SYS_CACHESTAT, uintptr(fd), uintptr(unsafe.Pointer(crange)), uintptr(unsafe.Pointer(cstat)), uintptr(flags), 0, 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go index 07b549cc25e8..4def3e9fcb0d 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_386.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build linux && 386 -// +build linux,386 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go index 5f481bf83f46..fef2bc8ba9c9 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build linux && amd64 -// +build linux,amd64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go index 824cd52c7fae..a9fd76a88411 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_arm.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build linux && arm -// +build linux,arm package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go index e77aecfe9853..4600650280aa 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build linux && arm64 -// +build linux,arm64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_loong64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_loong64.go index 806ffd1e125e..c8987d264650 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_loong64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_loong64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build linux && loong64 -// +build linux,loong64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go index 961a3afb7b71..921f43061106 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_mips.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build linux && mips -// +build linux,mips package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go index ed05005e91b6..44f067829c4d 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build linux && mips64 -// +build linux,mips64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go index d365b718f301..e7fa0abf0d19 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_mips64le.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build linux && mips64le -// +build linux,mips64le package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go index c3f1b8bbde01..8c5125675e83 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_mipsle.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build linux && mipsle -// +build linux,mipsle package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc.go index a6574cf98b16..7392fd45e433 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build linux && ppc -// +build linux,ppc package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go index f40990264f49..41180434e609 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build linux && ppc64 -// +build linux,ppc64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go index 9dfcc29974f4..40c6ce7ae543 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_ppc64le.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build linux && ppc64le -// +build linux,ppc64le package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go index 0ab4f2ed7206..2cfe34adb123 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_riscv64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build linux && riscv64 -// +build linux,riscv64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go index 6cde32237dc8..61e6f070971b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_s390x.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build linux && s390x -// +build linux,s390x package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go index 5253d65bf1b9..834b84204283 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build linux && sparc64 -// +build linux,sparc64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go index 2df3c5bac6d1..e91ebc14a199 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build netbsd && 386 -// +build netbsd,386 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go index a60556babbff..be28babbcd68 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build netbsd && amd64 -// +build netbsd,amd64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go index 9f788917a44b..fb587e8261f7 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build netbsd && arm -// +build netbsd,arm package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go index 82a4cb2dc43d..d576438bb088 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build netbsd && arm64 -// +build netbsd,arm64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go index 66b3b6456339..9dc42410b78b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build openbsd && 386 -// +build openbsd,386 package unix @@ -585,6 +584,32 @@ var libc_sysctl_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func fcntl(fd int, cmd int, arg int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fcntl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fcntl fcntl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fcntlPtr(fd int, cmd int, arg unsafe.Pointer) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) n = int(r0) @@ -2213,6 +2238,21 @@ var libc_munmap_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func getfsstat(stat *Statfs_t, bufsize uintptr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_getfsstat_trampoline_addr, uintptr(unsafe.Pointer(stat)), uintptr(bufsize), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getfsstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getfsstat getfsstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -2229,3 +2269,31 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error var libc_utimensat_trampoline_addr uintptr //go:cgo_import_dynamic libc_utimensat utimensat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pledge(promises *byte, execpromises *byte) (err error) { + _, _, e1 := syscall_syscall(libc_pledge_trampoline_addr, uintptr(unsafe.Pointer(promises)), uintptr(unsafe.Pointer(execpromises)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pledge_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pledge pledge "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func unveil(path *byte, flags *byte) (err error) { + _, _, e1 := syscall_syscall(libc_unveil_trampoline_addr, uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(flags)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unveil_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unveil unveil "libc.so" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.s index 3dcacd30d7e4..41b5617316c0 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_386.s @@ -178,6 +178,11 @@ TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $4 DATA ·libc_sysctl_trampoline_addr(SB)/4, $libc_sysctl_trampoline<>(SB) +TEXT libc_fcntl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fcntl(SB) +GLOBL ·libc_fcntl_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fcntl_trampoline_addr(SB)/4, $libc_fcntl_trampoline<>(SB) + TEXT libc_ppoll_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_ppoll(SB) GLOBL ·libc_ppoll_trampoline_addr(SB), RODATA, $4 @@ -668,7 +673,22 @@ TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $4 DATA ·libc_munmap_trampoline_addr(SB)/4, $libc_munmap_trampoline<>(SB) +TEXT libc_getfsstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getfsstat(SB) +GLOBL ·libc_getfsstat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getfsstat_trampoline_addr(SB)/4, $libc_getfsstat_trampoline<>(SB) + TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_utimensat(SB) GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $4 DATA ·libc_utimensat_trampoline_addr(SB)/4, $libc_utimensat_trampoline<>(SB) + +TEXT libc_pledge_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pledge(SB) +GLOBL ·libc_pledge_trampoline_addr(SB), RODATA, $4 +DATA ·libc_pledge_trampoline_addr(SB)/4, $libc_pledge_trampoline<>(SB) + +TEXT libc_unveil_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unveil(SB) +GLOBL ·libc_unveil_trampoline_addr(SB), RODATA, $4 +DATA ·libc_unveil_trampoline_addr(SB)/4, $libc_unveil_trampoline<>(SB) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go index c5c4cc112ede..0d3a0751cd43 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build openbsd && amd64 -// +build openbsd,amd64 package unix @@ -585,6 +584,32 @@ var libc_sysctl_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func fcntl(fd int, cmd int, arg int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fcntl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fcntl fcntl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fcntlPtr(fd int, cmd int, arg unsafe.Pointer) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) n = int(r0) @@ -2213,6 +2238,21 @@ var libc_munmap_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func getfsstat(stat *Statfs_t, bufsize uintptr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_getfsstat_trampoline_addr, uintptr(unsafe.Pointer(stat)), uintptr(bufsize), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getfsstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getfsstat getfsstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -2229,3 +2269,31 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error var libc_utimensat_trampoline_addr uintptr //go:cgo_import_dynamic libc_utimensat utimensat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pledge(promises *byte, execpromises *byte) (err error) { + _, _, e1 := syscall_syscall(libc_pledge_trampoline_addr, uintptr(unsafe.Pointer(promises)), uintptr(unsafe.Pointer(execpromises)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pledge_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pledge pledge "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func unveil(path *byte, flags *byte) (err error) { + _, _, e1 := syscall_syscall(libc_unveil_trampoline_addr, uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(flags)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unveil_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unveil unveil "libc.so" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.s index 2763620b01ad..4019a656f6d5 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_amd64.s @@ -178,6 +178,11 @@ TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) +TEXT libc_fcntl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fcntl(SB) +GLOBL ·libc_fcntl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fcntl_trampoline_addr(SB)/8, $libc_fcntl_trampoline<>(SB) + TEXT libc_ppoll_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_ppoll(SB) GLOBL ·libc_ppoll_trampoline_addr(SB), RODATA, $8 @@ -668,7 +673,22 @@ TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $8 DATA ·libc_munmap_trampoline_addr(SB)/8, $libc_munmap_trampoline<>(SB) +TEXT libc_getfsstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getfsstat(SB) +GLOBL ·libc_getfsstat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getfsstat_trampoline_addr(SB)/8, $libc_getfsstat_trampoline<>(SB) + TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_utimensat(SB) GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $8 DATA ·libc_utimensat_trampoline_addr(SB)/8, $libc_utimensat_trampoline<>(SB) + +TEXT libc_pledge_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pledge(SB) +GLOBL ·libc_pledge_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pledge_trampoline_addr(SB)/8, $libc_pledge_trampoline<>(SB) + +TEXT libc_unveil_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unveil(SB) +GLOBL ·libc_unveil_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unveil_trampoline_addr(SB)/8, $libc_unveil_trampoline<>(SB) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go index 93bfbb328748..c39f7776db33 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build openbsd && arm -// +build openbsd,arm package unix @@ -585,6 +584,32 @@ var libc_sysctl_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func fcntl(fd int, cmd int, arg int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fcntl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fcntl fcntl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fcntlPtr(fd int, cmd int, arg unsafe.Pointer) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) n = int(r0) @@ -2213,6 +2238,21 @@ var libc_munmap_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func getfsstat(stat *Statfs_t, bufsize uintptr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_getfsstat_trampoline_addr, uintptr(unsafe.Pointer(stat)), uintptr(bufsize), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getfsstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getfsstat getfsstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -2229,3 +2269,31 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error var libc_utimensat_trampoline_addr uintptr //go:cgo_import_dynamic libc_utimensat utimensat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pledge(promises *byte, execpromises *byte) (err error) { + _, _, e1 := syscall_syscall(libc_pledge_trampoline_addr, uintptr(unsafe.Pointer(promises)), uintptr(unsafe.Pointer(execpromises)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pledge_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pledge pledge "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func unveil(path *byte, flags *byte) (err error) { + _, _, e1 := syscall_syscall(libc_unveil_trampoline_addr, uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(flags)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unveil_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unveil unveil "libc.so" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.s index c922314048f6..ac4af24f9083 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm.s @@ -178,6 +178,11 @@ TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $4 DATA ·libc_sysctl_trampoline_addr(SB)/4, $libc_sysctl_trampoline<>(SB) +TEXT libc_fcntl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fcntl(SB) +GLOBL ·libc_fcntl_trampoline_addr(SB), RODATA, $4 +DATA ·libc_fcntl_trampoline_addr(SB)/4, $libc_fcntl_trampoline<>(SB) + TEXT libc_ppoll_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_ppoll(SB) GLOBL ·libc_ppoll_trampoline_addr(SB), RODATA, $4 @@ -668,7 +673,22 @@ TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $4 DATA ·libc_munmap_trampoline_addr(SB)/4, $libc_munmap_trampoline<>(SB) +TEXT libc_getfsstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getfsstat(SB) +GLOBL ·libc_getfsstat_trampoline_addr(SB), RODATA, $4 +DATA ·libc_getfsstat_trampoline_addr(SB)/4, $libc_getfsstat_trampoline<>(SB) + TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_utimensat(SB) GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $4 DATA ·libc_utimensat_trampoline_addr(SB)/4, $libc_utimensat_trampoline<>(SB) + +TEXT libc_pledge_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pledge(SB) +GLOBL ·libc_pledge_trampoline_addr(SB), RODATA, $4 +DATA ·libc_pledge_trampoline_addr(SB)/4, $libc_pledge_trampoline<>(SB) + +TEXT libc_unveil_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unveil(SB) +GLOBL ·libc_unveil_trampoline_addr(SB), RODATA, $4 +DATA ·libc_unveil_trampoline_addr(SB)/4, $libc_unveil_trampoline<>(SB) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go index a107b8fda5ff..57571d072fe6 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build openbsd && arm64 -// +build openbsd,arm64 package unix @@ -585,6 +584,32 @@ var libc_sysctl_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func fcntl(fd int, cmd int, arg int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fcntl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fcntl fcntl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fcntlPtr(fd int, cmd int, arg unsafe.Pointer) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) n = int(r0) @@ -2213,6 +2238,21 @@ var libc_munmap_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func getfsstat(stat *Statfs_t, bufsize uintptr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_getfsstat_trampoline_addr, uintptr(unsafe.Pointer(stat)), uintptr(bufsize), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getfsstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getfsstat getfsstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -2229,3 +2269,31 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error var libc_utimensat_trampoline_addr uintptr //go:cgo_import_dynamic libc_utimensat utimensat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pledge(promises *byte, execpromises *byte) (err error) { + _, _, e1 := syscall_syscall(libc_pledge_trampoline_addr, uintptr(unsafe.Pointer(promises)), uintptr(unsafe.Pointer(execpromises)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pledge_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pledge pledge "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func unveil(path *byte, flags *byte) (err error) { + _, _, e1 := syscall_syscall(libc_unveil_trampoline_addr, uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(flags)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unveil_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unveil unveil "libc.so" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.s index a6bc32c92204..f77d532121b9 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_arm64.s @@ -178,6 +178,11 @@ TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) +TEXT libc_fcntl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fcntl(SB) +GLOBL ·libc_fcntl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fcntl_trampoline_addr(SB)/8, $libc_fcntl_trampoline<>(SB) + TEXT libc_ppoll_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_ppoll(SB) GLOBL ·libc_ppoll_trampoline_addr(SB), RODATA, $8 @@ -668,7 +673,22 @@ TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $8 DATA ·libc_munmap_trampoline_addr(SB)/8, $libc_munmap_trampoline<>(SB) +TEXT libc_getfsstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getfsstat(SB) +GLOBL ·libc_getfsstat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getfsstat_trampoline_addr(SB)/8, $libc_getfsstat_trampoline<>(SB) + TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_utimensat(SB) GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $8 DATA ·libc_utimensat_trampoline_addr(SB)/8, $libc_utimensat_trampoline<>(SB) + +TEXT libc_pledge_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pledge(SB) +GLOBL ·libc_pledge_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pledge_trampoline_addr(SB)/8, $libc_pledge_trampoline<>(SB) + +TEXT libc_unveil_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unveil(SB) +GLOBL ·libc_unveil_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unveil_trampoline_addr(SB)/8, $libc_unveil_trampoline<>(SB) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go index c427de509e32..e62963e67e20 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build openbsd && mips64 -// +build openbsd,mips64 package unix @@ -585,6 +584,32 @@ var libc_sysctl_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func fcntl(fd int, cmd int, arg int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fcntl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fcntl fcntl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fcntlPtr(fd int, cmd int, arg unsafe.Pointer) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) n = int(r0) @@ -2213,6 +2238,21 @@ var libc_munmap_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func getfsstat(stat *Statfs_t, bufsize uintptr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_getfsstat_trampoline_addr, uintptr(unsafe.Pointer(stat)), uintptr(bufsize), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getfsstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getfsstat getfsstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -2229,3 +2269,31 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error var libc_utimensat_trampoline_addr uintptr //go:cgo_import_dynamic libc_utimensat utimensat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pledge(promises *byte, execpromises *byte) (err error) { + _, _, e1 := syscall_syscall(libc_pledge_trampoline_addr, uintptr(unsafe.Pointer(promises)), uintptr(unsafe.Pointer(execpromises)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pledge_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pledge pledge "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func unveil(path *byte, flags *byte) (err error) { + _, _, e1 := syscall_syscall(libc_unveil_trampoline_addr, uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(flags)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unveil_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unveil unveil "libc.so" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.s index b4e7bceabf35..fae140b62c9d 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_mips64.s @@ -178,6 +178,11 @@ TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) +TEXT libc_fcntl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fcntl(SB) +GLOBL ·libc_fcntl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fcntl_trampoline_addr(SB)/8, $libc_fcntl_trampoline<>(SB) + TEXT libc_ppoll_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_ppoll(SB) GLOBL ·libc_ppoll_trampoline_addr(SB), RODATA, $8 @@ -668,7 +673,22 @@ TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $8 DATA ·libc_munmap_trampoline_addr(SB)/8, $libc_munmap_trampoline<>(SB) +TEXT libc_getfsstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getfsstat(SB) +GLOBL ·libc_getfsstat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getfsstat_trampoline_addr(SB)/8, $libc_getfsstat_trampoline<>(SB) + TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_utimensat(SB) GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $8 DATA ·libc_utimensat_trampoline_addr(SB)/8, $libc_utimensat_trampoline<>(SB) + +TEXT libc_pledge_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pledge(SB) +GLOBL ·libc_pledge_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pledge_trampoline_addr(SB)/8, $libc_pledge_trampoline<>(SB) + +TEXT libc_unveil_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unveil(SB) +GLOBL ·libc_unveil_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unveil_trampoline_addr(SB)/8, $libc_unveil_trampoline<>(SB) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go index 60c1a99ae490..00831354c82f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build openbsd && ppc64 -// +build openbsd,ppc64 package unix @@ -585,6 +584,32 @@ var libc_sysctl_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func fcntl(fd int, cmd int, arg int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fcntl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fcntl fcntl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fcntlPtr(fd int, cmd int, arg unsafe.Pointer) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) n = int(r0) @@ -2213,6 +2238,21 @@ var libc_munmap_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func getfsstat(stat *Statfs_t, bufsize uintptr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_getfsstat_trampoline_addr, uintptr(unsafe.Pointer(stat)), uintptr(bufsize), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getfsstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getfsstat getfsstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -2229,3 +2269,31 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error var libc_utimensat_trampoline_addr uintptr //go:cgo_import_dynamic libc_utimensat utimensat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pledge(promises *byte, execpromises *byte) (err error) { + _, _, e1 := syscall_syscall(libc_pledge_trampoline_addr, uintptr(unsafe.Pointer(promises)), uintptr(unsafe.Pointer(execpromises)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pledge_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pledge pledge "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func unveil(path *byte, flags *byte) (err error) { + _, _, e1 := syscall_syscall(libc_unveil_trampoline_addr, uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(flags)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unveil_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unveil unveil "libc.so" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.s index ca3f766009c3..9d1e0ff06d0f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_ppc64.s @@ -213,6 +213,12 @@ TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) +TEXT libc_fcntl_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_fcntl(SB) + RET +GLOBL ·libc_fcntl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fcntl_trampoline_addr(SB)/8, $libc_fcntl_trampoline<>(SB) + TEXT libc_ppoll_trampoline<>(SB),NOSPLIT,$0-0 CALL libc_ppoll(SB) RET @@ -801,8 +807,26 @@ TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $8 DATA ·libc_munmap_trampoline_addr(SB)/8, $libc_munmap_trampoline<>(SB) +TEXT libc_getfsstat_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_getfsstat(SB) + RET +GLOBL ·libc_getfsstat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getfsstat_trampoline_addr(SB)/8, $libc_getfsstat_trampoline<>(SB) + TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 CALL libc_utimensat(SB) RET GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $8 DATA ·libc_utimensat_trampoline_addr(SB)/8, $libc_utimensat_trampoline<>(SB) + +TEXT libc_pledge_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_pledge(SB) + RET +GLOBL ·libc_pledge_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pledge_trampoline_addr(SB)/8, $libc_pledge_trampoline<>(SB) + +TEXT libc_unveil_trampoline<>(SB),NOSPLIT,$0-0 + CALL libc_unveil(SB) + RET +GLOBL ·libc_unveil_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unveil_trampoline_addr(SB)/8, $libc_unveil_trampoline<>(SB) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go index 52eba360f81d..79029ed58482 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build openbsd && riscv64 -// +build openbsd,riscv64 package unix @@ -585,6 +584,32 @@ var libc_sysctl_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func fcntl(fd int, cmd int, arg int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_fcntl_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_fcntl fcntl "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func fcntlPtr(fd int, cmd int, arg unsafe.Pointer) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_fcntl_trampoline_addr, uintptr(fd), uintptr(cmd), uintptr(arg)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func ppoll(fds *PollFd, nfds int, timeout *Timespec, sigmask *Sigset_t) (n int, err error) { r0, _, e1 := syscall_syscall6(libc_ppoll_trampoline_addr, uintptr(unsafe.Pointer(fds)), uintptr(nfds), uintptr(unsafe.Pointer(timeout)), uintptr(unsafe.Pointer(sigmask)), 0, 0) n = int(r0) @@ -2213,6 +2238,21 @@ var libc_munmap_trampoline_addr uintptr // THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT +func getfsstat(stat *Statfs_t, bufsize uintptr, flags int) (n int, err error) { + r0, _, e1 := syscall_syscall(libc_getfsstat_trampoline_addr, uintptr(unsafe.Pointer(stat)), uintptr(bufsize), uintptr(flags)) + n = int(r0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_getfsstat_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_getfsstat getfsstat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error) { var _p0 *byte _p0, err = BytePtrFromString(path) @@ -2229,3 +2269,31 @@ func utimensat(dirfd int, path string, times *[2]Timespec, flags int) (err error var libc_utimensat_trampoline_addr uintptr //go:cgo_import_dynamic libc_utimensat utimensat "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func pledge(promises *byte, execpromises *byte) (err error) { + _, _, e1 := syscall_syscall(libc_pledge_trampoline_addr, uintptr(unsafe.Pointer(promises)), uintptr(unsafe.Pointer(execpromises)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_pledge_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_pledge pledge "libc.so" + +// THIS FILE IS GENERATED BY THE COMMAND AT THE TOP; DO NOT EDIT + +func unveil(path *byte, flags *byte) (err error) { + _, _, e1 := syscall_syscall(libc_unveil_trampoline_addr, uintptr(unsafe.Pointer(path)), uintptr(unsafe.Pointer(flags)), 0) + if e1 != 0 { + err = errnoErr(e1) + } + return +} + +var libc_unveil_trampoline_addr uintptr + +//go:cgo_import_dynamic libc_unveil unveil "libc.so" diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.s index 477a7d5b21e9..da115f9a4b69 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_openbsd_riscv64.s @@ -178,6 +178,11 @@ TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) +TEXT libc_fcntl_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_fcntl(SB) +GLOBL ·libc_fcntl_trampoline_addr(SB), RODATA, $8 +DATA ·libc_fcntl_trampoline_addr(SB)/8, $libc_fcntl_trampoline<>(SB) + TEXT libc_ppoll_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_ppoll(SB) GLOBL ·libc_ppoll_trampoline_addr(SB), RODATA, $8 @@ -668,7 +673,22 @@ TEXT libc_munmap_trampoline<>(SB),NOSPLIT,$0-0 GLOBL ·libc_munmap_trampoline_addr(SB), RODATA, $8 DATA ·libc_munmap_trampoline_addr(SB)/8, $libc_munmap_trampoline<>(SB) +TEXT libc_getfsstat_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_getfsstat(SB) +GLOBL ·libc_getfsstat_trampoline_addr(SB), RODATA, $8 +DATA ·libc_getfsstat_trampoline_addr(SB)/8, $libc_getfsstat_trampoline<>(SB) + TEXT libc_utimensat_trampoline<>(SB),NOSPLIT,$0-0 JMP libc_utimensat(SB) GLOBL ·libc_utimensat_trampoline_addr(SB), RODATA, $8 DATA ·libc_utimensat_trampoline_addr(SB)/8, $libc_utimensat_trampoline<>(SB) + +TEXT libc_pledge_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_pledge(SB) +GLOBL ·libc_pledge_trampoline_addr(SB), RODATA, $8 +DATA ·libc_pledge_trampoline_addr(SB)/8, $libc_pledge_trampoline<>(SB) + +TEXT libc_unveil_trampoline<>(SB),NOSPLIT,$0-0 + JMP libc_unveil(SB) +GLOBL ·libc_unveil_trampoline_addr(SB), RODATA, $8 +DATA ·libc_unveil_trampoline_addr(SB)/8, $libc_unveil_trampoline<>(SB) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go index b401894644ff..829b87feb8da 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_solaris_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build solaris && amd64 -// +build solaris,amd64 package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go index 1d8fe1d4b218..94f011238319 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsyscall_zos_s390x.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build zos && s390x -// +build zos,s390x package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go index 55e0484719c4..3a58ae819ad9 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_386.go @@ -2,7 +2,6 @@ // Code generated by the command above; DO NOT EDIT. //go:build 386 && openbsd -// +build 386,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go index d2243cf83f5b..dcb7a0eb729a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; DO NOT EDIT. //go:build amd64 && openbsd -// +build amd64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go index 82dc51bd8b57..db5a7bf13c6f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm.go @@ -2,7 +2,6 @@ // Code generated by the command above; DO NOT EDIT. //go:build arm && openbsd -// +build arm,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm64.go index cbdda1a4ae24..7be575a77703 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; DO NOT EDIT. //go:build arm64 && openbsd -// +build arm64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_mips64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_mips64.go index f55eae1a8211..d6e3174c6962 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_mips64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_mips64.go @@ -2,7 +2,6 @@ // Code generated by the command above; DO NOT EDIT. //go:build mips64 && openbsd -// +build mips64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_ppc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_ppc64.go index e44054470b7e..ee97157d013c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_ppc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_ppc64.go @@ -2,7 +2,6 @@ // Code generated by the command above; DO NOT EDIT. //go:build ppc64 && openbsd -// +build ppc64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_riscv64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_riscv64.go index a0db82fce206..35c3b91d0f4b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_riscv64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysctl_openbsd_riscv64.go @@ -2,7 +2,6 @@ // Code generated by the command above; DO NOT EDIT. //go:build riscv64 && openbsd -// +build riscv64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go index f8298ff9b58a..5edda76870be 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_darwin_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && darwin -// +build amd64,darwin package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go index 5eb433bbf010..0dc9e8b4d950 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_darwin_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm64 && darwin -// +build arm64,darwin package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go index 703675c0c4a5..308ddf3a1f41 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_dragonfly_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && dragonfly -// +build amd64,dragonfly package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go index 4e0d96107b9e..418664e3dc2c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_386.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build 386 && freebsd -// +build 386,freebsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go index 01636b838d30..34d0b86d7ccd 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && freebsd -// +build amd64,freebsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go index ad99bc106a86..b71cf45e2ea3 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm && freebsd -// +build arm,freebsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm64.go index 89dcc4274765..e32df1c1ee37 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm64 && freebsd -// +build arm64,freebsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_riscv64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_riscv64.go index ee37aaa0c906..15ad6111f359 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_riscv64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_freebsd_riscv64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build riscv64 && freebsd -// +build riscv64,freebsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go index 9862853d3411..0cc3ce496e22 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_386.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build 386 && linux -// +build 386,linux package unix @@ -448,4 +447,9 @@ const ( SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 + SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go index 8901f0f4e51d..856d92d69ef9 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && linux -// +build amd64,linux package unix @@ -370,4 +369,9 @@ const ( SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 + SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go index 6902c37eed7f..8d467094cf57 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_arm.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm && linux -// +build arm,linux package unix @@ -412,4 +411,9 @@ const ( SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 + SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go index a6d3dff811f9..edc173244d0d 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm64 && linux -// +build arm64,linux package unix @@ -315,4 +314,9 @@ const ( SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 + SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go index b18f3f71079a..445eba206155 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_loong64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build loong64 && linux -// +build loong64,linux package unix @@ -309,4 +308,9 @@ const ( SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 + SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go index 0302e5e3de12..adba01bca701 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_mips.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build mips && linux -// +build mips,linux package unix @@ -432,4 +431,9 @@ const ( SYS_FUTEX_WAITV = 4449 SYS_SET_MEMPOLICY_HOME_NODE = 4450 SYS_CACHESTAT = 4451 + SYS_FCHMODAT2 = 4452 + SYS_MAP_SHADOW_STACK = 4453 + SYS_FUTEX_WAKE = 4454 + SYS_FUTEX_WAIT = 4455 + SYS_FUTEX_REQUEUE = 4456 ) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go index 6693ba4a0f8b..014c4e9c7a75 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build mips64 && linux -// +build mips64,linux package unix @@ -362,4 +361,9 @@ const ( SYS_FUTEX_WAITV = 5449 SYS_SET_MEMPOLICY_HOME_NODE = 5450 SYS_CACHESTAT = 5451 + SYS_FCHMODAT2 = 5452 + SYS_MAP_SHADOW_STACK = 5453 + SYS_FUTEX_WAKE = 5454 + SYS_FUTEX_WAIT = 5455 + SYS_FUTEX_REQUEUE = 5456 ) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go index fd93f4987c9e..ccc97d74d05d 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_mips64le.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build mips64le && linux -// +build mips64le,linux package unix @@ -362,4 +361,9 @@ const ( SYS_FUTEX_WAITV = 5449 SYS_SET_MEMPOLICY_HOME_NODE = 5450 SYS_CACHESTAT = 5451 + SYS_FCHMODAT2 = 5452 + SYS_MAP_SHADOW_STACK = 5453 + SYS_FUTEX_WAKE = 5454 + SYS_FUTEX_WAIT = 5455 + SYS_FUTEX_REQUEUE = 5456 ) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go index 760ddcadc2ac..ec2b64a95d74 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_mipsle.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build mipsle && linux -// +build mipsle,linux package unix @@ -432,4 +431,9 @@ const ( SYS_FUTEX_WAITV = 4449 SYS_SET_MEMPOLICY_HOME_NODE = 4450 SYS_CACHESTAT = 4451 + SYS_FCHMODAT2 = 4452 + SYS_MAP_SHADOW_STACK = 4453 + SYS_FUTEX_WAKE = 4454 + SYS_FUTEX_WAIT = 4455 + SYS_FUTEX_REQUEUE = 4456 ) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go index cff2b2555b73..21a839e338b3 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build ppc && linux -// +build ppc,linux package unix @@ -439,4 +438,9 @@ const ( SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 + SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go index a4b2405d09d8..c11121ec3b4d 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build ppc64 && linux -// +build ppc64,linux package unix @@ -411,4 +410,9 @@ const ( SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 + SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go index aca54b4e3a1a..909b631fcb45 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_ppc64le.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build ppc64le && linux -// +build ppc64le,linux package unix @@ -411,4 +410,9 @@ const ( SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 + SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go index 9d1738d641f7..e49bed16ea6b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_riscv64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build riscv64 && linux -// +build riscv64,linux package unix @@ -316,4 +315,9 @@ const ( SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 + SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go index 022878dc8df4..66017d2d32b3 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_s390x.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build s390x && linux -// +build s390x,linux package unix @@ -377,4 +376,9 @@ const ( SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 + SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go index 4100a761c20f..47bab18dcedb 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_linux_sparc64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build sparc64 && linux -// +build sparc64,linux package unix @@ -390,4 +389,9 @@ const ( SYS_FUTEX_WAITV = 449 SYS_SET_MEMPOLICY_HOME_NODE = 450 SYS_CACHESTAT = 451 + SYS_FCHMODAT2 = 452 + SYS_MAP_SHADOW_STACK = 453 + SYS_FUTEX_WAKE = 454 + SYS_FUTEX_WAIT = 455 + SYS_FUTEX_REQUEUE = 456 ) diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go index 3a6699eba982..b2aa8cd495e1 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_netbsd_386.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build 386 && netbsd -// +build 386,netbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go index 5677cd4f1584..524a1b1c9a7b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_netbsd_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && netbsd -// +build amd64,netbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go index e784cb6db1c2..d59b943ac22a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm && netbsd -// +build arm,netbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm64.go index bd4952efa5bd..31e771d53e69 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_netbsd_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; DO NOT EDIT. //go:build arm64 && netbsd -// +build arm64,netbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go index 597733813e37..9fd77c6cb464 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_386.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build 386 && openbsd -// +build 386,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go index 16af29189940..af10af28cbe1 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && openbsd -// +build amd64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go index f59b18a97795..cc2028af4bae 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm && openbsd -// +build arm,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go index 721ef5910321..c06dd4415a39 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm64 && openbsd -// +build arm64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_mips64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_mips64.go index 01c43a01fda7..9ddbf3e08fd4 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_mips64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_mips64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build mips64 && openbsd -// +build mips64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_ppc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_ppc64.go index f258cfa24ed4..19a6ee41340a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_ppc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_ppc64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build ppc64 && openbsd -// +build ppc64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_riscv64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_riscv64.go index 07919e0eccd9..05192a782d8d 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_riscv64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_openbsd_riscv64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build riscv64 && openbsd -// +build riscv64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go index 073daad43b7a..b2e308581990 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build zos && s390x -// +build zos,s390x package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go index 7a8161c1d1ca..3e6d57cae7f1 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_aix_ppc.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build ppc && aix -// +build ppc,aix package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go index 07ed733c51b5..3a219bdce7ee 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_aix_ppc64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build ppc64 && aix -// +build ppc64,aix package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go index 690cefc3d06f..091d107f3a5c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_darwin_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && darwin -// +build amd64,darwin package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go index 5bffc10eac09..28ff4ef74d0d 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_darwin_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm64 && darwin -// +build arm64,darwin package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go index d0ba8e9b86a3..30e405bb4cd2 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_dragonfly_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && dragonfly -// +build amd64,dragonfly package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go index 29dc483378ae..6cbd094a3aa1 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_386.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build 386 && freebsd -// +build 386,freebsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go index 0a89b28906a6..7c03b6ee77fa 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && freebsd -// +build amd64,freebsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go index c8666bb15288..422107ee8b13 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm && freebsd -// +build arm,freebsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go index 88fb48a887b1..505a12acfd9d 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm64 && freebsd -// +build arm64,freebsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go index 698dc975e92b..cc986c790066 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_freebsd_riscv64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build riscv64 && freebsd -// +build riscv64,freebsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux.go index 18aa70b42623..dc0c955eecdf 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux.go @@ -1,7 +1,6 @@ // Code generated by mkmerge; DO NOT EDIT. //go:build linux -// +build linux package unix @@ -175,7 +174,8 @@ type FscryptPolicyV2 struct { Contents_encryption_mode uint8 Filenames_encryption_mode uint8 Flags uint8 - _ [4]uint8 + Log2_data_unit_size uint8 + _ [3]uint8 Master_key_identifier [16]uint8 } @@ -456,60 +456,63 @@ type Ucred struct { } type TCPInfo struct { - State uint8 - Ca_state uint8 - Retransmits uint8 - Probes uint8 - Backoff uint8 - Options uint8 - Rto uint32 - Ato uint32 - Snd_mss uint32 - Rcv_mss uint32 - Unacked uint32 - Sacked uint32 - Lost uint32 - Retrans uint32 - Fackets uint32 - Last_data_sent uint32 - Last_ack_sent uint32 - Last_data_recv uint32 - Last_ack_recv uint32 - Pmtu uint32 - Rcv_ssthresh uint32 - Rtt uint32 - Rttvar uint32 - Snd_ssthresh uint32 - Snd_cwnd uint32 - Advmss uint32 - Reordering uint32 - Rcv_rtt uint32 - Rcv_space uint32 - Total_retrans uint32 - Pacing_rate uint64 - Max_pacing_rate uint64 - Bytes_acked uint64 - Bytes_received uint64 - Segs_out uint32 - Segs_in uint32 - Notsent_bytes uint32 - Min_rtt uint32 - Data_segs_in uint32 - Data_segs_out uint32 - Delivery_rate uint64 - Busy_time uint64 - Rwnd_limited uint64 - Sndbuf_limited uint64 - Delivered uint32 - Delivered_ce uint32 - Bytes_sent uint64 - Bytes_retrans uint64 - Dsack_dups uint32 - Reord_seen uint32 - Rcv_ooopack uint32 - Snd_wnd uint32 - Rcv_wnd uint32 - Rehash uint32 + State uint8 + Ca_state uint8 + Retransmits uint8 + Probes uint8 + Backoff uint8 + Options uint8 + Rto uint32 + Ato uint32 + Snd_mss uint32 + Rcv_mss uint32 + Unacked uint32 + Sacked uint32 + Lost uint32 + Retrans uint32 + Fackets uint32 + Last_data_sent uint32 + Last_ack_sent uint32 + Last_data_recv uint32 + Last_ack_recv uint32 + Pmtu uint32 + Rcv_ssthresh uint32 + Rtt uint32 + Rttvar uint32 + Snd_ssthresh uint32 + Snd_cwnd uint32 + Advmss uint32 + Reordering uint32 + Rcv_rtt uint32 + Rcv_space uint32 + Total_retrans uint32 + Pacing_rate uint64 + Max_pacing_rate uint64 + Bytes_acked uint64 + Bytes_received uint64 + Segs_out uint32 + Segs_in uint32 + Notsent_bytes uint32 + Min_rtt uint32 + Data_segs_in uint32 + Data_segs_out uint32 + Delivery_rate uint64 + Busy_time uint64 + Rwnd_limited uint64 + Sndbuf_limited uint64 + Delivered uint32 + Delivered_ce uint32 + Bytes_sent uint64 + Bytes_retrans uint64 + Dsack_dups uint32 + Reord_seen uint32 + Rcv_ooopack uint32 + Snd_wnd uint32 + Rcv_wnd uint32 + Rehash uint32 + Total_rto uint16 + Total_rto_recoveries uint16 + Total_rto_time uint32 } type CanFilter struct { @@ -552,7 +555,7 @@ const ( SizeofIPv6MTUInfo = 0x20 SizeofICMPv6Filter = 0x20 SizeofUcred = 0xc - SizeofTCPInfo = 0xf0 + SizeofTCPInfo = 0xf8 SizeofCanFilter = 0x8 SizeofTCPRepairOpt = 0x8 ) @@ -2672,6 +2675,7 @@ const ( BPF_PROG_TYPE_LSM = 0x1d BPF_PROG_TYPE_SK_LOOKUP = 0x1e BPF_PROG_TYPE_SYSCALL = 0x1f + BPF_PROG_TYPE_NETFILTER = 0x20 BPF_CGROUP_INET_INGRESS = 0x0 BPF_CGROUP_INET_EGRESS = 0x1 BPF_CGROUP_INET_SOCK_CREATE = 0x2 @@ -2716,6 +2720,11 @@ const ( BPF_PERF_EVENT = 0x29 BPF_TRACE_KPROBE_MULTI = 0x2a BPF_LSM_CGROUP = 0x2b + BPF_STRUCT_OPS = 0x2c + BPF_NETFILTER = 0x2d + BPF_TCX_INGRESS = 0x2e + BPF_TCX_EGRESS = 0x2f + BPF_TRACE_UPROBE_MULTI = 0x30 BPF_LINK_TYPE_UNSPEC = 0x0 BPF_LINK_TYPE_RAW_TRACEPOINT = 0x1 BPF_LINK_TYPE_TRACING = 0x2 @@ -2726,6 +2735,18 @@ const ( BPF_LINK_TYPE_PERF_EVENT = 0x7 BPF_LINK_TYPE_KPROBE_MULTI = 0x8 BPF_LINK_TYPE_STRUCT_OPS = 0x9 + BPF_LINK_TYPE_NETFILTER = 0xa + BPF_LINK_TYPE_TCX = 0xb + BPF_LINK_TYPE_UPROBE_MULTI = 0xc + BPF_PERF_EVENT_UNSPEC = 0x0 + BPF_PERF_EVENT_UPROBE = 0x1 + BPF_PERF_EVENT_URETPROBE = 0x2 + BPF_PERF_EVENT_KPROBE = 0x3 + BPF_PERF_EVENT_KRETPROBE = 0x4 + BPF_PERF_EVENT_TRACEPOINT = 0x5 + BPF_PERF_EVENT_EVENT = 0x6 + BPF_F_KPROBE_MULTI_RETURN = 0x1 + BPF_F_UPROBE_MULTI_RETURN = 0x1 BPF_ANY = 0x0 BPF_NOEXIST = 0x1 BPF_EXIST = 0x2 @@ -2743,6 +2764,8 @@ const ( BPF_F_MMAPABLE = 0x400 BPF_F_PRESERVE_ELEMS = 0x800 BPF_F_INNER_MAP = 0x1000 + BPF_F_LINK = 0x2000 + BPF_F_PATH_FD = 0x4000 BPF_STATS_RUN_TIME = 0x0 BPF_STACK_BUILD_ID_EMPTY = 0x0 BPF_STACK_BUILD_ID_VALID = 0x1 @@ -2763,6 +2786,7 @@ const ( BPF_F_ZERO_CSUM_TX = 0x2 BPF_F_DONT_FRAGMENT = 0x4 BPF_F_SEQ_NUMBER = 0x8 + BPF_F_NO_TUNNEL_KEY = 0x10 BPF_F_TUNINFO_FLAGS = 0x10 BPF_F_INDEX_MASK = 0xffffffff BPF_F_CURRENT_CPU = 0xffffffff @@ -2779,6 +2803,8 @@ const ( BPF_F_ADJ_ROOM_ENCAP_L4_UDP = 0x10 BPF_F_ADJ_ROOM_NO_CSUM_RESET = 0x20 BPF_F_ADJ_ROOM_ENCAP_L2_ETH = 0x40 + BPF_F_ADJ_ROOM_DECAP_L3_IPV4 = 0x80 + BPF_F_ADJ_ROOM_DECAP_L3_IPV6 = 0x100 BPF_ADJ_ROOM_ENCAP_L2_MASK = 0xff BPF_ADJ_ROOM_ENCAP_L2_SHIFT = 0x38 BPF_F_SYSCTL_BASE_NAME = 0x1 @@ -2867,6 +2893,8 @@ const ( BPF_DEVCG_DEV_CHAR = 0x2 BPF_FIB_LOOKUP_DIRECT = 0x1 BPF_FIB_LOOKUP_OUTPUT = 0x2 + BPF_FIB_LOOKUP_SKIP_NEIGH = 0x4 + BPF_FIB_LOOKUP_TBID = 0x8 BPF_FIB_LKUP_RET_SUCCESS = 0x0 BPF_FIB_LKUP_RET_BLACKHOLE = 0x1 BPF_FIB_LKUP_RET_UNREACHABLE = 0x2 @@ -2902,6 +2930,7 @@ const ( BPF_CORE_ENUMVAL_EXISTS = 0xa BPF_CORE_ENUMVAL_VALUE = 0xb BPF_CORE_TYPE_MATCHES = 0xc + BPF_F_TIMER_ABS = 0x1 ) const ( @@ -2980,6 +3009,12 @@ type LoopInfo64 struct { Encrypt_key [32]uint8 Init [2]uint64 } +type LoopConfig struct { + Fd uint32 + Size uint32 + Info LoopInfo64 + _ [8]uint64 +} type TIPCSocketAddr struct { Ref uint32 @@ -3368,7 +3403,7 @@ const ( DEVLINK_PORT_FN_ATTR_STATE = 0x2 DEVLINK_PORT_FN_ATTR_OPSTATE = 0x3 DEVLINK_PORT_FN_ATTR_CAPS = 0x4 - DEVLINK_PORT_FUNCTION_ATTR_MAX = 0x4 + DEVLINK_PORT_FUNCTION_ATTR_MAX = 0x5 ) type FsverityDigest struct { @@ -4152,7 +4187,8 @@ const ( ) type LandlockRulesetAttr struct { - Access_fs uint64 + Access_fs uint64 + Access_net uint64 } type LandlockPathBeneathAttr struct { @@ -5103,7 +5139,7 @@ const ( NL80211_FREQUENCY_ATTR_GO_CONCURRENT = 0xf NL80211_FREQUENCY_ATTR_INDOOR_ONLY = 0xe NL80211_FREQUENCY_ATTR_IR_CONCURRENT = 0xf - NL80211_FREQUENCY_ATTR_MAX = 0x1b + NL80211_FREQUENCY_ATTR_MAX = 0x1c NL80211_FREQUENCY_ATTR_MAX_TX_POWER = 0x6 NL80211_FREQUENCY_ATTR_NO_10MHZ = 0x11 NL80211_FREQUENCY_ATTR_NO_160MHZ = 0xc @@ -5516,7 +5552,7 @@ const ( NL80211_REGDOM_TYPE_CUSTOM_WORLD = 0x2 NL80211_REGDOM_TYPE_INTERSECTION = 0x3 NL80211_REGDOM_TYPE_WORLD = 0x1 - NL80211_REG_RULE_ATTR_MAX = 0x7 + NL80211_REG_RULE_ATTR_MAX = 0x8 NL80211_REKEY_DATA_AKM = 0x4 NL80211_REKEY_DATA_KCK = 0x2 NL80211_REKEY_DATA_KEK = 0x1 @@ -5883,3 +5919,15 @@ type SchedAttr struct { } const SizeofSchedAttr = 0x38 + +type Cachestat_t struct { + Cache uint64 + Dirty uint64 + Writeback uint64 + Evicted uint64 + Recently_evicted uint64 +} +type CachestatRange struct { + Off uint64 + Len uint64 +} diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_386.go index 6d8acbcc5708..438a30affadc 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_386.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build 386 && linux -// +build 386,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go index 59293c688412..adceca3553b6 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && linux -// +build amd64,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go index 40cfa38c29f6..eeaa00a37d69 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_arm.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm && linux -// +build arm,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go index 055bc4216d4b..6739aa91d4e2 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm64 && linux -// +build arm64,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go index f28affbc6078..9920ef6317d0 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_loong64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build loong64 && linux -// +build loong64,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go index 9d71e7ccd8b0..2923b799a48c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_mips.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build mips && linux -// +build mips,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go index fd5ccd332a16..ce2750ee415d 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_mips64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build mips64 && linux -// +build mips64,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go index 7704de77a2f6..3038811d70bb 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build mips64le && linux -// +build mips64le,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go index df00b87571ae..efc6fed18c1f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build mipsle && linux -// +build mipsle,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go index 0942840db6ed..9a654b75a90f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_ppc.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build ppc && linux -// +build ppc,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go index 034874395081..40d358e33e31 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build ppc64 && linux -// +build ppc64,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go index bad06704757b..148c6ceb869c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build ppc64le && linux -// +build ppc64le,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go index 1b4c97c32a62..72ba81543ef7 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build riscv64 && linux -// +build riscv64,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go index aa268d025cf9..71e765508e26 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_s390x.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build s390x && linux -// +build s390x,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go index 444045b6c585..4abbdb9de932 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build sparc64 && linux -// +build sparc64,linux package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go index 9bc4c8f9d889..f22e7947d94c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_netbsd_386.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build 386 && netbsd -// +build 386,netbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go index bb05f655d225..066a7d83d29e 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_netbsd_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && netbsd -// +build amd64,netbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go index db40e3a19c66..439548ec9ad4 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm && netbsd -// +build arm,netbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go index 11121151ccf0..16085d3bbcc7 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_netbsd_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm64 && netbsd -// +build arm64,netbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go index 26eba23b729f..afd13a3af7b2 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_386.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build 386 && openbsd -// +build 386,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go index 5a5479886989..5d97f1f9b652 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && openbsd -// +build amd64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go index be58c4e1ff8b..34871cdc1590 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm && openbsd -// +build arm,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go index 52338266cb3e..5911bceb3193 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_arm64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build arm64 && openbsd -// +build arm64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_mips64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_mips64.go index 605cfdb12b1d..e4f24f3bc9a3 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_mips64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_mips64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build mips64 && openbsd -// +build mips64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_ppc64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_ppc64.go index d6724c0102c8..ca50a793035b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_ppc64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_ppc64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build ppc64 && openbsd -// +build ppc64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_riscv64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_riscv64.go index ddfd27a434a1..d7d7f79023f9 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_riscv64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_openbsd_riscv64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build riscv64 && openbsd -// +build riscv64,openbsd package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go index 0400747c67d4..14160576d285 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_solaris_amd64.go @@ -2,7 +2,6 @@ // Code generated by the command above; see README.md. DO NOT EDIT. //go:build amd64 && solaris -// +build amd64,solaris package unix diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go index aec1efcb306a..54f31be63737 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/unix/ztypes_zos_s390x.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build zos && s390x -// +build zos,s390x // Hand edited based on ztypes_linux_s390x.go // TODO: auto-generate. diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/aliases.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/aliases.go index a20ebea63312..ce2d713d62e4 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/aliases.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/aliases.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows && go1.9 -// +build windows,go1.9 package windows diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/empty.s b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/empty.s index fdbbbcd31717..ba64caca5d35 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/empty.s +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/empty.s @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !go1.12 -// +build !go1.12 // This file is here to allow bodyless functions with go:linkname for Go 1.11 // and earlier (see https://golang.org/issue/23311). diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/env_windows.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/env_windows.go index b8ad19250689..d4577a423887 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/env_windows.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/env_windows.go @@ -37,14 +37,17 @@ func (token Token) Environ(inheritExisting bool) (env []string, err error) { return nil, err } defer DestroyEnvironmentBlock(block) - blockp := unsafe.Pointer(block) - for { - entry := UTF16PtrToString((*uint16)(blockp)) - if len(entry) == 0 { - break + size := unsafe.Sizeof(*block) + for *block != 0 { + // find NUL terminator + end := unsafe.Pointer(block) + for *(*uint16)(end) != 0 { + end = unsafe.Add(end, size) } - env = append(env, entry) - blockp = unsafe.Add(blockp, 2*(len(entry)+1)) + + entry := unsafe.Slice(block, (uintptr(end)-uintptr(unsafe.Pointer(block)))/size) + env = append(env, UTF16ToString(entry)) + block = (*uint16)(unsafe.Add(end, size)) } return env, nil } diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/eventlog.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/eventlog.go index 2cd60645ee7d..6c366955d979 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/eventlog.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/eventlog.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows -// +build windows package windows diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/mksyscall.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/mksyscall.go index 8563f79c57f8..dbcdb090c0cf 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/mksyscall.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/mksyscall.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build generate -// +build generate package windows diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/race.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/race.go index 9196b089ca14..0f1bdc3860fb 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/race.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/race.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows && race -// +build windows,race package windows diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/race0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/race0.go index 7bae4817a06c..0c78da78b13f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/race0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/race0.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows && !race -// +build windows,!race package windows diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/registry/key.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/registry/key.go index 6c8d97b6a590..fd8632444ec2 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/registry/key.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/registry/key.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows -// +build windows // Package registry provides access to the Windows registry. // diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/registry/mksyscall.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/registry/mksyscall.go index ee74927d3c66..bbf86ccf0c05 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/registry/mksyscall.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/registry/mksyscall.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build generate -// +build generate package registry diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/registry/syscall.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/registry/syscall.go index 417335123084..f533091c19ef 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/registry/syscall.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/registry/syscall.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows -// +build windows package registry diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/registry/value.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/registry/value.go index 2789f6f18d8f..74db26b94dfa 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/registry/value.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/registry/value.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows -// +build windows package registry diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/service.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/service.go index c44a1b963601..a9dc6308d68c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/service.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/service.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows -// +build windows package windows diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/str.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/str.go index 4fc01434e4a2..6a4f9ce6aa0f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/str.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/str.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows -// +build windows package windows diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/syscall.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/syscall.go index 8732cdb957f3..e85ed6b9c84b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/syscall.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/syscall.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build windows -// +build windows // Package windows contains an interface to the low-level operating system // primitives. OS details vary depending on the underlying system, and diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/syscall_windows.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/syscall_windows.go index 35cfc57ca89b..6395a031d45d 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/syscall_windows.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/syscall_windows.go @@ -125,8 +125,7 @@ func UTF16PtrToString(p *uint16) string { for ptr := unsafe.Pointer(p); *(*uint16)(ptr) != 0; n++ { ptr = unsafe.Pointer(uintptr(ptr) + unsafe.Sizeof(*p)) } - - return string(utf16.Decode(unsafe.Slice(p, n))) + return UTF16ToString(unsafe.Slice(p, n)) } func Getpagesize() int { return 4096 } @@ -155,6 +154,8 @@ func NewCallbackCDecl(fn interface{}) uintptr { //sys GetModuleFileName(module Handle, filename *uint16, size uint32) (n uint32, err error) = kernel32.GetModuleFileNameW //sys GetModuleHandleEx(flags uint32, moduleName *uint16, module *Handle) (err error) = kernel32.GetModuleHandleExW //sys SetDefaultDllDirectories(directoryFlags uint32) (err error) +//sys AddDllDirectory(path *uint16) (cookie uintptr, err error) = kernel32.AddDllDirectory +//sys RemoveDllDirectory(cookie uintptr) (err error) = kernel32.RemoveDllDirectory //sys SetDllDirectory(path string) (err error) = kernel32.SetDllDirectoryW //sys GetVersion() (ver uint32, err error) //sys FormatMessage(flags uint32, msgsrc uintptr, msgid uint32, langid uint32, buf []uint16, args *byte) (n uint32, err error) = FormatMessageW @@ -192,6 +193,7 @@ func NewCallbackCDecl(fn interface{}) uintptr { //sys GetComputerName(buf *uint16, n *uint32) (err error) = GetComputerNameW //sys GetComputerNameEx(nametype uint32, buf *uint16, n *uint32) (err error) = GetComputerNameExW //sys SetEndOfFile(handle Handle) (err error) +//sys SetFileValidData(handle Handle, validDataLength int64) (err error) //sys GetSystemTimeAsFileTime(time *Filetime) //sys GetSystemTimePreciseAsFileTime(time *Filetime) //sys GetTimeZoneInformation(tzi *Timezoneinformation) (rc uint32, err error) [failretval==0xffffffff] @@ -233,6 +235,7 @@ func NewCallbackCDecl(fn interface{}) uintptr { //sys CreateEnvironmentBlock(block **uint16, token Token, inheritExisting bool) (err error) = userenv.CreateEnvironmentBlock //sys DestroyEnvironmentBlock(block *uint16) (err error) = userenv.DestroyEnvironmentBlock //sys getTickCount64() (ms uint64) = kernel32.GetTickCount64 +//sys GetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetime) (err error) //sys SetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetime) (err error) //sys GetFileAttributes(name *uint16) (attrs uint32, err error) [failretval==INVALID_FILE_ATTRIBUTES] = kernel32.GetFileAttributesW //sys SetFileAttributes(name *uint16, attrs uint32) (err error) = kernel32.SetFileAttributesW @@ -969,7 +972,8 @@ func (sa *SockaddrUnix) sockaddr() (unsafe.Pointer, int32, error) { if n > 0 { sl += int32(n) + 1 } - if sa.raw.Path[0] == '@' { + if sa.raw.Path[0] == '@' || (sa.raw.Path[0] == 0 && sl > 3) { + // Check sl > 3 so we don't change unnamed socket behavior. sa.raw.Path[0] = 0 // Don't count trailing NUL for abstract address. sl-- diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/types_windows.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/types_windows.go index b88dc7c85e4e..359780f6ace5 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/types_windows.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/types_windows.go @@ -1094,7 +1094,33 @@ const ( SOMAXCONN = 0x7fffffff - TCP_NODELAY = 1 + TCP_NODELAY = 1 + TCP_EXPEDITED_1122 = 2 + TCP_KEEPALIVE = 3 + TCP_MAXSEG = 4 + TCP_MAXRT = 5 + TCP_STDURG = 6 + TCP_NOURG = 7 + TCP_ATMARK = 8 + TCP_NOSYNRETRIES = 9 + TCP_TIMESTAMPS = 10 + TCP_OFFLOAD_PREFERENCE = 11 + TCP_CONGESTION_ALGORITHM = 12 + TCP_DELAY_FIN_ACK = 13 + TCP_MAXRTMS = 14 + TCP_FASTOPEN = 15 + TCP_KEEPCNT = 16 + TCP_KEEPIDLE = TCP_KEEPALIVE + TCP_KEEPINTVL = 17 + TCP_FAIL_CONNECT_ON_ICMP_ERROR = 18 + TCP_ICMP_ERROR_INFO = 19 + + UDP_NOCHECKSUM = 1 + UDP_SEND_MSG_SIZE = 2 + UDP_RECV_MAX_COALESCED_SIZE = 3 + UDP_CHECKSUM_COVERAGE = 20 + + UDP_COALESCED_INFO = 3 SHUT_RD = 0 SHUT_WR = 1 diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/zsyscall_windows.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/zsyscall_windows.go index 8b1688de4cd1..e8791c82c30f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/zsyscall_windows.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/sys/windows/zsyscall_windows.go @@ -184,6 +184,7 @@ var ( procGetAdaptersInfo = modiphlpapi.NewProc("GetAdaptersInfo") procGetBestInterfaceEx = modiphlpapi.NewProc("GetBestInterfaceEx") procGetIfEntry = modiphlpapi.NewProc("GetIfEntry") + procAddDllDirectory = modkernel32.NewProc("AddDllDirectory") procAssignProcessToJobObject = modkernel32.NewProc("AssignProcessToJobObject") procCancelIo = modkernel32.NewProc("CancelIo") procCancelIoEx = modkernel32.NewProc("CancelIoEx") @@ -253,6 +254,7 @@ var ( procGetFileAttributesW = modkernel32.NewProc("GetFileAttributesW") procGetFileInformationByHandle = modkernel32.NewProc("GetFileInformationByHandle") procGetFileInformationByHandleEx = modkernel32.NewProc("GetFileInformationByHandleEx") + procGetFileTime = modkernel32.NewProc("GetFileTime") procGetFileType = modkernel32.NewProc("GetFileType") procGetFinalPathNameByHandleW = modkernel32.NewProc("GetFinalPathNameByHandleW") procGetFullPathNameW = modkernel32.NewProc("GetFullPathNameW") @@ -329,6 +331,7 @@ var ( procReadProcessMemory = modkernel32.NewProc("ReadProcessMemory") procReleaseMutex = modkernel32.NewProc("ReleaseMutex") procRemoveDirectoryW = modkernel32.NewProc("RemoveDirectoryW") + procRemoveDllDirectory = modkernel32.NewProc("RemoveDllDirectory") procResetEvent = modkernel32.NewProc("ResetEvent") procResizePseudoConsole = modkernel32.NewProc("ResizePseudoConsole") procResumeThread = modkernel32.NewProc("ResumeThread") @@ -339,6 +342,7 @@ var ( procSetDefaultDllDirectories = modkernel32.NewProc("SetDefaultDllDirectories") procSetDllDirectoryW = modkernel32.NewProc("SetDllDirectoryW") procSetEndOfFile = modkernel32.NewProc("SetEndOfFile") + procSetFileValidData = modkernel32.NewProc("SetFileValidData") procSetEnvironmentVariableW = modkernel32.NewProc("SetEnvironmentVariableW") procSetErrorMode = modkernel32.NewProc("SetErrorMode") procSetEvent = modkernel32.NewProc("SetEvent") @@ -1604,6 +1608,15 @@ func GetIfEntry(pIfRow *MibIfRow) (errcode error) { return } +func AddDllDirectory(path *uint16) (cookie uintptr, err error) { + r0, _, e1 := syscall.Syscall(procAddDllDirectory.Addr(), 1, uintptr(unsafe.Pointer(path)), 0, 0) + cookie = uintptr(r0) + if cookie == 0 { + err = errnoErr(e1) + } + return +} + func AssignProcessToJobObject(job Handle, process Handle) (err error) { r1, _, e1 := syscall.Syscall(procAssignProcessToJobObject.Addr(), 2, uintptr(job), uintptr(process), 0) if r1 == 0 { @@ -2185,6 +2198,14 @@ func GetFileInformationByHandleEx(handle Handle, class uint32, outBuffer *byte, return } +func GetFileTime(handle Handle, ctime *Filetime, atime *Filetime, wtime *Filetime) (err error) { + r1, _, e1 := syscall.Syscall6(procGetFileTime.Addr(), 4, uintptr(handle), uintptr(unsafe.Pointer(ctime)), uintptr(unsafe.Pointer(atime)), uintptr(unsafe.Pointer(wtime)), 0, 0) + if r1 == 0 { + err = errnoErr(e1) + } + return +} + func GetFileType(filehandle Handle) (n uint32, err error) { r0, _, e1 := syscall.Syscall(procGetFileType.Addr(), 1, uintptr(filehandle), 0, 0) n = uint32(r0) @@ -2870,6 +2891,14 @@ func RemoveDirectory(path *uint16) (err error) { return } +func RemoveDllDirectory(cookie uintptr) (err error) { + r1, _, e1 := syscall.Syscall(procRemoveDllDirectory.Addr(), 1, uintptr(cookie), 0, 0) + if r1 == 0 { + err = errnoErr(e1) + } + return +} + func ResetEvent(event Handle) (err error) { r1, _, e1 := syscall.Syscall(procResetEvent.Addr(), 1, uintptr(event), 0, 0) if r1 == 0 { @@ -2960,6 +2989,14 @@ func SetEndOfFile(handle Handle) (err error) { return } +func SetFileValidData(handle Handle, validDataLength int64) (err error) { + r1, _, e1 := syscall.Syscall(procSetFileValidData.Addr(), 2, uintptr(handle), uintptr(validDataLength), 0) + if r1 == 0 { + err = errnoErr(e1) + } + return +} + func SetEnvironmentVariable(name *uint16, value *uint16) (err error) { r1, _, e1 := syscall.Syscall(procSetEnvironmentVariableW.Addr(), 2, uintptr(unsafe.Pointer(name)), uintptr(unsafe.Pointer(value)), 0) if r1 == 0 { diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/term/term_unix.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/term/term_unix.go index 62c2b3f41f02..1ad0ddfe30d0 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/term/term_unix.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/term/term_unix.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos -// +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos package term diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/term/term_unix_bsd.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/term/term_unix_bsd.go index 853b3d69864a..9dbf546298d3 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/term/term_unix_bsd.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/term/term_unix_bsd.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build darwin || dragonfly || freebsd || netbsd || openbsd -// +build darwin dragonfly freebsd netbsd openbsd package term diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/term/term_unix_other.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/term/term_unix_other.go index 1e8955c934ff..1b36de799a2e 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/term/term_unix_other.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/term/term_unix_other.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build aix || linux || solaris || zos -// +build aix linux solaris zos package term diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/term/term_unsupported.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/term/term_unsupported.go index f1df8506516d..3c409e5885e9 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/term/term_unsupported.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/term/term_unsupported.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !aix && !darwin && !dragonfly && !freebsd && !linux && !netbsd && !openbsd && !zos && !windows && !solaris && !plan9 -// +build !aix,!darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!zos,!windows,!solaris,!plan9 package term diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/message/catalog/go19.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/message/catalog/go19.go index 4e5e87f8fa64..291a4df94977 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/message/catalog/go19.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/message/catalog/go19.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build go1.9 -// +build go1.9 package catalog diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/message/catalog/gopre19.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/message/catalog/gopre19.go index 9e14685a589b..da44ebb8be5c 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/message/catalog/gopre19.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/message/catalog/gopre19.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !go1.9 -// +build !go1.9 package catalog diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go index 8a7392c4a162..784bb8808764 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build go1.10 -// +build go1.10 package bidirule diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go index bb0a920018c8..8e1e94395528 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/secure/bidirule/bidirule9.0.0.go @@ -3,7 +3,6 @@ // license that can be found in the LICENSE file. //go:build !go1.10 -// +build !go1.10 package bidirule diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables10.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables10.0.0.go index 42fa8d72cec0..d2bd71181d91 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables10.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables10.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.10 && !go1.13 -// +build go1.10,!go1.13 package bidi diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables11.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables11.0.0.go index 56a0e1ea2165..f76bdca27353 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables11.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables11.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.13 && !go1.14 -// +build go1.13,!go1.14 package bidi diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables12.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables12.0.0.go index baacf32b43c3..3aa2c3bdf8c3 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables12.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables12.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.14 && !go1.16 -// +build go1.14,!go1.16 package bidi diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables13.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables13.0.0.go index ffadb7bebdbe..a7137579069b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables13.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables13.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.16 && !go1.21 -// +build go1.16,!go1.21 package bidi diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables15.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables15.0.0.go index 92cce5802c6a..f15746f7df5b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables15.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables15.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.21 -// +build go1.21 package bidi diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables9.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables9.0.0.go index f517fdb202a5..c164d3791758 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables9.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/bidi/tables9.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build !go1.10 -// +build !go1.10 package bidi diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables10.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables10.0.0.go index f5a0788277ff..1af161c7563e 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables10.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables10.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.10 && !go1.13 -// +build go1.10,!go1.13 package norm diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables11.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables11.0.0.go index cb7239c4377d..eb73ecc37388 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables11.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables11.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.13 && !go1.14 -// +build go1.13,!go1.14 package norm diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables12.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables12.0.0.go index 11b27330017d..276cb8d8c045 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables12.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables12.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.14 && !go1.16 -// +build go1.14,!go1.16 package norm diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables13.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables13.0.0.go index f65785e8ac7f..0cceffd731b0 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables13.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables13.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.16 && !go1.21 -// +build go1.16,!go1.21 package norm diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables15.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables15.0.0.go index e1858b879db7..b0819e42d09b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables15.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables15.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.21 -// +build go1.21 package norm diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables9.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables9.0.0.go index 0175eae50aa6..bf65457d9b49 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables9.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/unicode/norm/tables9.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build !go1.10 -// +build !go1.10 package norm diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables10.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables10.0.0.go index cd9d91cafbb8..07c1cb17af72 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables10.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables10.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.10 && !go1.13 -// +build go1.10,!go1.13 package width diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables11.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables11.0.0.go index 327eaef9b701..89288b3dae32 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables11.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables11.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.13 && !go1.14 -// +build go1.13,!go1.14 package width diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables12.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables12.0.0.go index 5c14ade6d9b1..755ee9122180 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables12.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables12.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.14 && !go1.16 -// +build go1.14,!go1.16 package width diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables13.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables13.0.0.go index b1fcb522cbc6..40c169edf687 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables13.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables13.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.16 && !go1.21 -// +build go1.16,!go1.21 package width diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables15.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables15.0.0.go index 4b91e3384db0..2b85289675eb 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables15.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables15.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build go1.21 -// +build go1.21 package width diff --git a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables9.0.0.go b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables9.0.0.go index 6781f3d960bd..d981330a9f4e 100644 --- a/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables9.0.0.go +++ b/vertical-pod-autoscaler/e2e/vendor/golang.org/x/text/width/tables9.0.0.go @@ -1,7 +1,6 @@ // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. //go:build !go1.10 -// +build !go1.10 package width diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/CONTRIBUTING.md b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/CONTRIBUTING.md index 8e001134da20..608aa6e1ac5e 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/CONTRIBUTING.md +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/CONTRIBUTING.md @@ -20,10 +20,6 @@ How to get your contributions merged smoothly and quickly. both author's & review's time is wasted. Create more PRs to address different concerns and everyone will be happy. -- For speculative changes, consider opening an issue and discussing it first. If - you are suggesting a behavioral or API change, consider starting with a [gRFC - proposal](https://github.com/grpc/proposal). - - If you are searching for features to work on, issues labeled [Status: Help Wanted](https://github.com/grpc/grpc-go/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3A%22Status%3A+Help+Wanted%22) is a great place to start. These issues are well-documented and usually can be diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/attributes/attributes.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/attributes/attributes.go index 02f5dc531891..3efca4591493 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/attributes/attributes.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/attributes/attributes.go @@ -25,6 +25,11 @@ // later release. package attributes +import ( + "fmt" + "strings" +) + // Attributes is an immutable struct for storing and retrieving generic // key/value pairs. Keys must be hashable, and users should define their own // types for keys. Values should not be modified after they are added to an @@ -99,3 +104,27 @@ func (a *Attributes) Equal(o *Attributes) bool { } return true } + +// String prints the attribute map. If any key or values throughout the map +// implement fmt.Stringer, it calls that method and appends. +func (a *Attributes) String() string { + var sb strings.Builder + sb.WriteString("{") + first := true + for k, v := range a.m { + var key, val string + if str, ok := k.(interface{ String() string }); ok { + key = str.String() + } + if str, ok := v.(interface{ String() string }); ok { + val = str.String() + } + if !first { + sb.WriteString(", ") + } + sb.WriteString(fmt.Sprintf("%q: %q, ", key, val)) + first = false + } + sb.WriteString("}") + return sb.String() +} diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/balancer/balancer.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/balancer/balancer.go index 09d61dd1b55b..8f00523c0e24 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/balancer/balancer.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/balancer/balancer.go @@ -286,7 +286,7 @@ type PickResult struct { // // LB policies with child policies are responsible for propagating metadata // injected by their children to the ClientConn, as part of Pick(). - Metatada metadata.MD + Metadata metadata.MD } // TransientFailureError returns e. It exists for backward compatibility and diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/balancer_conn_wrappers.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/balancer_conn_wrappers.go index 0359956d36fa..04b9ad411691 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/balancer_conn_wrappers.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/balancer_conn_wrappers.go @@ -25,14 +25,20 @@ import ( "sync" "google.golang.org/grpc/balancer" - "google.golang.org/grpc/codes" "google.golang.org/grpc/connectivity" "google.golang.org/grpc/internal/balancer/gracefulswitch" - "google.golang.org/grpc/internal/buffer" "google.golang.org/grpc/internal/channelz" "google.golang.org/grpc/internal/grpcsync" "google.golang.org/grpc/resolver" - "google.golang.org/grpc/status" +) + +type ccbMode int + +const ( + ccbModeActive = iota + ccbModeIdle + ccbModeClosed + ccbModeExitingIdle ) // ccBalancerWrapper sits between the ClientConn and the Balancer. @@ -49,192 +55,101 @@ import ( // It uses the gracefulswitch.Balancer internally to ensure that balancer // switches happen in a graceful manner. type ccBalancerWrapper struct { - cc *ClientConn - - // Since these fields are accessed only from handleXxx() methods which are - // synchronized by the watcher goroutine, we do not need a mutex to protect - // these fields. + // The following fields are initialized when the wrapper is created and are + // read-only afterwards, and therefore can be accessed without a mutex. + cc *ClientConn + opts balancer.BuildOptions + + // Outgoing (gRPC --> balancer) calls are guaranteed to execute in a + // mutually exclusive manner as they are scheduled in the serializer. Fields + // accessed *only* in these serializer callbacks, can therefore be accessed + // without a mutex. balancer *gracefulswitch.Balancer curBalancerName string - updateCh *buffer.Unbounded // Updates written on this channel are processed by watcher(). - resultCh *buffer.Unbounded // Results of calls to UpdateClientConnState() are pushed here. - closed *grpcsync.Event // Indicates if close has been called. - done *grpcsync.Event // Indicates if close has completed its work. + // mu guards access to the below fields. Access to the serializer and its + // cancel function needs to be mutex protected because they are overwritten + // when the wrapper exits idle mode. + mu sync.Mutex + serializer *grpcsync.CallbackSerializer // To serialize all outoing calls. + serializerCancel context.CancelFunc // To close the seralizer at close/enterIdle time. + mode ccbMode // Tracks the current mode of the wrapper. } // newCCBalancerWrapper creates a new balancer wrapper. The underlying balancer // is not created until the switchTo() method is invoked. func newCCBalancerWrapper(cc *ClientConn, bopts balancer.BuildOptions) *ccBalancerWrapper { + ctx, cancel := context.WithCancel(context.Background()) ccb := &ccBalancerWrapper{ - cc: cc, - updateCh: buffer.NewUnbounded(), - resultCh: buffer.NewUnbounded(), - closed: grpcsync.NewEvent(), - done: grpcsync.NewEvent(), + cc: cc, + opts: bopts, + serializer: grpcsync.NewCallbackSerializer(ctx), + serializerCancel: cancel, } - go ccb.watcher() ccb.balancer = gracefulswitch.NewBalancer(ccb, bopts) return ccb } -// The following xxxUpdate structs wrap the arguments received as part of the -// corresponding update. The watcher goroutine uses the 'type' of the update to -// invoke the appropriate handler routine to handle the update. - -type ccStateUpdate struct { - ccs *balancer.ClientConnState -} - -type scStateUpdate struct { - sc balancer.SubConn - state connectivity.State - err error -} - -type exitIdleUpdate struct{} - -type resolverErrorUpdate struct { - err error -} - -type switchToUpdate struct { - name string -} - -type subConnUpdate struct { - acbw *acBalancerWrapper -} - -// watcher is a long-running goroutine which reads updates from a channel and -// invokes corresponding methods on the underlying balancer. It ensures that -// these methods are invoked in a synchronous fashion. It also ensures that -// these methods are invoked in the order in which the updates were received. -func (ccb *ccBalancerWrapper) watcher() { - for { - select { - case u := <-ccb.updateCh.Get(): - ccb.updateCh.Load() - if ccb.closed.HasFired() { - break - } - switch update := u.(type) { - case *ccStateUpdate: - ccb.handleClientConnStateChange(update.ccs) - case *scStateUpdate: - ccb.handleSubConnStateChange(update) - case *exitIdleUpdate: - ccb.handleExitIdle() - case *resolverErrorUpdate: - ccb.handleResolverError(update.err) - case *switchToUpdate: - ccb.handleSwitchTo(update.name) - case *subConnUpdate: - ccb.handleRemoveSubConn(update.acbw) - default: - logger.Errorf("ccBalancerWrapper.watcher: unknown update %+v, type %T", update, update) - } - case <-ccb.closed.Done(): - } - - if ccb.closed.HasFired() { - ccb.handleClose() - return - } - } -} - // updateClientConnState is invoked by grpc to push a ClientConnState update to // the underlying balancer. -// -// Unlike other methods invoked by grpc to push updates to the underlying -// balancer, this method cannot simply push the update onto the update channel -// and return. It needs to return the error returned by the underlying balancer -// back to grpc which propagates that to the resolver. func (ccb *ccBalancerWrapper) updateClientConnState(ccs *balancer.ClientConnState) error { - ccb.updateCh.Put(&ccStateUpdate{ccs: ccs}) - - var res interface{} - select { - case res = <-ccb.resultCh.Get(): - ccb.resultCh.Load() - case <-ccb.closed.Done(): - // Return early if the balancer wrapper is closed while we are waiting for - // the underlying balancer to process a ClientConnState update. - return nil - } - // If the returned error is nil, attempting to type assert to error leads to - // panic. So, this needs to handled separately. - if res == nil { - return nil - } - return res.(error) -} - -// handleClientConnStateChange handles a ClientConnState update from the update -// channel and invokes the appropriate method on the underlying balancer. -// -// If the addresses specified in the update contain addresses of type "grpclb" -// and the selected LB policy is not "grpclb", these addresses will be filtered -// out and ccs will be modified with the updated address list. -func (ccb *ccBalancerWrapper) handleClientConnStateChange(ccs *balancer.ClientConnState) { - if ccb.curBalancerName != grpclbName { - // Filter any grpclb addresses since we don't have the grpclb balancer. - var addrs []resolver.Address - for _, addr := range ccs.ResolverState.Addresses { - if addr.Type == resolver.GRPCLB { - continue + ccb.mu.Lock() + errCh := make(chan error, 1) + // Here and everywhere else where Schedule() is called, it is done with the + // lock held. But the lock guards only the scheduling part. The actual + // callback is called asynchronously without the lock being held. + ok := ccb.serializer.Schedule(func(_ context.Context) { + // If the addresses specified in the update contain addresses of type + // "grpclb" and the selected LB policy is not "grpclb", these addresses + // will be filtered out and ccs will be modified with the updated + // address list. + if ccb.curBalancerName != grpclbName { + var addrs []resolver.Address + for _, addr := range ccs.ResolverState.Addresses { + if addr.Type == resolver.GRPCLB { + continue + } + addrs = append(addrs, addr) } - addrs = append(addrs, addr) + ccs.ResolverState.Addresses = addrs } - ccs.ResolverState.Addresses = addrs + errCh <- ccb.balancer.UpdateClientConnState(*ccs) + }) + if !ok { + // If we are unable to schedule a function with the serializer, it + // indicates that it has been closed. A serializer is only closed when + // the wrapper is closed or is in idle. + ccb.mu.Unlock() + return fmt.Errorf("grpc: cannot send state update to a closed or idle balancer") } - ccb.resultCh.Put(ccb.balancer.UpdateClientConnState(*ccs)) + ccb.mu.Unlock() + + // We get here only if the above call to Schedule succeeds, in which case it + // is guaranteed that the scheduled function will run. Therefore it is safe + // to block on this channel. + err := <-errCh + if logger.V(2) && err != nil { + logger.Infof("error from balancer.UpdateClientConnState: %v", err) + } + return err } // updateSubConnState is invoked by grpc to push a subConn state update to the // underlying balancer. func (ccb *ccBalancerWrapper) updateSubConnState(sc balancer.SubConn, s connectivity.State, err error) { - // When updating addresses for a SubConn, if the address in use is not in - // the new addresses, the old ac will be tearDown() and a new ac will be - // created. tearDown() generates a state change with Shutdown state, we - // don't want the balancer to receive this state change. So before - // tearDown() on the old ac, ac.acbw (acWrapper) will be set to nil, and - // this function will be called with (nil, Shutdown). We don't need to call - // balancer method in this case. - if sc == nil { - return - } - ccb.updateCh.Put(&scStateUpdate{ - sc: sc, - state: s, - err: err, + ccb.mu.Lock() + ccb.serializer.Schedule(func(_ context.Context) { + ccb.balancer.UpdateSubConnState(sc, balancer.SubConnState{ConnectivityState: s, ConnectionError: err}) }) -} - -// handleSubConnStateChange handles a SubConnState update from the update -// channel and invokes the appropriate method on the underlying balancer. -func (ccb *ccBalancerWrapper) handleSubConnStateChange(update *scStateUpdate) { - ccb.balancer.UpdateSubConnState(update.sc, balancer.SubConnState{ConnectivityState: update.state, ConnectionError: update.err}) -} - -func (ccb *ccBalancerWrapper) exitIdle() { - ccb.updateCh.Put(&exitIdleUpdate{}) -} - -func (ccb *ccBalancerWrapper) handleExitIdle() { - if ccb.cc.GetState() != connectivity.Idle { - return - } - ccb.balancer.ExitIdle() + ccb.mu.Unlock() } func (ccb *ccBalancerWrapper) resolverError(err error) { - ccb.updateCh.Put(&resolverErrorUpdate{err: err}) -} - -func (ccb *ccBalancerWrapper) handleResolverError(err error) { - ccb.balancer.ResolverError(err) + ccb.mu.Lock() + ccb.serializer.Schedule(func(_ context.Context) { + ccb.balancer.ResolverError(err) + }) + ccb.mu.Unlock() } // switchTo is invoked by grpc to instruct the balancer wrapper to switch to the @@ -248,24 +163,27 @@ func (ccb *ccBalancerWrapper) handleResolverError(err error) { // the ccBalancerWrapper keeps track of the current LB policy name, and skips // the graceful balancer switching process if the name does not change. func (ccb *ccBalancerWrapper) switchTo(name string) { - ccb.updateCh.Put(&switchToUpdate{name: name}) + ccb.mu.Lock() + ccb.serializer.Schedule(func(_ context.Context) { + // TODO: Other languages use case-sensitive balancer registries. We should + // switch as well. See: https://github.com/grpc/grpc-go/issues/5288. + if strings.EqualFold(ccb.curBalancerName, name) { + return + } + ccb.buildLoadBalancingPolicy(name) + }) + ccb.mu.Unlock() } -// handleSwitchTo handles a balancer switch update from the update channel. It -// calls the SwitchTo() method on the gracefulswitch.Balancer with a -// balancer.Builder corresponding to name. If no balancer.Builder is registered -// for the given name, it uses the default LB policy which is "pick_first". -func (ccb *ccBalancerWrapper) handleSwitchTo(name string) { - // TODO: Other languages use case-insensitive balancer registries. We should - // switch as well. See: https://github.com/grpc/grpc-go/issues/5288. - if strings.EqualFold(ccb.curBalancerName, name) { - return - } - - // TODO: Ensure that name is a registered LB policy when we get here. - // We currently only validate the `loadBalancingConfig` field. We need to do - // the same for the `loadBalancingPolicy` field and reject the service config - // if the specified policy is not registered. +// buildLoadBalancingPolicy performs the following: +// - retrieve a balancer builder for the given name. Use the default LB +// policy, pick_first, if no LB policy with name is found in the registry. +// - instruct the gracefulswitch balancer to switch to the above builder. This +// will actually build the new balancer. +// - update the `curBalancerName` field +// +// Must be called from a serializer callback. +func (ccb *ccBalancerWrapper) buildLoadBalancingPolicy(name string) { builder := balancer.Get(name) if builder == nil { channelz.Warningf(logger, ccb.cc.channelzID, "Channel switches to new LB policy %q, since the specified LB policy %q was not registered", PickFirstBalancerName, name) @@ -281,26 +199,114 @@ func (ccb *ccBalancerWrapper) handleSwitchTo(name string) { ccb.curBalancerName = builder.Name() } -// handleRemoveSucConn handles a request from the underlying balancer to remove -// a subConn. -// -// See comments in RemoveSubConn() for more details. -func (ccb *ccBalancerWrapper) handleRemoveSubConn(acbw *acBalancerWrapper) { - ccb.cc.removeAddrConn(acbw.getAddrConn(), errConnDrain) +func (ccb *ccBalancerWrapper) close() { + channelz.Info(logger, ccb.cc.channelzID, "ccBalancerWrapper: closing") + ccb.closeBalancer(ccbModeClosed) } -func (ccb *ccBalancerWrapper) close() { - ccb.closed.Fire() - <-ccb.done.Done() +// enterIdleMode is invoked by grpc when the channel enters idle mode upon +// expiry of idle_timeout. This call blocks until the balancer is closed. +func (ccb *ccBalancerWrapper) enterIdleMode() { + channelz.Info(logger, ccb.cc.channelzID, "ccBalancerWrapper: entering idle mode") + ccb.closeBalancer(ccbModeIdle) +} + +// closeBalancer is invoked when the channel is being closed or when it enters +// idle mode upon expiry of idle_timeout. +func (ccb *ccBalancerWrapper) closeBalancer(m ccbMode) { + ccb.mu.Lock() + if ccb.mode == ccbModeClosed || ccb.mode == ccbModeIdle { + ccb.mu.Unlock() + return + } + + ccb.mode = m + done := ccb.serializer.Done + b := ccb.balancer + ok := ccb.serializer.Schedule(func(_ context.Context) { + // Close the serializer to ensure that no more calls from gRPC are sent + // to the balancer. + ccb.serializerCancel() + // Empty the current balancer name because we don't have a balancer + // anymore and also so that we act on the next call to switchTo by + // creating a new balancer specified by the new resolver. + ccb.curBalancerName = "" + }) + if !ok { + ccb.mu.Unlock() + return + } + ccb.mu.Unlock() + + // Give enqueued callbacks a chance to finish. + <-done + // Spawn a goroutine to close the balancer (since it may block trying to + // cleanup all allocated resources) and return early. + go b.Close() } -func (ccb *ccBalancerWrapper) handleClose() { - ccb.balancer.Close() - ccb.done.Fire() +// exitIdleMode is invoked by grpc when the channel exits idle mode either +// because of an RPC or because of an invocation of the Connect() API. This +// recreates the balancer that was closed previously when entering idle mode. +// +// If the channel is not in idle mode, we know for a fact that we are here as a +// result of the user calling the Connect() method on the ClientConn. In this +// case, we can simply forward the call to the underlying balancer, instructing +// it to reconnect to the backends. +func (ccb *ccBalancerWrapper) exitIdleMode() { + ccb.mu.Lock() + if ccb.mode == ccbModeClosed { + // Request to exit idle is a no-op when wrapper is already closed. + ccb.mu.Unlock() + return + } + + if ccb.mode == ccbModeIdle { + // Recreate the serializer which was closed when we entered idle. + ctx, cancel := context.WithCancel(context.Background()) + ccb.serializer = grpcsync.NewCallbackSerializer(ctx) + ccb.serializerCancel = cancel + } + + // The ClientConn guarantees that mutual exclusion between close() and + // exitIdleMode(), and since we just created a new serializer, we can be + // sure that the below function will be scheduled. + done := make(chan struct{}) + ccb.serializer.Schedule(func(_ context.Context) { + defer close(done) + + ccb.mu.Lock() + defer ccb.mu.Unlock() + + if ccb.mode != ccbModeIdle { + ccb.balancer.ExitIdle() + return + } + + // Gracefulswitch balancer does not support a switchTo operation after + // being closed. Hence we need to create a new one here. + ccb.balancer = gracefulswitch.NewBalancer(ccb, ccb.opts) + ccb.mode = ccbModeActive + channelz.Info(logger, ccb.cc.channelzID, "ccBalancerWrapper: exiting idle mode") + + }) + ccb.mu.Unlock() + + <-done +} + +func (ccb *ccBalancerWrapper) isIdleOrClosed() bool { + ccb.mu.Lock() + defer ccb.mu.Unlock() + return ccb.mode == ccbModeIdle || ccb.mode == ccbModeClosed } func (ccb *ccBalancerWrapper) NewSubConn(addrs []resolver.Address, opts balancer.NewSubConnOptions) (balancer.SubConn, error) { - if len(addrs) <= 0 { + if ccb.isIdleOrClosed() { + return nil, fmt.Errorf("grpc: cannot create SubConn when balancer is closed or idle") + } + + if len(addrs) == 0 { return nil, fmt.Errorf("grpc: cannot create SubConn with empty address list") } ac, err := ccb.cc.newAddrConn(addrs, opts) @@ -309,31 +315,35 @@ func (ccb *ccBalancerWrapper) NewSubConn(addrs []resolver.Address, opts balancer return nil, err } acbw := &acBalancerWrapper{ac: ac, producers: make(map[balancer.ProducerBuilder]*refCountedProducer)} - acbw.ac.mu.Lock() ac.acbw = acbw - acbw.ac.mu.Unlock() return acbw, nil } func (ccb *ccBalancerWrapper) RemoveSubConn(sc balancer.SubConn) { - // Before we switched the ccBalancerWrapper to use gracefulswitch.Balancer, it - // was required to handle the RemoveSubConn() method asynchronously by pushing - // the update onto the update channel. This was done to avoid a deadlock as - // switchBalancer() was holding cc.mu when calling Close() on the old - // balancer, which would in turn call RemoveSubConn(). - // - // With the use of gracefulswitch.Balancer in ccBalancerWrapper, handling this - // asynchronously is probably not required anymore since the switchTo() method - // handles the balancer switch by pushing the update onto the channel. - // TODO(easwars): Handle this inline. + if ccb.isIdleOrClosed() { + // It it safe to ignore this call when the balancer is closed or in idle + // because the ClientConn takes care of closing the connections. + // + // Not returning early from here when the balancer is closed or in idle + // leads to a deadlock though, because of the following sequence of + // calls when holding cc.mu: + // cc.exitIdleMode --> ccb.enterIdleMode --> gsw.Close --> + // ccb.RemoveAddrConn --> cc.removeAddrConn + return + } + acbw, ok := sc.(*acBalancerWrapper) if !ok { return } - ccb.updateCh.Put(&subConnUpdate{acbw: acbw}) + ccb.cc.removeAddrConn(acbw.ac, errConnDrain) } func (ccb *ccBalancerWrapper) UpdateAddresses(sc balancer.SubConn, addrs []resolver.Address) { + if ccb.isIdleOrClosed() { + return + } + acbw, ok := sc.(*acBalancerWrapper) if !ok { return @@ -342,6 +352,10 @@ func (ccb *ccBalancerWrapper) UpdateAddresses(sc balancer.SubConn, addrs []resol } func (ccb *ccBalancerWrapper) UpdateState(s balancer.State) { + if ccb.isIdleOrClosed() { + return + } + // Update picker before updating state. Even though the ordering here does // not matter, it can lead to multiple calls of Pick in the common start-up // case where we wait for ready and then perform an RPC. If the picker is @@ -352,6 +366,10 @@ func (ccb *ccBalancerWrapper) UpdateState(s balancer.State) { } func (ccb *ccBalancerWrapper) ResolveNow(o resolver.ResolveNowOptions) { + if ccb.isIdleOrClosed() { + return + } + ccb.cc.resolveNow(o) } @@ -362,71 +380,31 @@ func (ccb *ccBalancerWrapper) Target() string { // acBalancerWrapper is a wrapper on top of ac for balancers. // It implements balancer.SubConn interface. type acBalancerWrapper struct { + ac *addrConn // read-only + mu sync.Mutex - ac *addrConn producers map[balancer.ProducerBuilder]*refCountedProducer } -func (acbw *acBalancerWrapper) UpdateAddresses(addrs []resolver.Address) { - acbw.mu.Lock() - defer acbw.mu.Unlock() - if len(addrs) <= 0 { - acbw.ac.cc.removeAddrConn(acbw.ac, errConnDrain) - return - } - if !acbw.ac.tryUpdateAddrs(addrs) { - cc := acbw.ac.cc - opts := acbw.ac.scopts - acbw.ac.mu.Lock() - // Set old ac.acbw to nil so the Shutdown state update will be ignored - // by balancer. - // - // TODO(bar) the state transition could be wrong when tearDown() old ac - // and creating new ac, fix the transition. - acbw.ac.acbw = nil - acbw.ac.mu.Unlock() - acState := acbw.ac.getState() - acbw.ac.cc.removeAddrConn(acbw.ac, errConnDrain) - - if acState == connectivity.Shutdown { - return - } +func (acbw *acBalancerWrapper) String() string { + return fmt.Sprintf("SubConn(id:%d)", acbw.ac.channelzID.Int()) +} - newAC, err := cc.newAddrConn(addrs, opts) - if err != nil { - channelz.Warningf(logger, acbw.ac.channelzID, "acBalancerWrapper: UpdateAddresses: failed to newAddrConn: %v", err) - return - } - acbw.ac = newAC - newAC.mu.Lock() - newAC.acbw = acbw - newAC.mu.Unlock() - if acState != connectivity.Idle { - go newAC.connect() - } - } +func (acbw *acBalancerWrapper) UpdateAddresses(addrs []resolver.Address) { + acbw.ac.updateAddrs(addrs) } func (acbw *acBalancerWrapper) Connect() { - acbw.mu.Lock() - defer acbw.mu.Unlock() go acbw.ac.connect() } -func (acbw *acBalancerWrapper) getAddrConn() *addrConn { - acbw.mu.Lock() - defer acbw.mu.Unlock() - return acbw.ac -} - -var errSubConnNotReady = status.Error(codes.Unavailable, "SubConn not currently connected") - // NewStream begins a streaming RPC on the addrConn. If the addrConn is not -// ready, returns errSubConnNotReady. +// ready, blocks until it is or ctx expires. Returns an error when the context +// expires or the addrConn is shut down. func (acbw *acBalancerWrapper) NewStream(ctx context.Context, desc *StreamDesc, method string, opts ...CallOption) (ClientStream, error) { - transport := acbw.ac.getReadyTransport() - if transport == nil { - return nil, errSubConnNotReady + transport, err := acbw.ac.getTransport(ctx) + if err != nil { + return nil, err } return newNonRetryClientStream(ctx, desc, method, transport, acbw.ac, opts...) } diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/binarylog/grpc_binarylog_v1/binarylog.pb.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/binarylog/grpc_binarylog_v1/binarylog.pb.go index 8cd89dab9047..ec2c2fa14dd3 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/binarylog/grpc_binarylog_v1/binarylog.pb.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/binarylog/grpc_binarylog_v1/binarylog.pb.go @@ -18,7 +18,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.30.0 // protoc v4.22.0 // source: grpc/binlog/v1/binarylog.proto diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/call.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/call.go index 9e20e4d385f9..e6a1dc5d75ed 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/call.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/call.go @@ -27,6 +27,11 @@ import ( // // All errors returned by Invoke are compatible with the status package. func (cc *ClientConn) Invoke(ctx context.Context, method string, args, reply interface{}, opts ...CallOption) error { + if err := cc.idlenessMgr.onCallBegin(); err != nil { + return err + } + defer cc.idlenessMgr.onCallEnd() + // allow interceptor to see all applicable call options, which means those // configured as defaults from dial option as well as per-call options opts = combine(cc.dopts.callOptions, opts) diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/clientconn.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/clientconn.go index b9cc055075ed..95a7459b02f6 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/clientconn.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/clientconn.go @@ -24,7 +24,6 @@ import ( "fmt" "math" "net/url" - "reflect" "strings" "sync" "sync/atomic" @@ -69,6 +68,9 @@ var ( errConnDrain = errors.New("grpc: the connection is drained") // errConnClosing indicates that the connection is closing. errConnClosing = errors.New("grpc: the connection is closing") + // errConnIdling indicates the the connection is being closed as the channel + // is moving to an idle mode due to inactivity. + errConnIdling = errors.New("grpc: the connection is closing due to channel idleness") // invalidDefaultServiceConfigErrPrefix is used to prefix the json parsing error for the default // service config. invalidDefaultServiceConfigErrPrefix = "grpc: the provided default service config is invalid" @@ -134,17 +136,29 @@ func (dcs *defaultConfigSelector) SelectConfig(rpcInfo iresolver.RPCInfo) (*ires // e.g. to use dns resolver, a "dns:///" prefix should be applied to the target. func DialContext(ctx context.Context, target string, opts ...DialOption) (conn *ClientConn, err error) { cc := &ClientConn{ - target: target, - csMgr: &connectivityStateManager{}, - conns: make(map[*addrConn]struct{}), - dopts: defaultDialOptions(), - blockingpicker: newPickerWrapper(), - czData: new(channelzData), - firstResolveEvent: grpcsync.NewEvent(), - } + target: target, + csMgr: &connectivityStateManager{}, + conns: make(map[*addrConn]struct{}), + dopts: defaultDialOptions(), + czData: new(channelzData), + } + + // We start the channel off in idle mode, but kick it out of idle at the end + // of this method, instead of waiting for the first RPC. Other gRPC + // implementations do wait for the first RPC to kick the channel out of + // idle. But doing so would be a major behavior change for our users who are + // used to seeing the channel active after Dial. + // + // Taking this approach of kicking it out of idle at the end of this method + // allows us to share the code between channel creation and exiting idle + // mode. This will also make it easy for us to switch to starting the + // channel off in idle, if at all we ever get to do that. + cc.idlenessState = ccIdlenessStateIdle + cc.retryThrottler.Store((*retryThrottler)(nil)) cc.safeConfigSelector.UpdateConfigSelector(&defaultConfigSelector{nil}) cc.ctx, cc.cancel = context.WithCancel(context.Background()) + cc.exitIdleCond = sync.NewCond(&cc.mu) disableGlobalOpts := false for _, opt := range opts { @@ -173,40 +187,11 @@ func DialContext(ctx context.Context, target string, opts ...DialOption) (conn * } }() - pid := cc.dopts.channelzParentID - cc.channelzID = channelz.RegisterChannel(&channelzChannel{cc}, pid, target) - ted := &channelz.TraceEventDesc{ - Desc: "Channel created", - Severity: channelz.CtInfo, - } - if cc.dopts.channelzParentID != nil { - ted.Parent = &channelz.TraceEventDesc{ - Desc: fmt.Sprintf("Nested Channel(id:%d) created", cc.channelzID.Int()), - Severity: channelz.CtInfo, - } - } - channelz.AddTraceEvent(logger, cc.channelzID, 1, ted) - cc.csMgr.channelzID = cc.channelzID + // Register ClientConn with channelz. + cc.channelzRegistration(target) - if cc.dopts.copts.TransportCredentials == nil && cc.dopts.copts.CredsBundle == nil { - return nil, errNoTransportSecurity - } - if cc.dopts.copts.TransportCredentials != nil && cc.dopts.copts.CredsBundle != nil { - return nil, errTransportCredsAndBundle - } - if cc.dopts.copts.CredsBundle != nil && cc.dopts.copts.CredsBundle.TransportCredentials() == nil { - return nil, errNoTransportCredsInBundle - } - transportCreds := cc.dopts.copts.TransportCredentials - if transportCreds == nil { - transportCreds = cc.dopts.copts.CredsBundle.TransportCredentials() - } - if transportCreds.Info().SecurityProtocol == "insecure" { - for _, cd := range cc.dopts.copts.PerRPCCredentials { - if cd.RequireTransportSecurity() { - return nil, errTransportCredentialsMissing - } - } + if err := cc.validateTransportCredentials(); err != nil { + return nil, err } if cc.dopts.defaultServiceConfigRawJSON != nil { @@ -244,35 +229,19 @@ func DialContext(ctx context.Context, target string, opts ...DialOption) (conn * } }() - scSet := false - if cc.dopts.scChan != nil { - // Try to get an initial service config. - select { - case sc, ok := <-cc.dopts.scChan: - if ok { - cc.sc = &sc - cc.safeConfigSelector.UpdateConfigSelector(&defaultConfigSelector{&sc}) - scSet = true - } - default: - } - } if cc.dopts.bs == nil { cc.dopts.bs = backoff.DefaultExponential } // Determine the resolver to use. - resolverBuilder, err := cc.parseTargetAndFindResolver() - if err != nil { + if err := cc.parseTargetAndFindResolver(); err != nil { return nil, err } - cc.authority, err = determineAuthority(cc.parsedTarget.Endpoint(), cc.target, cc.dopts) - if err != nil { + if err = cc.determineAuthority(); err != nil { return nil, err } - channelz.Infof(logger, cc.channelzID, "Channel authority set to %q", cc.authority) - if cc.dopts.scChan != nil && !scSet { + if cc.dopts.scChan != nil { // Blocking wait for the initial service config. select { case sc, ok := <-cc.dopts.scChan: @@ -288,57 +257,224 @@ func DialContext(ctx context.Context, target string, opts ...DialOption) (conn * go cc.scWatcher() } + // This creates the name resolver, load balancer, blocking picker etc. + if err := cc.exitIdleMode(); err != nil { + return nil, err + } + + // Configure idleness support with configured idle timeout or default idle + // timeout duration. Idleness can be explicitly disabled by the user, by + // setting the dial option to 0. + cc.idlenessMgr = newIdlenessManager(cc, cc.dopts.idleTimeout) + + // Return early for non-blocking dials. + if !cc.dopts.block { + return cc, nil + } + + // A blocking dial blocks until the clientConn is ready. + for { + s := cc.GetState() + if s == connectivity.Idle { + cc.Connect() + } + if s == connectivity.Ready { + return cc, nil + } else if cc.dopts.copts.FailOnNonTempDialError && s == connectivity.TransientFailure { + if err = cc.connectionError(); err != nil { + terr, ok := err.(interface { + Temporary() bool + }) + if ok && !terr.Temporary() { + return nil, err + } + } + } + if !cc.WaitForStateChange(ctx, s) { + // ctx got timeout or canceled. + if err = cc.connectionError(); err != nil && cc.dopts.returnLastError { + return nil, err + } + return nil, ctx.Err() + } + } +} + +// addTraceEvent is a helper method to add a trace event on the channel. If the +// channel is a nested one, the same event is also added on the parent channel. +func (cc *ClientConn) addTraceEvent(msg string) { + ted := &channelz.TraceEventDesc{ + Desc: fmt.Sprintf("Channel %s", msg), + Severity: channelz.CtInfo, + } + if cc.dopts.channelzParentID != nil { + ted.Parent = &channelz.TraceEventDesc{ + Desc: fmt.Sprintf("Nested channel(id:%d) %s", cc.channelzID.Int(), msg), + Severity: channelz.CtInfo, + } + } + channelz.AddTraceEvent(logger, cc.channelzID, 0, ted) +} + +// exitIdleMode moves the channel out of idle mode by recreating the name +// resolver and load balancer. +func (cc *ClientConn) exitIdleMode() error { + cc.mu.Lock() + if cc.conns == nil { + cc.mu.Unlock() + return errConnClosing + } + if cc.idlenessState != ccIdlenessStateIdle { + cc.mu.Unlock() + logger.Info("ClientConn asked to exit idle mode when not in idle mode") + return nil + } + + defer func() { + // When Close() and exitIdleMode() race against each other, one of the + // following two can happen: + // - Close() wins the race and runs first. exitIdleMode() runs after, and + // sees that the ClientConn is already closed and hence returns early. + // - exitIdleMode() wins the race and runs first and recreates the balancer + // and releases the lock before recreating the resolver. If Close() runs + // in this window, it will wait for exitIdleMode to complete. + // + // We achieve this synchronization using the below condition variable. + cc.mu.Lock() + cc.idlenessState = ccIdlenessStateActive + cc.exitIdleCond.Signal() + cc.mu.Unlock() + }() + + cc.idlenessState = ccIdlenessStateExitingIdle + exitedIdle := false + if cc.blockingpicker == nil { + cc.blockingpicker = newPickerWrapper() + } else { + cc.blockingpicker.exitIdleMode() + exitedIdle = true + } + var credsClone credentials.TransportCredentials if creds := cc.dopts.copts.TransportCredentials; creds != nil { credsClone = creds.Clone() } - cc.balancerWrapper = newCCBalancerWrapper(cc, balancer.BuildOptions{ - DialCreds: credsClone, - CredsBundle: cc.dopts.copts.CredsBundle, - Dialer: cc.dopts.copts.Dialer, - Authority: cc.authority, - CustomUserAgent: cc.dopts.copts.UserAgent, - ChannelzParentID: cc.channelzID, - Target: cc.parsedTarget, - }) + if cc.balancerWrapper == nil { + cc.balancerWrapper = newCCBalancerWrapper(cc, balancer.BuildOptions{ + DialCreds: credsClone, + CredsBundle: cc.dopts.copts.CredsBundle, + Dialer: cc.dopts.copts.Dialer, + Authority: cc.authority, + CustomUserAgent: cc.dopts.copts.UserAgent, + ChannelzParentID: cc.channelzID, + Target: cc.parsedTarget, + }) + } else { + cc.balancerWrapper.exitIdleMode() + } + cc.firstResolveEvent = grpcsync.NewEvent() + cc.mu.Unlock() - // Build the resolver. - rWrapper, err := newCCResolverWrapper(cc, resolverBuilder) - if err != nil { - return nil, fmt.Errorf("failed to build resolver: %v", err) + // This needs to be called without cc.mu because this builds a new resolver + // which might update state or report error inline which needs to be handled + // by cc.updateResolverState() which also grabs cc.mu. + if err := cc.initResolverWrapper(credsClone); err != nil { + return err } + + if exitedIdle { + cc.addTraceEvent("exiting idle mode") + } + return nil +} + +// enterIdleMode puts the channel in idle mode, and as part of it shuts down the +// name resolver, load balancer and any subchannels. +func (cc *ClientConn) enterIdleMode() error { cc.mu.Lock() - cc.resolverWrapper = rWrapper + if cc.conns == nil { + cc.mu.Unlock() + return ErrClientConnClosing + } + if cc.idlenessState != ccIdlenessStateActive { + logger.Error("ClientConn asked to enter idle mode when not active") + return nil + } + + // cc.conns == nil is a proxy for the ClientConn being closed. So, instead + // of setting it to nil here, we recreate the map. This also means that we + // don't have to do this when exiting idle mode. + conns := cc.conns + cc.conns = make(map[*addrConn]struct{}) + + // TODO: Currently, we close the resolver wrapper upon entering idle mode + // and create a new one upon exiting idle mode. This means that the + // `cc.resolverWrapper` field would be overwritten everytime we exit idle + // mode. While this means that we need to hold `cc.mu` when accessing + // `cc.resolverWrapper`, it makes the code simpler in the wrapper. We should + // try to do the same for the balancer and picker wrappers too. + cc.resolverWrapper.close() + cc.blockingpicker.enterIdleMode() + cc.balancerWrapper.enterIdleMode() + cc.csMgr.updateState(connectivity.Idle) + cc.idlenessState = ccIdlenessStateIdle cc.mu.Unlock() - // A blocking dial blocks until the clientConn is ready. - if cc.dopts.block { - for { - cc.Connect() - s := cc.GetState() - if s == connectivity.Ready { - break - } else if cc.dopts.copts.FailOnNonTempDialError && s == connectivity.TransientFailure { - if err = cc.connectionError(); err != nil { - terr, ok := err.(interface { - Temporary() bool - }) - if ok && !terr.Temporary() { - return nil, err - } - } - } - if !cc.WaitForStateChange(ctx, s) { - // ctx got timeout or canceled. - if err = cc.connectionError(); err != nil && cc.dopts.returnLastError { - return nil, err - } - return nil, ctx.Err() + go func() { + cc.addTraceEvent("entering idle mode") + for ac := range conns { + ac.tearDown(errConnIdling) + } + }() + return nil +} + +// validateTransportCredentials performs a series of checks on the configured +// transport credentials. It returns a non-nil error if any of these conditions +// are met: +// - no transport creds and no creds bundle is configured +// - both transport creds and creds bundle are configured +// - creds bundle is configured, but it lacks a transport credentials +// - insecure transport creds configured alongside call creds that require +// transport level security +// +// If none of the above conditions are met, the configured credentials are +// deemed valid and a nil error is returned. +func (cc *ClientConn) validateTransportCredentials() error { + if cc.dopts.copts.TransportCredentials == nil && cc.dopts.copts.CredsBundle == nil { + return errNoTransportSecurity + } + if cc.dopts.copts.TransportCredentials != nil && cc.dopts.copts.CredsBundle != nil { + return errTransportCredsAndBundle + } + if cc.dopts.copts.CredsBundle != nil && cc.dopts.copts.CredsBundle.TransportCredentials() == nil { + return errNoTransportCredsInBundle + } + transportCreds := cc.dopts.copts.TransportCredentials + if transportCreds == nil { + transportCreds = cc.dopts.copts.CredsBundle.TransportCredentials() + } + if transportCreds.Info().SecurityProtocol == "insecure" { + for _, cd := range cc.dopts.copts.PerRPCCredentials { + if cd.RequireTransportSecurity() { + return errTransportCredentialsMissing } } } + return nil +} - return cc, nil +// channelzRegistration registers the newly created ClientConn with channelz and +// stores the returned identifier in `cc.channelzID` and `cc.csMgr.channelzID`. +// A channelz trace event is emitted for ClientConn creation. If the newly +// created ClientConn is a nested one, i.e a valid parent ClientConn ID is +// specified via a dial option, the trace event is also added to the parent. +// +// Doesn't grab cc.mu as this method is expected to be called only at Dial time. +func (cc *ClientConn) channelzRegistration(target string) { + cc.channelzID = channelz.RegisterChannel(&channelzChannel{cc}, cc.dopts.channelzParentID, target) + cc.addTraceEvent("created") + cc.csMgr.channelzID = cc.channelzID } // chainUnaryClientInterceptors chains all unary client interceptors into one. @@ -484,7 +620,9 @@ type ClientConn struct { authority string // See determineAuthority(). dopts dialOptions // Default and user specified dial options. channelzID *channelz.Identifier // Channelz identifier for the channel. + resolverBuilder resolver.Builder // See parseTargetAndFindResolver(). balancerWrapper *ccBalancerWrapper // Uses gracefulswitch.balancer underneath. + idlenessMgr idlenessManager // The following provide their own synchronization, and therefore don't // require cc.mu to be held to access them. @@ -505,11 +643,31 @@ type ClientConn struct { sc *ServiceConfig // Latest service config received from the resolver. conns map[*addrConn]struct{} // Set to nil on close. mkp keepalive.ClientParameters // May be updated upon receipt of a GoAway. + idlenessState ccIdlenessState // Tracks idleness state of the channel. + exitIdleCond *sync.Cond // Signalled when channel exits idle. lceMu sync.Mutex // protects lastConnectionError lastConnectionError error } +// ccIdlenessState tracks the idleness state of the channel. +// +// Channels start off in `active` and move to `idle` after a period of +// inactivity. When moving back to `active` upon an incoming RPC, they +// transition through `exiting_idle`. This state is useful for synchronization +// with Close(). +// +// This state tracking is mostly for self-protection. The idlenessManager is +// expected to keep track of the state as well, and is expected not to call into +// the ClientConn unnecessarily. +type ccIdlenessState int8 + +const ( + ccIdlenessStateActive ccIdlenessState = iota + ccIdlenessStateIdle + ccIdlenessStateExitingIdle +) + // WaitForStateChange waits until the connectivity.State of ClientConn changes from sourceState or // ctx expires. A true value is returned in former case and false in latter. // @@ -549,7 +707,10 @@ func (cc *ClientConn) GetState() connectivity.State { // Notice: This API is EXPERIMENTAL and may be changed or removed in a later // release. func (cc *ClientConn) Connect() { - cc.balancerWrapper.exitIdle() + cc.exitIdleMode() + // If the ClientConn was not in idle mode, we need to call ExitIdle on the + // LB policy so that connections can be created. + cc.balancerWrapper.exitIdleMode() } func (cc *ClientConn) scWatcher() { @@ -718,6 +879,7 @@ func (cc *ClientConn) newAddrConn(addrs []resolver.Address, opts balancer.NewSub dopts: cc.dopts, czData: new(channelzData), resetBackoff: make(chan struct{}), + stateChan: make(chan struct{}), } ac.ctx, ac.cancel = context.WithCancel(cc.ctx) // Track ac in cc. This needs to be done before any getTransport(...) is called. @@ -811,9 +973,6 @@ func (ac *addrConn) connect() error { ac.mu.Unlock() return nil } - // Update connectivity state within the lock to prevent subsequent or - // concurrent calls from resetting the transport more than once. - ac.updateConnectivityState(connectivity.Connecting, nil) ac.mu.Unlock() ac.resetTransport() @@ -832,58 +991,62 @@ func equalAddresses(a, b []resolver.Address) bool { return true } -// tryUpdateAddrs tries to update ac.addrs with the new addresses list. -// -// If ac is TransientFailure, it updates ac.addrs and returns true. The updated -// addresses will be picked up by retry in the next iteration after backoff. -// -// If ac is Shutdown or Idle, it updates ac.addrs and returns true. -// -// If the addresses is the same as the old list, it does nothing and returns -// true. -// -// If ac is Connecting, it returns false. The caller should tear down the ac and -// create a new one. Note that the backoff will be reset when this happens. -// -// If ac is Ready, it checks whether current connected address of ac is in the -// new addrs list. -// - If true, it updates ac.addrs and returns true. The ac will keep using -// the existing connection. -// - If false, it does nothing and returns false. -func (ac *addrConn) tryUpdateAddrs(addrs []resolver.Address) bool { +// updateAddrs updates ac.addrs with the new addresses list and handles active +// connections or connection attempts. +func (ac *addrConn) updateAddrs(addrs []resolver.Address) { ac.mu.Lock() - defer ac.mu.Unlock() - channelz.Infof(logger, ac.channelzID, "addrConn: tryUpdateAddrs curAddr: %v, addrs: %v", ac.curAddr, addrs) + channelz.Infof(logger, ac.channelzID, "addrConn: updateAddrs curAddr: %v, addrs: %v", ac.curAddr, addrs) + + if equalAddresses(ac.addrs, addrs) { + ac.mu.Unlock() + return + } + + ac.addrs = addrs + if ac.state == connectivity.Shutdown || ac.state == connectivity.TransientFailure || ac.state == connectivity.Idle { - ac.addrs = addrs - return true + // We were not connecting, so do nothing but update the addresses. + ac.mu.Unlock() + return } - if equalAddresses(ac.addrs, addrs) { - return true + if ac.state == connectivity.Ready { + // Try to find the connected address. + for _, a := range addrs { + a.ServerName = ac.cc.getServerName(a) + if a.Equal(ac.curAddr) { + // We are connected to a valid address, so do nothing but + // update the addresses. + ac.mu.Unlock() + return + } + } } - if ac.state == connectivity.Connecting { - return false - } + // We are either connected to the wrong address or currently connecting. + // Stop the current iteration and restart. - // ac.state is Ready, try to find the connected address. - var curAddrFound bool - for _, a := range addrs { - a.ServerName = ac.cc.getServerName(a) - if reflect.DeepEqual(ac.curAddr, a) { - curAddrFound = true - break - } + ac.cancel() + ac.ctx, ac.cancel = context.WithCancel(ac.cc.ctx) + + // We have to defer here because GracefulClose => Close => onClose, which + // requires locking ac.mu. + if ac.transport != nil { + defer ac.transport.GracefulClose() + ac.transport = nil } - channelz.Infof(logger, ac.channelzID, "addrConn: tryUpdateAddrs curAddrFound: %v", curAddrFound) - if curAddrFound { - ac.addrs = addrs + + if len(addrs) == 0 { + ac.updateConnectivityState(connectivity.Idle, nil) } - return curAddrFound + ac.mu.Unlock() + + // Since we were connecting/connected, we should start a new connection + // attempt. + go ac.resetTransport() } // getServerName determines the serverName to be used in the connection @@ -1036,39 +1199,40 @@ func (cc *ClientConn) Close() error { cc.mu.Unlock() return ErrClientConnClosing } + + for cc.idlenessState == ccIdlenessStateExitingIdle { + cc.exitIdleCond.Wait() + } + conns := cc.conns cc.conns = nil cc.csMgr.updateState(connectivity.Shutdown) + pWrapper := cc.blockingpicker rWrapper := cc.resolverWrapper - cc.resolverWrapper = nil bWrapper := cc.balancerWrapper + idlenessMgr := cc.idlenessMgr cc.mu.Unlock() // The order of closing matters here since the balancer wrapper assumes the // picker is closed before it is closed. - cc.blockingpicker.close() + if pWrapper != nil { + pWrapper.close() + } if bWrapper != nil { bWrapper.close() } if rWrapper != nil { rWrapper.close() } + if idlenessMgr != nil { + idlenessMgr.close() + } for ac := range conns { ac.tearDown(ErrClientConnClosing) } - ted := &channelz.TraceEventDesc{ - Desc: "Channel deleted", - Severity: channelz.CtInfo, - } - if cc.dopts.channelzParentID != nil { - ted.Parent = &channelz.TraceEventDesc{ - Desc: fmt.Sprintf("Nested channel(id:%d) deleted", cc.channelzID.Int()), - Severity: channelz.CtInfo, - } - } - channelz.AddTraceEvent(logger, cc.channelzID, 0, ted) + cc.addTraceEvent("deleted") // TraceEvent needs to be called before RemoveEntry, as TraceEvent may add // trace reference to the entity being deleted, and thus prevent it from being // deleted right away. @@ -1098,7 +1262,8 @@ type addrConn struct { addrs []resolver.Address // All addresses that the resolver resolved to. // Use updateConnectivityState for updating addrConn's connectivity state. - state connectivity.State + state connectivity.State + stateChan chan struct{} // closed and recreated on every state change. backoffIdx int // Needs to be stateful for resetConnectBackoff. resetBackoff chan struct{} @@ -1112,6 +1277,9 @@ func (ac *addrConn) updateConnectivityState(s connectivity.State, lastErr error) if ac.state == s { return } + // When changing states, reset the state change channel. + close(ac.stateChan) + ac.stateChan = make(chan struct{}) ac.state = s if lastErr == nil { channelz.Infof(logger, ac.channelzID, "Subchannel Connectivity change to %v", s) @@ -1137,7 +1305,8 @@ func (ac *addrConn) adjustParams(r transport.GoAwayReason) { func (ac *addrConn) resetTransport() { ac.mu.Lock() - if ac.state == connectivity.Shutdown { + acCtx := ac.ctx + if acCtx.Err() != nil { ac.mu.Unlock() return } @@ -1165,15 +1334,14 @@ func (ac *addrConn) resetTransport() { ac.updateConnectivityState(connectivity.Connecting, nil) ac.mu.Unlock() - if err := ac.tryAllAddrs(addrs, connectDeadline); err != nil { + if err := ac.tryAllAddrs(acCtx, addrs, connectDeadline); err != nil { ac.cc.resolveNow(resolver.ResolveNowOptions{}) // After exhausting all addresses, the addrConn enters // TRANSIENT_FAILURE. - ac.mu.Lock() - if ac.state == connectivity.Shutdown { - ac.mu.Unlock() + if acCtx.Err() != nil { return } + ac.mu.Lock() ac.updateConnectivityState(connectivity.TransientFailure, err) // Backoff. @@ -1188,13 +1356,13 @@ func (ac *addrConn) resetTransport() { ac.mu.Unlock() case <-b: timer.Stop() - case <-ac.ctx.Done(): + case <-acCtx.Done(): timer.Stop() return } ac.mu.Lock() - if ac.state != connectivity.Shutdown { + if acCtx.Err() == nil { ac.updateConnectivityState(connectivity.Idle, err) } ac.mu.Unlock() @@ -1209,14 +1377,13 @@ func (ac *addrConn) resetTransport() { // tryAllAddrs tries to creates a connection to the addresses, and stop when at // the first successful one. It returns an error if no address was successfully // connected, or updates ac appropriately with the new transport. -func (ac *addrConn) tryAllAddrs(addrs []resolver.Address, connectDeadline time.Time) error { +func (ac *addrConn) tryAllAddrs(ctx context.Context, addrs []resolver.Address, connectDeadline time.Time) error { var firstConnErr error for _, addr := range addrs { - ac.mu.Lock() - if ac.state == connectivity.Shutdown { - ac.mu.Unlock() + if ctx.Err() != nil { return errConnClosing } + ac.mu.Lock() ac.cc.mu.RLock() ac.dopts.copts.KeepaliveParams = ac.cc.mkp @@ -1230,7 +1397,7 @@ func (ac *addrConn) tryAllAddrs(addrs []resolver.Address, connectDeadline time.T channelz.Infof(logger, ac.channelzID, "Subchannel picks a new address %q to connect", addr.Addr) - err := ac.createTransport(addr, copts, connectDeadline) + err := ac.createTransport(ctx, addr, copts, connectDeadline) if err == nil { return nil } @@ -1247,19 +1414,20 @@ func (ac *addrConn) tryAllAddrs(addrs []resolver.Address, connectDeadline time.T // createTransport creates a connection to addr. It returns an error if the // address was not successfully connected, or updates ac appropriately with the // new transport. -func (ac *addrConn) createTransport(addr resolver.Address, copts transport.ConnectOptions, connectDeadline time.Time) error { +func (ac *addrConn) createTransport(ctx context.Context, addr resolver.Address, copts transport.ConnectOptions, connectDeadline time.Time) error { addr.ServerName = ac.cc.getServerName(addr) - hctx, hcancel := context.WithCancel(ac.ctx) + hctx, hcancel := context.WithCancel(ctx) onClose := func(r transport.GoAwayReason) { ac.mu.Lock() defer ac.mu.Unlock() // adjust params based on GoAwayReason ac.adjustParams(r) - if ac.state == connectivity.Shutdown { - // Already shut down. tearDown() already cleared the transport and - // canceled hctx via ac.ctx, and we expected this connection to be - // closed, so do nothing here. + if ctx.Err() != nil { + // Already shut down or connection attempt canceled. tearDown() or + // updateAddrs() already cleared the transport and canceled hctx + // via ac.ctx, and we expected this connection to be closed, so do + // nothing here. return } hcancel() @@ -1278,7 +1446,7 @@ func (ac *addrConn) createTransport(addr resolver.Address, copts transport.Conne ac.updateConnectivityState(connectivity.Idle, nil) } - connectCtx, cancel := context.WithDeadline(ac.ctx, connectDeadline) + connectCtx, cancel := context.WithDeadline(ctx, connectDeadline) defer cancel() copts.ChannelzParentID = ac.channelzID @@ -1295,7 +1463,7 @@ func (ac *addrConn) createTransport(addr resolver.Address, copts transport.Conne ac.mu.Lock() defer ac.mu.Unlock() - if ac.state == connectivity.Shutdown { + if ctx.Err() != nil { // This can happen if the subConn was removed while in `Connecting` // state. tearDown() would have set the state to `Shutdown`, but // would not have closed the transport since ac.transport would not @@ -1307,6 +1475,9 @@ func (ac *addrConn) createTransport(addr resolver.Address, copts transport.Conne // The error we pass to Close() is immaterial since there are no open // streams at this point, so no trailers with error details will be sent // out. We just need to pass a non-nil error. + // + // This can also happen when updateAddrs is called during a connection + // attempt. go newTr.Close(transport.ErrConnClosing) return nil } @@ -1414,6 +1585,29 @@ func (ac *addrConn) getReadyTransport() transport.ClientTransport { return nil } +// getTransport waits until the addrconn is ready and returns the transport. +// If the context expires first, returns an appropriate status. If the +// addrConn is stopped first, returns an Unavailable status error. +func (ac *addrConn) getTransport(ctx context.Context) (transport.ClientTransport, error) { + for ctx.Err() == nil { + ac.mu.Lock() + t, state, sc := ac.transport, ac.state, ac.stateChan + ac.mu.Unlock() + if state == connectivity.Ready { + return t, nil + } + if state == connectivity.Shutdown { + return nil, status.Errorf(codes.Unavailable, "SubConn shutting down") + } + + select { + case <-ctx.Done(): + case <-sc: + } + } + return nil, status.FromContextError(ctx.Err()).Err() +} + // tearDown starts to tear down the addrConn. // // Note that tearDown doesn't remove ac from ac.cc.conns, so the addrConn struct @@ -1565,7 +1759,14 @@ func (cc *ClientConn) connectionError() error { return cc.lastConnectionError } -func (cc *ClientConn) parseTargetAndFindResolver() (resolver.Builder, error) { +// parseTargetAndFindResolver parses the user's dial target and stores the +// parsed target in `cc.parsedTarget`. +// +// The resolver to use is determined based on the scheme in the parsed target +// and the same is stored in `cc.resolverBuilder`. +// +// Doesn't grab cc.mu as this method is expected to be called only at Dial time. +func (cc *ClientConn) parseTargetAndFindResolver() error { channelz.Infof(logger, cc.channelzID, "original dial target is: %q", cc.target) var rb resolver.Builder @@ -1577,7 +1778,8 @@ func (cc *ClientConn) parseTargetAndFindResolver() (resolver.Builder, error) { rb = cc.getResolver(parsedTarget.URL.Scheme) if rb != nil { cc.parsedTarget = parsedTarget - return rb, nil + cc.resolverBuilder = rb + return nil } } @@ -1592,15 +1794,16 @@ func (cc *ClientConn) parseTargetAndFindResolver() (resolver.Builder, error) { parsedTarget, err = parseTarget(canonicalTarget) if err != nil { channelz.Infof(logger, cc.channelzID, "dial target %q parse failed: %v", canonicalTarget, err) - return nil, err + return err } channelz.Infof(logger, cc.channelzID, "parsed dial target is: %+v", parsedTarget) rb = cc.getResolver(parsedTarget.URL.Scheme) if rb == nil { - return nil, fmt.Errorf("could not get resolver for default scheme: %q", parsedTarget.URL.Scheme) + return fmt.Errorf("could not get resolver for default scheme: %q", parsedTarget.URL.Scheme) } cc.parsedTarget = parsedTarget - return rb, nil + cc.resolverBuilder = rb + return nil } // parseTarget uses RFC 3986 semantics to parse the given target into a @@ -1623,7 +1826,15 @@ func parseTarget(target string) (resolver.Target, error) { // - user specified authority override using `WithAuthority` dial option // - creds' notion of server name for the authentication handshake // - endpoint from dial target of the form "scheme://[authority]/endpoint" -func determineAuthority(endpoint, target string, dopts dialOptions) (string, error) { +// +// Stores the determined authority in `cc.authority`. +// +// Returns a non-nil error if the authority returned by the transport +// credentials do not match the authority configured through the dial option. +// +// Doesn't grab cc.mu as this method is expected to be called only at Dial time. +func (cc *ClientConn) determineAuthority() error { + dopts := cc.dopts // Historically, we had two options for users to specify the serverName or // authority for a channel. One was through the transport credentials // (either in its constructor, or through the OverrideServerName() method). @@ -1640,25 +1851,58 @@ func determineAuthority(endpoint, target string, dopts dialOptions) (string, err } authorityFromDialOption := dopts.authority if (authorityFromCreds != "" && authorityFromDialOption != "") && authorityFromCreds != authorityFromDialOption { - return "", fmt.Errorf("ClientConn's authority from transport creds %q and dial option %q don't match", authorityFromCreds, authorityFromDialOption) + return fmt.Errorf("ClientConn's authority from transport creds %q and dial option %q don't match", authorityFromCreds, authorityFromDialOption) } + endpoint := cc.parsedTarget.Endpoint() + target := cc.target switch { case authorityFromDialOption != "": - return authorityFromDialOption, nil + cc.authority = authorityFromDialOption case authorityFromCreds != "": - return authorityFromCreds, nil + cc.authority = authorityFromCreds case strings.HasPrefix(target, "unix:") || strings.HasPrefix(target, "unix-abstract:"): // TODO: remove when the unix resolver implements optional interface to // return channel authority. - return "localhost", nil + cc.authority = "localhost" case strings.HasPrefix(endpoint, ":"): - return "localhost" + endpoint, nil + cc.authority = "localhost" + endpoint default: // TODO: Define an optional interface on the resolver builder to return // the channel authority given the user's dial target. For resolvers // which don't implement this interface, we will use the endpoint from // "scheme://authority/endpoint" as the default authority. - return endpoint, nil + cc.authority = endpoint + } + channelz.Infof(logger, cc.channelzID, "Channel authority set to %q", cc.authority) + return nil +} + +// initResolverWrapper creates a ccResolverWrapper, which builds the name +// resolver. This method grabs the lock to assign the newly built resolver +// wrapper to the cc.resolverWrapper field. +func (cc *ClientConn) initResolverWrapper(creds credentials.TransportCredentials) error { + rw, err := newCCResolverWrapper(cc, ccResolverWrapperOpts{ + target: cc.parsedTarget, + builder: cc.resolverBuilder, + bOpts: resolver.BuildOptions{ + DisableServiceConfig: cc.dopts.disableServiceConfig, + DialCreds: creds, + CredsBundle: cc.dopts.copts.CredsBundle, + Dialer: cc.dopts.copts.Dialer, + }, + channelzID: cc.channelzID, + }) + if err != nil { + return fmt.Errorf("failed to build resolver: %v", err) } + // Resolver implementations may report state update or error inline when + // built (or right after), and this is handled in cc.updateResolverState. + // Also, an error from the resolver might lead to a re-resolution request + // from the balancer, which is handled in resolveNow() where + // `cc.resolverWrapper` is accessed. Hence, we need to hold the lock here. + cc.mu.Lock() + cc.resolverWrapper = rw + cc.mu.Unlock() + return nil } diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/dialoptions.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/dialoptions.go index e9d6852fd2c1..15a3d5102a9a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/dialoptions.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/dialoptions.go @@ -77,6 +77,7 @@ type dialOptions struct { defaultServiceConfig *ServiceConfig // defaultServiceConfig is parsed from defaultServiceConfigRawJSON. defaultServiceConfigRawJSON *string resolvers []resolver.Builder + idleTimeout time.Duration } // DialOption configures how we set up the connection. @@ -295,6 +296,9 @@ func withBackoff(bs internalbackoff.Strategy) DialOption { // WithBlock returns a DialOption which makes callers of Dial block until the // underlying connection is up. Without this, Dial returns immediately and // connecting the server happens in background. +// +// Use of this feature is not recommended. For more information, please see: +// https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md func WithBlock() DialOption { return newFuncDialOption(func(o *dialOptions) { o.block = true @@ -306,6 +310,9 @@ func WithBlock() DialOption { // the context.DeadlineExceeded error. // Implies WithBlock() // +// Use of this feature is not recommended. For more information, please see: +// https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md +// // # Experimental // // Notice: This API is EXPERIMENTAL and may be changed or removed in a @@ -448,6 +455,9 @@ func withBinaryLogger(bl binarylog.Logger) DialOption { // FailOnNonTempDialError only affects the initial dial, and does not do // anything useful unless you are also using WithBlock(). // +// Use of this feature is not recommended. For more information, please see: +// https://github.com/grpc/grpc-go/blob/master/Documentation/anti-patterns.md +// // # Experimental // // Notice: This API is EXPERIMENTAL and may be changed or removed in a @@ -646,3 +656,23 @@ func WithResolvers(rs ...resolver.Builder) DialOption { o.resolvers = append(o.resolvers, rs...) }) } + +// WithIdleTimeout returns a DialOption that configures an idle timeout for the +// channel. If the channel is idle for the configured timeout, i.e there are no +// ongoing RPCs and no new RPCs are initiated, the channel will enter idle mode +// and as a result the name resolver and load balancer will be shut down. The +// channel will exit idle mode when the Connect() method is called or when an +// RPC is initiated. +// +// By default this feature is disabled, which can also be explicitly configured +// by passing zero to this function. +// +// # Experimental +// +// Notice: This API is EXPERIMENTAL and may be changed or removed in a +// later release. +func WithIdleTimeout(d time.Duration) DialOption { + return newFuncDialOption(func(o *dialOptions) { + o.idleTimeout = d + }) +} diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/health/grpc_health_v1/health.pb.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/health/grpc_health_v1/health.pb.go index 0b1abc6467c2..142d35f753e9 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/health/grpc_health_v1/health.pb.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/health/grpc_health_v1/health.pb.go @@ -17,7 +17,7 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 +// protoc-gen-go v1.30.0 // protoc v4.22.0 // source: grpc/health/v1/health.proto diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/idle.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/idle.go new file mode 100644 index 000000000000..dc3dc72f6b09 --- /dev/null +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/idle.go @@ -0,0 +1,287 @@ +/* + * + * Copyright 2023 gRPC authors. + * + * 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 grpc + +import ( + "fmt" + "math" + "sync" + "sync/atomic" + "time" +) + +// For overriding in unit tests. +var timeAfterFunc = func(d time.Duration, f func()) *time.Timer { + return time.AfterFunc(d, f) +} + +// idlenessEnforcer is the functionality provided by grpc.ClientConn to enter +// and exit from idle mode. +type idlenessEnforcer interface { + exitIdleMode() error + enterIdleMode() error +} + +// idlenessManager defines the functionality required to track RPC activity on a +// channel. +type idlenessManager interface { + onCallBegin() error + onCallEnd() + close() +} + +type noopIdlenessManager struct{} + +func (noopIdlenessManager) onCallBegin() error { return nil } +func (noopIdlenessManager) onCallEnd() {} +func (noopIdlenessManager) close() {} + +// idlenessManagerImpl implements the idlenessManager interface. It uses atomic +// operations to synchronize access to shared state and a mutex to guarantee +// mutual exclusion in a critical section. +type idlenessManagerImpl struct { + // State accessed atomically. + lastCallEndTime int64 // Unix timestamp in nanos; time when the most recent RPC completed. + activeCallsCount int32 // Count of active RPCs; -math.MaxInt32 means channel is idle or is trying to get there. + activeSinceLastTimerCheck int32 // Boolean; True if there was an RPC since the last timer callback. + closed int32 // Boolean; True when the manager is closed. + + // Can be accessed without atomics or mutex since these are set at creation + // time and read-only after that. + enforcer idlenessEnforcer // Functionality provided by grpc.ClientConn. + timeout int64 // Idle timeout duration nanos stored as an int64. + + // idleMu is used to guarantee mutual exclusion in two scenarios: + // - Opposing intentions: + // - a: Idle timeout has fired and handleIdleTimeout() is trying to put + // the channel in idle mode because the channel has been inactive. + // - b: At the same time an RPC is made on the channel, and onCallBegin() + // is trying to prevent the channel from going idle. + // - Competing intentions: + // - The channel is in idle mode and there are multiple RPCs starting at + // the same time, all trying to move the channel out of idle. Only one + // of them should succeed in doing so, while the other RPCs should + // piggyback on the first one and be successfully handled. + idleMu sync.RWMutex + actuallyIdle bool + timer *time.Timer +} + +// newIdlenessManager creates a new idleness manager implementation for the +// given idle timeout. +func newIdlenessManager(enforcer idlenessEnforcer, idleTimeout time.Duration) idlenessManager { + if idleTimeout == 0 { + return noopIdlenessManager{} + } + + i := &idlenessManagerImpl{ + enforcer: enforcer, + timeout: int64(idleTimeout), + } + i.timer = timeAfterFunc(idleTimeout, i.handleIdleTimeout) + return i +} + +// resetIdleTimer resets the idle timer to the given duration. This method +// should only be called from the timer callback. +func (i *idlenessManagerImpl) resetIdleTimer(d time.Duration) { + i.idleMu.Lock() + defer i.idleMu.Unlock() + + if i.timer == nil { + // Only close sets timer to nil. We are done. + return + } + + // It is safe to ignore the return value from Reset() because this method is + // only ever called from the timer callback, which means the timer has + // already fired. + i.timer.Reset(d) +} + +// handleIdleTimeout is the timer callback that is invoked upon expiry of the +// configured idle timeout. The channel is considered inactive if there are no +// ongoing calls and no RPC activity since the last time the timer fired. +func (i *idlenessManagerImpl) handleIdleTimeout() { + if i.isClosed() { + return + } + + if atomic.LoadInt32(&i.activeCallsCount) > 0 { + i.resetIdleTimer(time.Duration(i.timeout)) + return + } + + // There has been activity on the channel since we last got here. Reset the + // timer and return. + if atomic.LoadInt32(&i.activeSinceLastTimerCheck) == 1 { + // Set the timer to fire after a duration of idle timeout, calculated + // from the time the most recent RPC completed. + atomic.StoreInt32(&i.activeSinceLastTimerCheck, 0) + i.resetIdleTimer(time.Duration(atomic.LoadInt64(&i.lastCallEndTime) + i.timeout - time.Now().UnixNano())) + return + } + + // This CAS operation is extremely likely to succeed given that there has + // been no activity since the last time we were here. Setting the + // activeCallsCount to -math.MaxInt32 indicates to onCallBegin() that the + // channel is either in idle mode or is trying to get there. + if !atomic.CompareAndSwapInt32(&i.activeCallsCount, 0, -math.MaxInt32) { + // This CAS operation can fail if an RPC started after we checked for + // activity at the top of this method, or one was ongoing from before + // the last time we were here. In both case, reset the timer and return. + i.resetIdleTimer(time.Duration(i.timeout)) + return + } + + // Now that we've set the active calls count to -math.MaxInt32, it's time to + // actually move to idle mode. + if i.tryEnterIdleMode() { + // Successfully entered idle mode. No timer needed until we exit idle. + return + } + + // Failed to enter idle mode due to a concurrent RPC that kept the channel + // active, or because of an error from the channel. Undo the attempt to + // enter idle, and reset the timer to try again later. + atomic.AddInt32(&i.activeCallsCount, math.MaxInt32) + i.resetIdleTimer(time.Duration(i.timeout)) +} + +// tryEnterIdleMode instructs the channel to enter idle mode. But before +// that, it performs a last minute check to ensure that no new RPC has come in, +// making the channel active. +// +// Return value indicates whether or not the channel moved to idle mode. +// +// Holds idleMu which ensures mutual exclusion with exitIdleMode. +func (i *idlenessManagerImpl) tryEnterIdleMode() bool { + i.idleMu.Lock() + defer i.idleMu.Unlock() + + if atomic.LoadInt32(&i.activeCallsCount) != -math.MaxInt32 { + // We raced and lost to a new RPC. Very rare, but stop entering idle. + return false + } + if atomic.LoadInt32(&i.activeSinceLastTimerCheck) == 1 { + // An very short RPC could have come in (and also finished) after we + // checked for calls count and activity in handleIdleTimeout(), but + // before the CAS operation. So, we need to check for activity again. + return false + } + + // No new RPCs have come in since we last set the active calls count value + // -math.MaxInt32 in the timer callback. And since we have the lock, it is + // safe to enter idle mode now. + if err := i.enforcer.enterIdleMode(); err != nil { + logger.Errorf("Failed to enter idle mode: %v", err) + return false + } + + // Successfully entered idle mode. + i.actuallyIdle = true + return true +} + +// onCallBegin is invoked at the start of every RPC. +func (i *idlenessManagerImpl) onCallBegin() error { + if i.isClosed() { + return nil + } + + if atomic.AddInt32(&i.activeCallsCount, 1) > 0 { + // Channel is not idle now. Set the activity bit and allow the call. + atomic.StoreInt32(&i.activeSinceLastTimerCheck, 1) + return nil + } + + // Channel is either in idle mode or is in the process of moving to idle + // mode. Attempt to exit idle mode to allow this RPC. + if err := i.exitIdleMode(); err != nil { + // Undo the increment to calls count, and return an error causing the + // RPC to fail. + atomic.AddInt32(&i.activeCallsCount, -1) + return err + } + + atomic.StoreInt32(&i.activeSinceLastTimerCheck, 1) + return nil +} + +// exitIdleMode instructs the channel to exit idle mode. +// +// Holds idleMu which ensures mutual exclusion with tryEnterIdleMode. +func (i *idlenessManagerImpl) exitIdleMode() error { + i.idleMu.Lock() + defer i.idleMu.Unlock() + + if !i.actuallyIdle { + // This can happen in two scenarios: + // - handleIdleTimeout() set the calls count to -math.MaxInt32 and called + // tryEnterIdleMode(). But before the latter could grab the lock, an RPC + // came in and onCallBegin() noticed that the calls count is negative. + // - Channel is in idle mode, and multiple new RPCs come in at the same + // time, all of them notice a negative calls count in onCallBegin and get + // here. The first one to get the lock would got the channel to exit idle. + // + // Either way, nothing to do here. + return nil + } + + if err := i.enforcer.exitIdleMode(); err != nil { + return fmt.Errorf("channel failed to exit idle mode: %v", err) + } + + // Undo the idle entry process. This also respects any new RPC attempts. + atomic.AddInt32(&i.activeCallsCount, math.MaxInt32) + i.actuallyIdle = false + + // Start a new timer to fire after the configured idle timeout. + i.timer = timeAfterFunc(time.Duration(i.timeout), i.handleIdleTimeout) + return nil +} + +// onCallEnd is invoked at the end of every RPC. +func (i *idlenessManagerImpl) onCallEnd() { + if i.isClosed() { + return + } + + // Record the time at which the most recent call finished. + atomic.StoreInt64(&i.lastCallEndTime, time.Now().UnixNano()) + + // Decrement the active calls count. This count can temporarily go negative + // when the timer callback is in the process of moving the channel to idle + // mode, but one or more RPCs come in and complete before the timer callback + // can get done with the process of moving to idle mode. + atomic.AddInt32(&i.activeCallsCount, -1) +} + +func (i *idlenessManagerImpl) isClosed() bool { + return atomic.LoadInt32(&i.closed) == 1 +} + +func (i *idlenessManagerImpl) close() { + atomic.StoreInt32(&i.closed, 1) + + i.idleMu.Lock() + i.timer.Stop() + i.timer = nil + i.idleMu.Unlock() +} diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/binarylog/binarylog.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/binarylog/binarylog.go index af03a40d990b..755fdebc1b15 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/binarylog/binarylog.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/binarylog/binarylog.go @@ -32,6 +32,9 @@ var grpclogLogger = grpclog.Component("binarylog") // Logger specifies MethodLoggers for method names with a Log call that // takes a context. +// +// This is used in the 1.0 release of gcp/observability, and thus must not be +// deleted or changed. type Logger interface { GetMethodLogger(methodName string) MethodLogger } diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/binarylog/method_logger.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/binarylog/method_logger.go index 56fcf008d3de..6c3f632215fd 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/binarylog/method_logger.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/binarylog/method_logger.go @@ -49,6 +49,9 @@ func (g *callIDGenerator) reset() { var idGen callIDGenerator // MethodLogger is the sub-logger for each method. +// +// This is used in the 1.0 release of gcp/observability, and thus must not be +// deleted or changed. type MethodLogger interface { Log(context.Context, LogEntryConfig) } @@ -65,6 +68,9 @@ type TruncatingMethodLogger struct { } // NewTruncatingMethodLogger returns a new truncating method logger. +// +// This is used in the 1.0 release of gcp/observability, and thus must not be +// deleted or changed. func NewTruncatingMethodLogger(h, m uint64) *TruncatingMethodLogger { return &TruncatingMethodLogger{ headerMaxLen: h, @@ -145,6 +151,9 @@ func (ml *TruncatingMethodLogger) truncateMessage(msgPb *binlogpb.Message) (trun } // LogEntryConfig represents the configuration for binary log entry. +// +// This is used in the 1.0 release of gcp/observability, and thus must not be +// deleted or changed. type LogEntryConfig interface { toProto() *binlogpb.GrpcLogEntry } diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/buffer/unbounded.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/buffer/unbounded.go index 9f6a0c1200db..81c2f5fd761b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/buffer/unbounded.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/buffer/unbounded.go @@ -35,6 +35,7 @@ import "sync" // internal/transport/transport.go for an example of this. type Unbounded struct { c chan interface{} + closed bool mu sync.Mutex backlog []interface{} } @@ -47,16 +48,18 @@ func NewUnbounded() *Unbounded { // Put adds t to the unbounded buffer. func (b *Unbounded) Put(t interface{}) { b.mu.Lock() + defer b.mu.Unlock() + if b.closed { + return + } if len(b.backlog) == 0 { select { case b.c <- t: - b.mu.Unlock() return default: } } b.backlog = append(b.backlog, t) - b.mu.Unlock() } // Load sends the earliest buffered data, if any, onto the read channel @@ -64,6 +67,10 @@ func (b *Unbounded) Put(t interface{}) { // value from the read channel. func (b *Unbounded) Load() { b.mu.Lock() + defer b.mu.Unlock() + if b.closed { + return + } if len(b.backlog) > 0 { select { case b.c <- b.backlog[0]: @@ -72,7 +79,6 @@ func (b *Unbounded) Load() { default: } } - b.mu.Unlock() } // Get returns a read channel on which values added to the buffer, via Put(), @@ -80,6 +86,20 @@ func (b *Unbounded) Load() { // // Upon reading a value from this channel, users are expected to call Load() to // send the next buffered value onto the channel if there is any. +// +// If the unbounded buffer is closed, the read channel returned by this method +// is closed. func (b *Unbounded) Get() <-chan interface{} { return b.c } + +// Close closes the unbounded buffer. +func (b *Unbounded) Close() { + b.mu.Lock() + defer b.mu.Unlock() + if b.closed { + return + } + b.closed = true + close(b.c) +} diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/envconfig/envconfig.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/envconfig/envconfig.go index 5ba9d94d49c2..80fd5c7d2a4f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/envconfig/envconfig.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/envconfig/envconfig.go @@ -36,6 +36,10 @@ var ( // "GRPC_RING_HASH_CAP". This does not override the default bounds // checking which NACKs configs specifying ring sizes > 8*1024*1024 (~8M). RingHashCap = uint64FromEnv("GRPC_RING_HASH_CAP", 4096, 1, 8*1024*1024) + // PickFirstLBConfig is set if we should support configuration of the + // pick_first LB policy, which can be enabled by setting the environment + // variable "GRPC_EXPERIMENTAL_PICKFIRST_LB_CONFIG" to "true". + PickFirstLBConfig = boolFromEnv("GRPC_EXPERIMENTAL_PICKFIRST_LB_CONFIG", false) ) func boolFromEnv(envVar string, def bool) bool { diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/envconfig/observability.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/envconfig/observability.go index 821dd0a7c198..dd314cfb18f4 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/envconfig/observability.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/envconfig/observability.go @@ -28,9 +28,15 @@ const ( var ( // ObservabilityConfig is the json configuration for the gcp/observability // package specified directly in the envObservabilityConfig env var. + // + // This is used in the 1.0 release of gcp/observability, and thus must not be + // deleted or changed. ObservabilityConfig = os.Getenv(envObservabilityConfig) // ObservabilityConfigFile is the json configuration for the // gcp/observability specified in a file with the location specified in // envObservabilityConfigFile env var. + // + // This is used in the 1.0 release of gcp/observability, and thus must not be + // deleted or changed. ObservabilityConfigFile = os.Getenv(envObservabilityConfigFile) ) diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/envconfig/xds.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/envconfig/xds.go index 04136882c7bc..02b4b6a1c109 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/envconfig/xds.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/envconfig/xds.go @@ -61,11 +61,10 @@ var ( // have a brand new API on the server-side and users explicitly need to use // the new API to get security integration on the server. XDSClientSideSecurity = boolFromEnv("GRPC_XDS_EXPERIMENTAL_SECURITY_SUPPORT", true) - // XDSAggregateAndDNS indicates whether processing of aggregated cluster - // and DNS cluster is enabled, which can be enabled by setting the - // environment variable - // "GRPC_XDS_EXPERIMENTAL_ENABLE_AGGREGATE_AND_LOGICAL_DNS_CLUSTER" to - // "true". + // XDSAggregateAndDNS indicates whether processing of aggregated cluster and + // DNS cluster is enabled, which can be disabled by setting the environment + // variable "GRPC_XDS_EXPERIMENTAL_ENABLE_AGGREGATE_AND_LOGICAL_DNS_CLUSTER" + // to "false". XDSAggregateAndDNS = boolFromEnv("GRPC_XDS_EXPERIMENTAL_ENABLE_AGGREGATE_AND_LOGICAL_DNS_CLUSTER", true) // XDSRBAC indicates whether xDS configured RBAC HTTP Filter is enabled, @@ -79,14 +78,18 @@ var ( // XDSFederation indicates whether federation support is enabled, which can // be enabled by setting the environment variable // "GRPC_EXPERIMENTAL_XDS_FEDERATION" to "true". - XDSFederation = boolFromEnv("GRPC_EXPERIMENTAL_XDS_FEDERATION", false) + XDSFederation = boolFromEnv("GRPC_EXPERIMENTAL_XDS_FEDERATION", true) // XDSRLS indicates whether processing of Cluster Specifier plugins and - // support for the RLS CLuster Specifier is enabled, which can be enabled by + // support for the RLS CLuster Specifier is enabled, which can be disabled by // setting the environment variable "GRPC_EXPERIMENTAL_XDS_RLS_LB" to - // "true". - XDSRLS = boolFromEnv("GRPC_EXPERIMENTAL_XDS_RLS_LB", false) + // "false". + XDSRLS = boolFromEnv("GRPC_EXPERIMENTAL_XDS_RLS_LB", true) // C2PResolverTestOnlyTrafficDirectorURI is the TD URI for testing. C2PResolverTestOnlyTrafficDirectorURI = os.Getenv("GRPC_TEST_ONLY_GOOGLE_C2P_RESOLVER_TRAFFIC_DIRECTOR_URI") + // XDSCustomLBPolicy indicates whether Custom LB Policies are enabled, which + // can be disabled by setting the environment variable + // "GRPC_EXPERIMENTAL_XDS_CUSTOM_LB_CONFIG" to "false". + XDSCustomLBPolicy = boolFromEnv("GRPC_EXPERIMENTAL_XDS_CUSTOM_LB_CONFIG", true) ) diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/grpcrand/grpcrand.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/grpcrand/grpcrand.go index 517ea70642a1..d08e3e907666 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/grpcrand/grpcrand.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/grpcrand/grpcrand.go @@ -72,3 +72,17 @@ func Uint64() uint64 { defer mu.Unlock() return r.Uint64() } + +// Uint32 implements rand.Uint32 on the grpcrand global source. +func Uint32() uint32 { + mu.Lock() + defer mu.Unlock() + return r.Uint32() +} + +// Shuffle implements rand.Shuffle on the grpcrand global source. +var Shuffle = func(n int, f func(int, int)) { + mu.Lock() + defer mu.Unlock() + r.Shuffle(n, f) +} diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/grpcsync/callback_serializer.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/grpcsync/callback_serializer.go new file mode 100644 index 000000000000..37b8d4117e77 --- /dev/null +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/grpcsync/callback_serializer.go @@ -0,0 +1,119 @@ +/* + * + * Copyright 2022 gRPC authors. + * + * 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 grpcsync + +import ( + "context" + "sync" + + "google.golang.org/grpc/internal/buffer" +) + +// CallbackSerializer provides a mechanism to schedule callbacks in a +// synchronized manner. It provides a FIFO guarantee on the order of execution +// of scheduled callbacks. New callbacks can be scheduled by invoking the +// Schedule() method. +// +// This type is safe for concurrent access. +type CallbackSerializer struct { + // Done is closed once the serializer is shut down completely, i.e all + // scheduled callbacks are executed and the serializer has deallocated all + // its resources. + Done chan struct{} + + callbacks *buffer.Unbounded + closedMu sync.Mutex + closed bool +} + +// NewCallbackSerializer returns a new CallbackSerializer instance. The provided +// context will be passed to the scheduled callbacks. Users should cancel the +// provided context to shutdown the CallbackSerializer. It is guaranteed that no +// callbacks will be added once this context is canceled, and any pending un-run +// callbacks will be executed before the serializer is shut down. +func NewCallbackSerializer(ctx context.Context) *CallbackSerializer { + t := &CallbackSerializer{ + Done: make(chan struct{}), + callbacks: buffer.NewUnbounded(), + } + go t.run(ctx) + return t +} + +// Schedule adds a callback to be scheduled after existing callbacks are run. +// +// Callbacks are expected to honor the context when performing any blocking +// operations, and should return early when the context is canceled. +// +// Return value indicates if the callback was successfully added to the list of +// callbacks to be executed by the serializer. It is not possible to add +// callbacks once the context passed to NewCallbackSerializer is cancelled. +func (t *CallbackSerializer) Schedule(f func(ctx context.Context)) bool { + t.closedMu.Lock() + defer t.closedMu.Unlock() + + if t.closed { + return false + } + t.callbacks.Put(f) + return true +} + +func (t *CallbackSerializer) run(ctx context.Context) { + var backlog []func(context.Context) + + defer close(t.Done) + for ctx.Err() == nil { + select { + case <-ctx.Done(): + // Do nothing here. Next iteration of the for loop will not happen, + // since ctx.Err() would be non-nil. + case callback, ok := <-t.callbacks.Get(): + if !ok { + return + } + t.callbacks.Load() + callback.(func(ctx context.Context))(ctx) + } + } + + // Fetch pending callbacks if any, and execute them before returning from + // this method and closing t.Done. + t.closedMu.Lock() + t.closed = true + backlog = t.fetchPendingCallbacks() + t.callbacks.Close() + t.closedMu.Unlock() + for _, b := range backlog { + b(ctx) + } +} + +func (t *CallbackSerializer) fetchPendingCallbacks() []func(context.Context) { + var backlog []func(context.Context) + for { + select { + case b := <-t.callbacks.Get(): + backlog = append(backlog, b.(func(context.Context))) + t.callbacks.Load() + default: + return backlog + } + } +} diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/internal.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/internal.go index 836b6a3b3e78..42ff39c84446 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/internal.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/internal.go @@ -60,6 +60,9 @@ var ( GetServerCredentials interface{} // func (*grpc.Server) credentials.TransportCredentials // CanonicalString returns the canonical string of the code defined here: // https://github.com/grpc/grpc/blob/master/doc/statuscodes.md. + // + // This is used in the 1.0 release of gcp/observability, and thus must not be + // deleted or changed. CanonicalString interface{} // func (codes.Code) string // DrainServerTransports initiates a graceful close of existing connections // on a gRPC server accepted on the provided listener address. An @@ -69,20 +72,35 @@ var ( // AddGlobalServerOptions adds an array of ServerOption that will be // effective globally for newly created servers. The priority will be: 1. // user-provided; 2. this method; 3. default values. + // + // This is used in the 1.0 release of gcp/observability, and thus must not be + // deleted or changed. AddGlobalServerOptions interface{} // func(opt ...ServerOption) // ClearGlobalServerOptions clears the array of extra ServerOption. This // method is useful in testing and benchmarking. + // + // This is used in the 1.0 release of gcp/observability, and thus must not be + // deleted or changed. ClearGlobalServerOptions func() // AddGlobalDialOptions adds an array of DialOption that will be effective // globally for newly created client channels. The priority will be: 1. // user-provided; 2. this method; 3. default values. + // + // This is used in the 1.0 release of gcp/observability, and thus must not be + // deleted or changed. AddGlobalDialOptions interface{} // func(opt ...DialOption) // DisableGlobalDialOptions returns a DialOption that prevents the // ClientConn from applying the global DialOptions (set via // AddGlobalDialOptions). + // + // This is used in the 1.0 release of gcp/observability, and thus must not be + // deleted or changed. DisableGlobalDialOptions interface{} // func() grpc.DialOption // ClearGlobalDialOptions clears the array of extra DialOption. This // method is useful in testing and benchmarking. + // + // This is used in the 1.0 release of gcp/observability, and thus must not be + // deleted or changed. ClearGlobalDialOptions func() // JoinDialOptions combines the dial options passed as arguments into a // single dial option. @@ -93,9 +111,15 @@ var ( // WithBinaryLogger returns a DialOption that specifies the binary logger // for a ClientConn. + // + // This is used in the 1.0 release of gcp/observability, and thus must not be + // deleted or changed. WithBinaryLogger interface{} // func(binarylog.Logger) grpc.DialOption // BinaryLogger returns a ServerOption that can set the binary logger for a // server. + // + // This is used in the 1.0 release of gcp/observability, and thus must not be + // deleted or changed. BinaryLogger interface{} // func(binarylog.Logger) grpc.ServerOption // NewXDSResolverWithConfigForTesting creates a new xds resolver builder using diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/serviceconfig/duration.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/serviceconfig/duration.go new file mode 100644 index 000000000000..11d82afcc7ec --- /dev/null +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/serviceconfig/duration.go @@ -0,0 +1,130 @@ +/* + * + * Copyright 2023 gRPC authors. + * + * 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 serviceconfig + +import ( + "encoding/json" + "fmt" + "math" + "strconv" + "strings" + "time" +) + +// Duration defines JSON marshal and unmarshal methods to conform to the +// protobuf JSON spec defined [here]. +// +// [here]: https://protobuf.dev/reference/protobuf/google.protobuf/#duration +type Duration time.Duration + +func (d Duration) String() string { + return fmt.Sprint(time.Duration(d)) +} + +// MarshalJSON converts from d to a JSON string output. +func (d Duration) MarshalJSON() ([]byte, error) { + ns := time.Duration(d).Nanoseconds() + sec := ns / int64(time.Second) + ns = ns % int64(time.Second) + + var sign string + if sec < 0 || ns < 0 { + sign, sec, ns = "-", -1*sec, -1*ns + } + + // Generated output always contains 0, 3, 6, or 9 fractional digits, + // depending on required precision. + str := fmt.Sprintf("%s%d.%09d", sign, sec, ns) + str = strings.TrimSuffix(str, "000") + str = strings.TrimSuffix(str, "000") + str = strings.TrimSuffix(str, ".000") + return []byte(fmt.Sprintf("\"%ss\"", str)), nil +} + +// UnmarshalJSON unmarshals b as a duration JSON string into d. +func (d *Duration) UnmarshalJSON(b []byte) error { + var s string + if err := json.Unmarshal(b, &s); err != nil { + return err + } + if !strings.HasSuffix(s, "s") { + return fmt.Errorf("malformed duration %q: missing seconds unit", s) + } + neg := false + if s[0] == '-' { + neg = true + s = s[1:] + } + ss := strings.SplitN(s[:len(s)-1], ".", 3) + if len(ss) > 2 { + return fmt.Errorf("malformed duration %q: too many decimals", s) + } + // hasDigits is set if either the whole or fractional part of the number is + // present, since both are optional but one is required. + hasDigits := false + var sec, ns int64 + if len(ss[0]) > 0 { + var err error + if sec, err = strconv.ParseInt(ss[0], 10, 64); err != nil { + return fmt.Errorf("malformed duration %q: %v", s, err) + } + // Maximum seconds value per the durationpb spec. + const maxProtoSeconds = 315_576_000_000 + if sec > maxProtoSeconds { + return fmt.Errorf("out of range: %q", s) + } + hasDigits = true + } + if len(ss) == 2 && len(ss[1]) > 0 { + if len(ss[1]) > 9 { + return fmt.Errorf("malformed duration %q: too many digits after decimal", s) + } + var err error + if ns, err = strconv.ParseInt(ss[1], 10, 64); err != nil { + return fmt.Errorf("malformed duration %q: %v", s, err) + } + for i := 9; i > len(ss[1]); i-- { + ns *= 10 + } + hasDigits = true + } + if !hasDigits { + return fmt.Errorf("malformed duration %q: contains no numbers", s) + } + + if neg { + sec *= -1 + ns *= -1 + } + + // Maximum/minimum seconds/nanoseconds representable by Go's time.Duration. + const maxSeconds = math.MaxInt64 / int64(time.Second) + const maxNanosAtMaxSeconds = math.MaxInt64 % int64(time.Second) + const minSeconds = math.MinInt64 / int64(time.Second) + const minNanosAtMinSeconds = math.MinInt64 % int64(time.Second) + + if sec > maxSeconds || (sec == maxSeconds && ns >= maxNanosAtMaxSeconds) { + *d = Duration(math.MaxInt64) + } else if sec < minSeconds || (sec == minSeconds && ns <= minNanosAtMinSeconds) { + *d = Duration(math.MinInt64) + } else { + *d = Duration(sec*int64(time.Second) + ns) + } + return nil +} diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/controlbuf.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/controlbuf.go index c343c23a530e..be5a9c81eb97 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/controlbuf.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/controlbuf.go @@ -30,6 +30,7 @@ import ( "golang.org/x/net/http2" "golang.org/x/net/http2/hpack" + "google.golang.org/grpc/internal/grpclog" "google.golang.org/grpc/internal/grpcutil" "google.golang.org/grpc/status" ) @@ -488,12 +489,13 @@ type loopyWriter struct { bdpEst *bdpEstimator draining bool conn net.Conn + logger *grpclog.PrefixLogger // Side-specific handlers ssGoAwayHandler func(*goAway) (bool, error) } -func newLoopyWriter(s side, fr *framer, cbuf *controlBuffer, bdpEst *bdpEstimator, conn net.Conn) *loopyWriter { +func newLoopyWriter(s side, fr *framer, cbuf *controlBuffer, bdpEst *bdpEstimator, conn net.Conn, logger *grpclog.PrefixLogger) *loopyWriter { var buf bytes.Buffer l := &loopyWriter{ side: s, @@ -507,6 +509,7 @@ func newLoopyWriter(s side, fr *framer, cbuf *controlBuffer, bdpEst *bdpEstimato hEnc: hpack.NewEncoder(&buf), bdpEst: bdpEst, conn: conn, + logger: logger, } return l } @@ -536,8 +539,8 @@ const minBatchSize = 1000 // left open to allow the I/O error to be encountered by the reader instead. func (l *loopyWriter) run() (err error) { defer func() { - if logger.V(logLevel) { - logger.Infof("transport: loopyWriter exiting with error: %v", err) + if l.logger.V(logLevel) { + l.logger.Infof("loopyWriter exiting with error: %v", err) } if !isIOError(err) { l.framer.writer.Flush() @@ -636,8 +639,8 @@ func (l *loopyWriter) headerHandler(h *headerFrame) error { if l.side == serverSide { str, ok := l.estdStreams[h.streamID] if !ok { - if logger.V(logLevel) { - logger.Warningf("transport: loopy doesn't recognize the stream: %d", h.streamID) + if l.logger.V(logLevel) { + l.logger.Infof("Unrecognized streamID %d in loopyWriter", h.streamID) } return nil } @@ -692,8 +695,8 @@ func (l *loopyWriter) writeHeader(streamID uint32, endStream bool, hf []hpack.He l.hBuf.Reset() for _, f := range hf { if err := l.hEnc.WriteField(f); err != nil { - if logger.V(logLevel) { - logger.Warningf("transport: loopyWriter.writeHeader encountered error while encoding headers: %v", err) + if l.logger.V(logLevel) { + l.logger.Warningf("Encountered error while encoding headers: %v", err) } } } diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/handler_server.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/handler_server.go index e6626bf96e7c..98f80e3fa00a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/handler_server.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/handler_server.go @@ -39,6 +39,7 @@ import ( "golang.org/x/net/http2" "google.golang.org/grpc/codes" "google.golang.org/grpc/credentials" + "google.golang.org/grpc/internal/grpclog" "google.golang.org/grpc/internal/grpcutil" "google.golang.org/grpc/metadata" "google.golang.org/grpc/peer" @@ -83,6 +84,7 @@ func NewServerHandlerTransport(w http.ResponseWriter, r *http.Request, stats []s contentSubtype: contentSubtype, stats: stats, } + st.logger = prefixLoggerForServerHandlerTransport(st) if v := r.Header.Get("grpc-timeout"); v != "" { to, err := decodeTimeout(v) @@ -150,13 +152,14 @@ type serverHandlerTransport struct { // TODO make sure this is consistent across handler_server and http2_server contentSubtype string - stats []stats.Handler + stats []stats.Handler + logger *grpclog.PrefixLogger } func (ht *serverHandlerTransport) Close(err error) { ht.closeOnce.Do(func() { - if logger.V(logLevel) { - logger.Infof("Closing serverHandlerTransport: %v", err) + if ht.logger.V(logLevel) { + ht.logger.Infof("Closing: %v", err) } close(ht.closedCh) }) @@ -450,7 +453,7 @@ func (ht *serverHandlerTransport) IncrMsgSent() {} func (ht *serverHandlerTransport) IncrMsgRecv() {} -func (ht *serverHandlerTransport) Drain() { +func (ht *serverHandlerTransport) Drain(debugData string) { panic("Drain() is not implemented") } diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/http2_client.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/http2_client.go index 9826feb8c699..326bf0848000 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/http2_client.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/http2_client.go @@ -38,6 +38,7 @@ import ( "google.golang.org/grpc/credentials" "google.golang.org/grpc/internal/channelz" icredentials "google.golang.org/grpc/internal/credentials" + "google.golang.org/grpc/internal/grpclog" "google.golang.org/grpc/internal/grpcsync" "google.golang.org/grpc/internal/grpcutil" imetadata "google.golang.org/grpc/internal/metadata" @@ -145,6 +146,7 @@ type http2Client struct { bufferPool *bufferPool connectionID uint64 + logger *grpclog.PrefixLogger } func dial(ctx context.Context, fn func(context.Context, string) (net.Conn, error), addr resolver.Address, useProxy bool, grpcUA string) (net.Conn, error) { @@ -244,7 +246,7 @@ func newHTTP2Client(connectCtx, ctx context.Context, addr resolver.Address, opts if err := connectCtx.Err(); err != nil { // connectCtx expired before exiting the function. Hard close the connection. if logger.V(logLevel) { - logger.Infof("newClientTransport: aborting due to connectCtx: %v", err) + logger.Infof("Aborting due to connect deadline expiring: %v", err) } conn.Close() } @@ -346,6 +348,7 @@ func newHTTP2Client(connectCtx, ctx context.Context, addr resolver.Address, opts bufferPool: newBufferPool(), onClose: onClose, } + t.logger = prefixLoggerForClientTransport(t) // Add peer information to the http2client context. t.ctx = peer.NewContext(t.ctx, t.getPeer()) @@ -444,7 +447,7 @@ func newHTTP2Client(connectCtx, ctx context.Context, addr resolver.Address, opts return nil, err } go func() { - t.loopy = newLoopyWriter(clientSide, t.framer, t.controlBuf, t.bdpEst, t.conn) + t.loopy = newLoopyWriter(clientSide, t.framer, t.controlBuf, t.bdpEst, t.conn, t.logger) t.loopy.run() close(t.writerDone) }() @@ -782,7 +785,7 @@ func (t *http2Client) NewStream(ctx context.Context, callHdr *CallHdr) (*Stream, s.id = h.streamID s.fc = &inFlow{limit: uint32(t.initialWindowSize)} t.mu.Lock() - if t.activeStreams == nil { // Can be niled from Close(). + if t.state == draining || t.activeStreams == nil { // Can be niled from Close(). t.mu.Unlock() return false // Don't create a stream if the transport is already closed. } @@ -859,8 +862,8 @@ func (t *http2Client) NewStream(ctx context.Context, callHdr *CallHdr) (*Stream, } } if transportDrainRequired { - if logger.V(logLevel) { - logger.Infof("transport: t.nextID > MaxStreamID. Draining") + if t.logger.V(logLevel) { + t.logger.Infof("Draining transport: t.nextID > MaxStreamID") } t.GracefulClose() } @@ -952,8 +955,8 @@ func (t *http2Client) Close(err error) { t.mu.Unlock() return } - if logger.V(logLevel) { - logger.Infof("transport: closing: %v", err) + if t.logger.V(logLevel) { + t.logger.Infof("Closing: %v", err) } // Call t.onClose ASAP to prevent the client from attempting to create new // streams. @@ -1009,8 +1012,8 @@ func (t *http2Client) GracefulClose() { t.mu.Unlock() return } - if logger.V(logLevel) { - logger.Infof("transport: GracefulClose called") + if t.logger.V(logLevel) { + t.logger.Infof("GracefulClose called") } t.onClose(GoAwayInvalid) t.state = draining @@ -1174,8 +1177,8 @@ func (t *http2Client) handleRSTStream(f *http2.RSTStreamFrame) { } statusCode, ok := http2ErrConvTab[f.ErrCode] if !ok { - if logger.V(logLevel) { - logger.Warningf("transport: http2Client.handleRSTStream found no mapped gRPC status for the received http2 error: %v", f.ErrCode) + if t.logger.V(logLevel) { + t.logger.Infof("Received a RST_STREAM frame with code %q, but found no mapped gRPC status", f.ErrCode) } statusCode = codes.Unknown } @@ -1334,7 +1337,7 @@ func (t *http2Client) handleGoAway(f *http2.GoAwayFrame) { // setGoAwayReason sets the value of t.goAwayReason based // on the GoAway frame received. -// It expects a lock on transport's mutext to be held by +// It expects a lock on transport's mutex to be held by // the caller. func (t *http2Client) setGoAwayReason(f *http2.GoAwayFrame) { t.goAwayReason = GoAwayNoReason diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/http2_server.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/http2_server.go index 99ae1a737469..ec4eef21342a 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/http2_server.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/http2_server.go @@ -35,7 +35,9 @@ import ( "github.com/golang/protobuf/proto" "golang.org/x/net/http2" "golang.org/x/net/http2/hpack" + "google.golang.org/grpc/internal/grpclog" "google.golang.org/grpc/internal/grpcutil" + "google.golang.org/grpc/internal/pretty" "google.golang.org/grpc/internal/syscall" "google.golang.org/grpc/codes" @@ -129,6 +131,8 @@ type http2Server struct { // This lock may not be taken if mu is already held. maxStreamMu sync.Mutex maxStreamID uint32 // max stream ID ever seen + + logger *grpclog.PrefixLogger } // NewServerTransport creates a http2 transport with conn and configuration @@ -167,15 +171,10 @@ func NewServerTransport(conn net.Conn, config *ServerConfig) (_ ServerTransport, ID: http2.SettingMaxFrameSize, Val: http2MaxFrameLen, }} - // TODO(zhaoq): Have a better way to signal "no limit" because 0 is - // permitted in the HTTP2 spec. - maxStreams := config.MaxStreams - if maxStreams == 0 { - maxStreams = math.MaxUint32 - } else { + if config.MaxStreams != math.MaxUint32 { isettings = append(isettings, http2.Setting{ ID: http2.SettingMaxConcurrentStreams, - Val: maxStreams, + Val: config.MaxStreams, }) } dynamicWindow := true @@ -254,7 +253,7 @@ func NewServerTransport(conn net.Conn, config *ServerConfig) (_ ServerTransport, framer: framer, readerDone: make(chan struct{}), writerDone: make(chan struct{}), - maxStreams: maxStreams, + maxStreams: config.MaxStreams, inTapHandle: config.InTapHandle, fc: &trInFlow{limit: uint32(icwz)}, state: reachable, @@ -267,6 +266,7 @@ func NewServerTransport(conn net.Conn, config *ServerConfig) (_ ServerTransport, czData: new(channelzData), bufferPool: newBufferPool(), } + t.logger = prefixLoggerForServerTransport(t) // Add peer information to the http2server context. t.ctx = peer.NewContext(t.ctx, t.getPeer()) @@ -331,7 +331,7 @@ func NewServerTransport(conn net.Conn, config *ServerConfig) (_ ServerTransport, t.handleSettings(sf) go func() { - t.loopy = newLoopyWriter(serverSide, t.framer, t.controlBuf, t.bdpEst, t.conn) + t.loopy = newLoopyWriter(serverSide, t.framer, t.controlBuf, t.bdpEst, t.conn, t.logger) t.loopy.ssGoAwayHandler = t.outgoingGoAwayHandler t.loopy.run() close(t.writerDone) @@ -425,8 +425,8 @@ func (t *http2Server) operateHeaders(frame *http2.MetaHeadersFrame, handle func( // "Transports must consider requests containing the Connection header // as malformed." - A41 case "connection": - if logger.V(logLevel) { - logger.Errorf("transport: http2Server.operateHeaders parsed a :connection header which makes a request malformed as per the HTTP/2 spec") + if t.logger.V(logLevel) { + t.logger.Infof("Received a HEADERS frame with a :connection header which makes the request malformed, as per the HTTP/2 spec") } protocolError = true default: @@ -436,7 +436,7 @@ func (t *http2Server) operateHeaders(frame *http2.MetaHeadersFrame, handle func( v, err := decodeMetadataHeader(hf.Name, hf.Value) if err != nil { headerError = status.Newf(codes.Internal, "malformed binary metadata %q in header %q: %v", hf.Value, hf.Name, err) - logger.Warningf("Failed to decode metadata header (%q, %q): %v", hf.Name, hf.Value, err) + t.logger.Warningf("Failed to decode metadata header (%q, %q): %v", hf.Name, hf.Value, err) break } mdata[hf.Name] = append(mdata[hf.Name], v) @@ -450,8 +450,8 @@ func (t *http2Server) operateHeaders(frame *http2.MetaHeadersFrame, handle func( // error, this takes precedence over a client not speaking gRPC. if len(mdata[":authority"]) > 1 || len(mdata["host"]) > 1 { errMsg := fmt.Sprintf("num values of :authority: %v, num values of host: %v, both must only have 1 value as per HTTP/2 spec", len(mdata[":authority"]), len(mdata["host"])) - if logger.V(logLevel) { - logger.Errorf("transport: %v", errMsg) + if t.logger.V(logLevel) { + t.logger.Infof("Aborting the stream early: %v", errMsg) } t.controlBuf.put(&earlyAbortStream{ httpStatus: http.StatusBadRequest, @@ -545,9 +545,9 @@ func (t *http2Server) operateHeaders(frame *http2.MetaHeadersFrame, handle func( } if httpMethod != http.MethodPost { t.mu.Unlock() - errMsg := fmt.Sprintf("http2Server.operateHeaders parsed a :method field: %v which should be POST", httpMethod) - if logger.V(logLevel) { - logger.Infof("transport: %v", errMsg) + errMsg := fmt.Sprintf("Received a HEADERS frame with :method %q which should be POST", httpMethod) + if t.logger.V(logLevel) { + t.logger.Infof("Aborting the stream early: %v", errMsg) } t.controlBuf.put(&earlyAbortStream{ httpStatus: 405, @@ -563,8 +563,8 @@ func (t *http2Server) operateHeaders(frame *http2.MetaHeadersFrame, handle func( var err error if s.ctx, err = t.inTapHandle(s.ctx, &tap.Info{FullMethodName: s.method}); err != nil { t.mu.Unlock() - if logger.V(logLevel) { - logger.Infof("transport: http2Server.operateHeaders got an error from InTapHandle: %v", err) + if t.logger.V(logLevel) { + t.logger.Infof("Aborting the stream early due to InTapHandle failure: %v", err) } stat, ok := status.FromError(err) if !ok { @@ -638,8 +638,8 @@ func (t *http2Server) HandleStreams(handle func(*Stream), traceCtx func(context. atomic.StoreInt64(&t.lastRead, time.Now().UnixNano()) if err != nil { if se, ok := err.(http2.StreamError); ok { - if logger.V(logLevel) { - logger.Warningf("transport: http2Server.HandleStreams encountered http2.StreamError: %v", se) + if t.logger.V(logLevel) { + t.logger.Warningf("Encountered http2.StreamError: %v", se) } t.mu.Lock() s := t.activeStreams[se.StreamID] @@ -682,8 +682,8 @@ func (t *http2Server) HandleStreams(handle func(*Stream), traceCtx func(context. case *http2.GoAwayFrame: // TODO: Handle GoAway from the client appropriately. default: - if logger.V(logLevel) { - logger.Errorf("transport: http2Server.HandleStreams found unhandled frame type %v.", frame) + if t.logger.V(logLevel) { + t.logger.Infof("Received unsupported frame type %T", frame) } } } @@ -942,8 +942,8 @@ func (t *http2Server) checkForHeaderListSize(it interface{}) bool { var sz int64 for _, f := range hdrFrame.hf { if sz += int64(f.Size()); sz > int64(*t.maxSendHeaderListSize) { - if logger.V(logLevel) { - logger.Errorf("header list size to send violates the maximum size (%d bytes) set by client", *t.maxSendHeaderListSize) + if t.logger.V(logLevel) { + t.logger.Infof("Header list size to send violates the maximum size (%d bytes) set by client", *t.maxSendHeaderListSize) } return false } @@ -1056,7 +1056,7 @@ func (t *http2Server) WriteStatus(s *Stream, st *status.Status) error { stBytes, err := proto.Marshal(p) if err != nil { // TODO: return error instead, when callers are able to handle it. - logger.Errorf("transport: failed to marshal rpc status: %v, error: %v", p, err) + t.logger.Errorf("Failed to marshal rpc status: %s, error: %v", pretty.ToJSON(p), err) } else { headerFields = append(headerFields, hpack.HeaderField{Name: "grpc-status-details-bin", Value: encodeBinHeader(stBytes)}) } @@ -1161,18 +1161,18 @@ func (t *http2Server) keepalive() { if val <= 0 { // The connection has been idle for a duration of keepalive.MaxConnectionIdle or more. // Gracefully close the connection. - t.Drain() + t.Drain("max_idle") return } idleTimer.Reset(val) case <-ageTimer.C: - t.Drain() + t.Drain("max_age") ageTimer.Reset(t.kp.MaxConnectionAgeGrace) select { case <-ageTimer.C: // Close the connection after grace period. - if logger.V(logLevel) { - logger.Infof("transport: closing server transport due to maximum connection age.") + if t.logger.V(logLevel) { + t.logger.Infof("Closing server transport due to maximum connection age") } t.controlBuf.put(closeConnection{}) case <-t.done: @@ -1223,8 +1223,8 @@ func (t *http2Server) Close(err error) { t.mu.Unlock() return } - if logger.V(logLevel) { - logger.Infof("transport: closing: %v", err) + if t.logger.V(logLevel) { + t.logger.Infof("Closing: %v", err) } t.state = closing streams := t.activeStreams @@ -1232,8 +1232,8 @@ func (t *http2Server) Close(err error) { t.mu.Unlock() t.controlBuf.finish() close(t.done) - if err := t.conn.Close(); err != nil && logger.V(logLevel) { - logger.Infof("transport: error closing conn during Close: %v", err) + if err := t.conn.Close(); err != nil && t.logger.V(logLevel) { + t.logger.Infof("Error closing underlying net.Conn during Close: %v", err) } channelz.RemoveEntry(t.channelzID) // Cancel all active streams. @@ -1313,14 +1313,14 @@ func (t *http2Server) RemoteAddr() net.Addr { return t.remoteAddr } -func (t *http2Server) Drain() { +func (t *http2Server) Drain(debugData string) { t.mu.Lock() defer t.mu.Unlock() if t.drainEvent != nil { return } t.drainEvent = grpcsync.NewEvent() - t.controlBuf.put(&goAway{code: http2.ErrCodeNo, debugData: []byte{}, headsUp: true}) + t.controlBuf.put(&goAway{code: http2.ErrCodeNo, debugData: []byte(debugData), headsUp: true}) } var goAwayPing = &ping{data: [8]byte{1, 6, 1, 8, 0, 3, 3, 9}} @@ -1362,7 +1362,7 @@ func (t *http2Server) outgoingGoAwayHandler(g *goAway) (bool, error) { // originated before the GoAway reaches the client. // After getting the ack or timer expiration send out another GoAway this // time with an ID of the max stream server intends to process. - if err := t.framer.fr.WriteGoAway(math.MaxUint32, http2.ErrCodeNo, []byte{}); err != nil { + if err := t.framer.fr.WriteGoAway(math.MaxUint32, http2.ErrCodeNo, g.debugData); err != nil { return false, err } if err := t.framer.fr.WritePing(false, goAwayPing.data); err != nil { diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/http_util.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/http_util.go index 8fcae4f4d079..19cbb18f5ab4 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/http_util.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/http_util.go @@ -38,7 +38,6 @@ import ( "golang.org/x/net/http2/hpack" spb "google.golang.org/genproto/googleapis/rpc/status" "google.golang.org/grpc/codes" - "google.golang.org/grpc/grpclog" "google.golang.org/grpc/status" ) @@ -86,7 +85,6 @@ var ( // 504 Gateway timeout - UNAVAILABLE. http.StatusGatewayTimeout: codes.Unavailable, } - logger = grpclog.Component("transport") ) // isReservedHeader checks whether hdr belongs to HTTP2 headers diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/logging.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/logging.go new file mode 100644 index 000000000000..42ed2b07af66 --- /dev/null +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/logging.go @@ -0,0 +1,40 @@ +/* + * + * Copyright 2023 gRPC authors. + * + * 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 transport + +import ( + "fmt" + + "google.golang.org/grpc/grpclog" + internalgrpclog "google.golang.org/grpc/internal/grpclog" +) + +var logger = grpclog.Component("transport") + +func prefixLoggerForServerTransport(p *http2Server) *internalgrpclog.PrefixLogger { + return internalgrpclog.NewPrefixLogger(logger, fmt.Sprintf("[server-transport %p] ", p)) +} + +func prefixLoggerForServerHandlerTransport(p *serverHandlerTransport) *internalgrpclog.PrefixLogger { + return internalgrpclog.NewPrefixLogger(logger, fmt.Sprintf("[server-handler-transport %p] ", p)) +} + +func prefixLoggerForClientTransport(p *http2Client) *internalgrpclog.PrefixLogger { + return internalgrpclog.NewPrefixLogger(logger, fmt.Sprintf("[client-transport %p] ", p)) +} diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/transport.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/transport.go index 1b7d7fabc512..aa1c896595d9 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/transport.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/internal/transport/transport.go @@ -726,7 +726,7 @@ type ServerTransport interface { RemoteAddr() net.Addr // Drain notifies the client this ServerTransport stops accepting new RPCs. - Drain() + Drain(debugData string) // IncrMsgSent increments the number of message sent through this transport. IncrMsgSent() diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/picker_wrapper.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/picker_wrapper.go index c525dc070fc6..02f975951242 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/picker_wrapper.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/picker_wrapper.go @@ -36,6 +36,7 @@ import ( type pickerWrapper struct { mu sync.Mutex done bool + idle bool blockingCh chan struct{} picker balancer.Picker } @@ -47,7 +48,11 @@ func newPickerWrapper() *pickerWrapper { // updatePicker is called by UpdateBalancerState. It unblocks all blocked pick. func (pw *pickerWrapper) updatePicker(p balancer.Picker) { pw.mu.Lock() - if pw.done { + if pw.done || pw.idle { + // There is a small window where a picker update from the LB policy can + // race with the channel going to idle mode. If the picker is idle here, + // it is because the channel asked it to do so, and therefore it is sage + // to ignore the update from the LB policy. pw.mu.Unlock() return } @@ -63,10 +68,8 @@ func (pw *pickerWrapper) updatePicker(p balancer.Picker) { // - wraps the done function in the passed in result to increment the calls // failed or calls succeeded channelz counter before invoking the actual // done function. -func doneChannelzWrapper(acw *acBalancerWrapper, result *balancer.PickResult) { - acw.mu.Lock() - ac := acw.ac - acw.mu.Unlock() +func doneChannelzWrapper(acbw *acBalancerWrapper, result *balancer.PickResult) { + ac := acbw.ac ac.incrCallsStarted() done := result.Done result.Done = func(b balancer.DoneInfo) { @@ -152,14 +155,14 @@ func (pw *pickerWrapper) pick(ctx context.Context, failfast bool, info balancer. return nil, balancer.PickResult{}, status.Error(codes.Unavailable, err.Error()) } - acw, ok := pickResult.SubConn.(*acBalancerWrapper) + acbw, ok := pickResult.SubConn.(*acBalancerWrapper) if !ok { logger.Errorf("subconn returned from pick is type %T, not *acBalancerWrapper", pickResult.SubConn) continue } - if t := acw.getAddrConn().getReadyTransport(); t != nil { + if t := acbw.ac.getReadyTransport(); t != nil { if channelz.IsOn() { - doneChannelzWrapper(acw, &pickResult) + doneChannelzWrapper(acbw, &pickResult) return t, pickResult, nil } return t, pickResult, nil @@ -187,6 +190,25 @@ func (pw *pickerWrapper) close() { close(pw.blockingCh) } +func (pw *pickerWrapper) enterIdleMode() { + pw.mu.Lock() + defer pw.mu.Unlock() + if pw.done { + return + } + pw.idle = true +} + +func (pw *pickerWrapper) exitIdleMode() { + pw.mu.Lock() + defer pw.mu.Unlock() + if pw.done { + return + } + pw.blockingCh = make(chan struct{}) + pw.idle = false +} + // dropError is a wrapper error that indicates the LB policy wishes to drop the // RPC and not retry it. type dropError struct { diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/pickfirst.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/pickfirst.go index fc91b4d266de..abe266b021d2 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/pickfirst.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/pickfirst.go @@ -19,11 +19,15 @@ package grpc import ( + "encoding/json" "errors" "fmt" "google.golang.org/grpc/balancer" "google.golang.org/grpc/connectivity" + "google.golang.org/grpc/internal/envconfig" + "google.golang.org/grpc/internal/grpcrand" + "google.golang.org/grpc/serviceconfig" ) // PickFirstBalancerName is the name of the pick_first balancer. @@ -43,10 +47,28 @@ func (*pickfirstBuilder) Name() string { return PickFirstBalancerName } +type pfConfig struct { + serviceconfig.LoadBalancingConfig `json:"-"` + + // If set to true, instructs the LB policy to shuffle the order of the list + // of addresses received from the name resolver before attempting to + // connect to them. + ShuffleAddressList bool `json:"shuffleAddressList"` +} + +func (*pickfirstBuilder) ParseConfig(js json.RawMessage) (serviceconfig.LoadBalancingConfig, error) { + cfg := &pfConfig{} + if err := json.Unmarshal(js, cfg); err != nil { + return nil, fmt.Errorf("pickfirst: unable to unmarshal LB policy config: %s, error: %v", string(js), err) + } + return cfg, nil +} + type pickfirstBalancer struct { state connectivity.State cc balancer.ClientConn subConn balancer.SubConn + cfg *pfConfig } func (b *pickfirstBalancer) ResolverError(err error) { @@ -69,7 +91,8 @@ func (b *pickfirstBalancer) ResolverError(err error) { } func (b *pickfirstBalancer) UpdateClientConnState(state balancer.ClientConnState) error { - if len(state.ResolverState.Addresses) == 0 { + addrs := state.ResolverState.Addresses + if len(addrs) == 0 { // The resolver reported an empty address list. Treat it like an error by // calling b.ResolverError. if b.subConn != nil { @@ -82,12 +105,23 @@ func (b *pickfirstBalancer) UpdateClientConnState(state balancer.ClientConnState return balancer.ErrBadResolverState } + if state.BalancerConfig != nil { + cfg, ok := state.BalancerConfig.(*pfConfig) + if !ok { + return fmt.Errorf("pickfirstBalancer: received nil or illegal BalancerConfig (type %T): %v", state.BalancerConfig, state.BalancerConfig) + } + b.cfg = cfg + } + + if envconfig.PickFirstLBConfig && b.cfg != nil && b.cfg.ShuffleAddressList { + grpcrand.Shuffle(len(addrs), func(i, j int) { addrs[i], addrs[j] = addrs[j], addrs[i] }) + } if b.subConn != nil { - b.cc.UpdateAddresses(b.subConn, state.ResolverState.Addresses) + b.cc.UpdateAddresses(b.subConn, addrs) return nil } - subConn, err := b.cc.NewSubConn(state.ResolverState.Addresses, balancer.NewSubConnOptions{}) + subConn, err := b.cc.NewSubConn(addrs, balancer.NewSubConnOptions{}) if err != nil { if logger.V(2) { logger.Errorf("pickfirstBalancer: failed to NewSubConn: %v", err) @@ -119,7 +153,6 @@ func (b *pickfirstBalancer) UpdateSubConnState(subConn balancer.SubConn, state b } return } - b.state = state.ConnectivityState if state.ConnectivityState == connectivity.Shutdown { b.subConn = nil return @@ -132,11 +165,21 @@ func (b *pickfirstBalancer) UpdateSubConnState(subConn balancer.SubConn, state b Picker: &picker{result: balancer.PickResult{SubConn: subConn}}, }) case connectivity.Connecting: + if b.state == connectivity.TransientFailure { + // We stay in TransientFailure until we are Ready. See A62. + return + } b.cc.UpdateState(balancer.State{ ConnectivityState: state.ConnectivityState, Picker: &picker{err: balancer.ErrNoSubConnAvailable}, }) case connectivity.Idle: + if b.state == connectivity.TransientFailure { + // We stay in TransientFailure until we are Ready. Also kick the + // subConn out of Idle into Connecting. See A62. + b.subConn.Connect() + return + } b.cc.UpdateState(balancer.State{ ConnectivityState: state.ConnectivityState, Picker: &idlePicker{subConn: subConn}, @@ -147,6 +190,7 @@ func (b *pickfirstBalancer) UpdateSubConnState(subConn balancer.SubConn, state b Picker: &picker{err: state.ConnectionError}, }) } + b.state = state.ConnectivityState } func (b *pickfirstBalancer) Close() { diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/resolver/manual/manual.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/resolver/manual/manual.go index f6e7b5ae3581..f27978e1281f 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/resolver/manual/manual.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/resolver/manual/manual.go @@ -21,6 +21,8 @@ package manual import ( + "sync" + "google.golang.org/grpc/resolver" ) @@ -50,6 +52,7 @@ type Resolver struct { scheme string // Fields actually belong to the resolver. + mu sync.Mutex // Guards access to CC. CC resolver.ClientConn bootstrapState *resolver.State } @@ -62,8 +65,10 @@ func (r *Resolver) InitialState(s resolver.State) { // Build returns itself for Resolver, because it's both a builder and a resolver. func (r *Resolver) Build(target resolver.Target, cc resolver.ClientConn, opts resolver.BuildOptions) (resolver.Resolver, error) { - r.BuildCallback(target, cc, opts) + r.mu.Lock() r.CC = cc + r.mu.Unlock() + r.BuildCallback(target, cc, opts) if r.bootstrapState != nil { r.UpdateState(*r.bootstrapState) } @@ -87,10 +92,14 @@ func (r *Resolver) Close() { // UpdateState calls CC.UpdateState. func (r *Resolver) UpdateState(s resolver.State) { + r.mu.Lock() r.CC.UpdateState(s) + r.mu.Unlock() } // ReportError calls CC.ReportError. func (r *Resolver) ReportError(err error) { + r.mu.Lock() r.CC.ReportError(err) + r.mu.Unlock() } diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/resolver/resolver.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/resolver/resolver.go index 6215e5ef2b02..353c10b69a5b 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/resolver/resolver.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/resolver/resolver.go @@ -22,13 +22,13 @@ package resolver import ( "context" + "fmt" "net" "net/url" "strings" "google.golang.org/grpc/attributes" "google.golang.org/grpc/credentials" - "google.golang.org/grpc/internal/pretty" "google.golang.org/grpc/serviceconfig" ) @@ -124,7 +124,7 @@ type Address struct { Attributes *attributes.Attributes // BalancerAttributes contains arbitrary data about this address intended - // for consumption by the LB policy. These attribes do not affect SubConn + // for consumption by the LB policy. These attributes do not affect SubConn // creation, connection establishment, handshaking, etc. BalancerAttributes *attributes.Attributes @@ -151,7 +151,17 @@ func (a Address) Equal(o Address) bool { // String returns JSON formatted string representation of the address. func (a Address) String() string { - return pretty.ToJSON(a) + var sb strings.Builder + sb.WriteString(fmt.Sprintf("{Addr: %q, ", a.Addr)) + sb.WriteString(fmt.Sprintf("ServerName: %q, ", a.ServerName)) + if a.Attributes != nil { + sb.WriteString(fmt.Sprintf("Attributes: %v, ", a.Attributes.String())) + } + if a.BalancerAttributes != nil { + sb.WriteString(fmt.Sprintf("BalancerAttributes: %v", a.BalancerAttributes.String())) + } + sb.WriteString("}") + return sb.String() } // BuildOptions includes additional information for the builder to create diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/resolver_conn_wrapper.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/resolver_conn_wrapper.go index 05a9d4e0bac0..b408b3688f2e 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/resolver_conn_wrapper.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/resolver_conn_wrapper.go @@ -19,11 +19,11 @@ package grpc import ( + "context" "strings" "sync" "google.golang.org/grpc/balancer" - "google.golang.org/grpc/credentials" "google.golang.org/grpc/internal/channelz" "google.golang.org/grpc/internal/grpcsync" "google.golang.org/grpc/internal/pretty" @@ -31,129 +31,192 @@ import ( "google.golang.org/grpc/serviceconfig" ) +// resolverStateUpdater wraps the single method used by ccResolverWrapper to +// report a state update from the actual resolver implementation. +type resolverStateUpdater interface { + updateResolverState(s resolver.State, err error) error +} + // ccResolverWrapper is a wrapper on top of cc for resolvers. // It implements resolver.ClientConn interface. type ccResolverWrapper struct { - cc *ClientConn - resolverMu sync.Mutex - resolver resolver.Resolver - done *grpcsync.Event - curState resolver.State + // The following fields are initialized when the wrapper is created and are + // read-only afterwards, and therefore can be accessed without a mutex. + cc resolverStateUpdater + channelzID *channelz.Identifier + ignoreServiceConfig bool + opts ccResolverWrapperOpts + serializer *grpcsync.CallbackSerializer // To serialize all incoming calls. + serializerCancel context.CancelFunc // To close the serializer, accessed only from close(). + + // All incoming (resolver --> gRPC) calls are guaranteed to execute in a + // mutually exclusive manner as they are scheduled on the serializer. + // Fields accessed *only* in these serializer callbacks, can therefore be + // accessed without a mutex. + curState resolver.State + + // mu guards access to the below fields. + mu sync.Mutex + closed bool + resolver resolver.Resolver // Accessed only from outgoing calls. +} - incomingMu sync.Mutex // Synchronizes all the incoming calls. +// ccResolverWrapperOpts wraps the arguments to be passed when creating a new +// ccResolverWrapper. +type ccResolverWrapperOpts struct { + target resolver.Target // User specified dial target to resolve. + builder resolver.Builder // Resolver builder to use. + bOpts resolver.BuildOptions // Resolver build options to use. + channelzID *channelz.Identifier // Channelz identifier for the channel. } // newCCResolverWrapper uses the resolver.Builder to build a Resolver and // returns a ccResolverWrapper object which wraps the newly built resolver. -func newCCResolverWrapper(cc *ClientConn, rb resolver.Builder) (*ccResolverWrapper, error) { +func newCCResolverWrapper(cc resolverStateUpdater, opts ccResolverWrapperOpts) (*ccResolverWrapper, error) { + ctx, cancel := context.WithCancel(context.Background()) ccr := &ccResolverWrapper{ - cc: cc, - done: grpcsync.NewEvent(), - } - - var credsClone credentials.TransportCredentials - if creds := cc.dopts.copts.TransportCredentials; creds != nil { - credsClone = creds.Clone() - } - rbo := resolver.BuildOptions{ - DisableServiceConfig: cc.dopts.disableServiceConfig, - DialCreds: credsClone, - CredsBundle: cc.dopts.copts.CredsBundle, - Dialer: cc.dopts.copts.Dialer, - } - - var err error - // We need to hold the lock here while we assign to the ccr.resolver field - // to guard against a data race caused by the following code path, - // rb.Build-->ccr.ReportError-->ccr.poll-->ccr.resolveNow, would end up - // accessing ccr.resolver which is being assigned here. - ccr.resolverMu.Lock() - defer ccr.resolverMu.Unlock() - ccr.resolver, err = rb.Build(cc.parsedTarget, ccr, rbo) + cc: cc, + channelzID: opts.channelzID, + ignoreServiceConfig: opts.bOpts.DisableServiceConfig, + opts: opts, + serializer: grpcsync.NewCallbackSerializer(ctx), + serializerCancel: cancel, + } + + // Cannot hold the lock at build time because the resolver can send an + // update or error inline and these incoming calls grab the lock to schedule + // a callback in the serializer. + r, err := opts.builder.Build(opts.target, ccr, opts.bOpts) if err != nil { + cancel() return nil, err } + + // Any error reported by the resolver at build time that leads to a + // re-resolution request from the balancer is dropped by grpc until we + // return from this function. So, we don't have to handle pending resolveNow + // requests here. + ccr.mu.Lock() + ccr.resolver = r + ccr.mu.Unlock() + return ccr, nil } func (ccr *ccResolverWrapper) resolveNow(o resolver.ResolveNowOptions) { - ccr.resolverMu.Lock() - if !ccr.done.HasFired() { - ccr.resolver.ResolveNow(o) + ccr.mu.Lock() + defer ccr.mu.Unlock() + + // ccr.resolver field is set only after the call to Build() returns. But in + // the process of building, the resolver may send an error update which when + // propagated to the balancer may result in a re-resolution request. + if ccr.closed || ccr.resolver == nil { + return } - ccr.resolverMu.Unlock() + ccr.resolver.ResolveNow(o) } func (ccr *ccResolverWrapper) close() { - ccr.resolverMu.Lock() - ccr.resolver.Close() - ccr.done.Fire() - ccr.resolverMu.Unlock() + ccr.mu.Lock() + if ccr.closed { + ccr.mu.Unlock() + return + } + + channelz.Info(logger, ccr.channelzID, "Closing the name resolver") + + // Close the serializer to ensure that no more calls from the resolver are + // handled, before actually closing the resolver. + ccr.serializerCancel() + ccr.closed = true + r := ccr.resolver + ccr.mu.Unlock() + + // Give enqueued callbacks a chance to finish. + <-ccr.serializer.Done + + // Spawn a goroutine to close the resolver (since it may block trying to + // cleanup all allocated resources) and return early. + go r.Close() +} + +// serializerScheduleLocked is a convenience method to schedule a function to be +// run on the serializer while holding ccr.mu. +func (ccr *ccResolverWrapper) serializerScheduleLocked(f func(context.Context)) { + ccr.mu.Lock() + ccr.serializer.Schedule(f) + ccr.mu.Unlock() } +// UpdateState is called by resolver implementations to report new state to gRPC +// which includes addresses and service config. func (ccr *ccResolverWrapper) UpdateState(s resolver.State) error { - ccr.incomingMu.Lock() - defer ccr.incomingMu.Unlock() - if ccr.done.HasFired() { + errCh := make(chan error, 1) + ok := ccr.serializer.Schedule(func(context.Context) { + ccr.addChannelzTraceEvent(s) + ccr.curState = s + if err := ccr.cc.updateResolverState(ccr.curState, nil); err == balancer.ErrBadResolverState { + errCh <- balancer.ErrBadResolverState + return + } + errCh <- nil + }) + if !ok { + // The only time when Schedule() fail to add the callback to the + // serializer is when the serializer is closed, and this happens only + // when the resolver wrapper is closed. return nil } - ccr.addChannelzTraceEvent(s) - ccr.curState = s - if err := ccr.cc.updateResolverState(ccr.curState, nil); err == balancer.ErrBadResolverState { - return balancer.ErrBadResolverState - } - return nil + return <-errCh } +// ReportError is called by resolver implementations to report errors +// encountered during name resolution to gRPC. func (ccr *ccResolverWrapper) ReportError(err error) { - ccr.incomingMu.Lock() - defer ccr.incomingMu.Unlock() - if ccr.done.HasFired() { - return - } - channelz.Warningf(logger, ccr.cc.channelzID, "ccResolverWrapper: reporting error to cc: %v", err) - ccr.cc.updateResolverState(resolver.State{}, err) + ccr.serializerScheduleLocked(func(_ context.Context) { + channelz.Warningf(logger, ccr.channelzID, "ccResolverWrapper: reporting error to cc: %v", err) + ccr.cc.updateResolverState(resolver.State{}, err) + }) } -// NewAddress is called by the resolver implementation to send addresses to gRPC. +// NewAddress is called by the resolver implementation to send addresses to +// gRPC. func (ccr *ccResolverWrapper) NewAddress(addrs []resolver.Address) { - ccr.incomingMu.Lock() - defer ccr.incomingMu.Unlock() - if ccr.done.HasFired() { - return - } - ccr.addChannelzTraceEvent(resolver.State{Addresses: addrs, ServiceConfig: ccr.curState.ServiceConfig}) - ccr.curState.Addresses = addrs - ccr.cc.updateResolverState(ccr.curState, nil) + ccr.serializerScheduleLocked(func(_ context.Context) { + ccr.addChannelzTraceEvent(resolver.State{Addresses: addrs, ServiceConfig: ccr.curState.ServiceConfig}) + ccr.curState.Addresses = addrs + ccr.cc.updateResolverState(ccr.curState, nil) + }) } // NewServiceConfig is called by the resolver implementation to send service // configs to gRPC. func (ccr *ccResolverWrapper) NewServiceConfig(sc string) { - ccr.incomingMu.Lock() - defer ccr.incomingMu.Unlock() - if ccr.done.HasFired() { - return - } - channelz.Infof(logger, ccr.cc.channelzID, "ccResolverWrapper: got new service config: %s", sc) - if ccr.cc.dopts.disableServiceConfig { - channelz.Info(logger, ccr.cc.channelzID, "Service config lookups disabled; ignoring config") - return - } - scpr := parseServiceConfig(sc) - if scpr.Err != nil { - channelz.Warningf(logger, ccr.cc.channelzID, "ccResolverWrapper: error parsing service config: %v", scpr.Err) - return - } - ccr.addChannelzTraceEvent(resolver.State{Addresses: ccr.curState.Addresses, ServiceConfig: scpr}) - ccr.curState.ServiceConfig = scpr - ccr.cc.updateResolverState(ccr.curState, nil) + ccr.serializerScheduleLocked(func(_ context.Context) { + channelz.Infof(logger, ccr.channelzID, "ccResolverWrapper: got new service config: %s", sc) + if ccr.ignoreServiceConfig { + channelz.Info(logger, ccr.channelzID, "Service config lookups disabled; ignoring config") + return + } + scpr := parseServiceConfig(sc) + if scpr.Err != nil { + channelz.Warningf(logger, ccr.channelzID, "ccResolverWrapper: error parsing service config: %v", scpr.Err) + return + } + ccr.addChannelzTraceEvent(resolver.State{Addresses: ccr.curState.Addresses, ServiceConfig: scpr}) + ccr.curState.ServiceConfig = scpr + ccr.cc.updateResolverState(ccr.curState, nil) + }) } +// ParseServiceConfig is called by resolver implementations to parse a JSON +// representation of the service config. func (ccr *ccResolverWrapper) ParseServiceConfig(scJSON string) *serviceconfig.ParseResult { return parseServiceConfig(scJSON) } +// addChannelzTraceEvent adds a channelz trace event containing the new +// state received from resolver implementations. func (ccr *ccResolverWrapper) addChannelzTraceEvent(s resolver.State) { var updates []string var oldSC, newSC *ServiceConfig @@ -172,5 +235,5 @@ func (ccr *ccResolverWrapper) addChannelzTraceEvent(s resolver.State) { } else if len(ccr.curState.Addresses) == 0 && len(s.Addresses) > 0 { updates = append(updates, "resolver returned new addresses") } - channelz.Infof(logger, ccr.cc.channelzID, "Resolver state updated: %s (%v)", pretty.ToJSON(s), strings.Join(updates, "; ")) + channelz.Infof(logger, ccr.channelzID, "Resolver state updated: %s (%v)", pretty.ToJSON(s), strings.Join(updates, "; ")) } diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/server.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/server.go index 087b9ad7c1f6..8869cc906f25 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/server.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/server.go @@ -43,7 +43,6 @@ import ( "google.golang.org/grpc/internal" "google.golang.org/grpc/internal/binarylog" "google.golang.org/grpc/internal/channelz" - "google.golang.org/grpc/internal/grpcrand" "google.golang.org/grpc/internal/grpcsync" "google.golang.org/grpc/internal/grpcutil" "google.golang.org/grpc/internal/transport" @@ -116,12 +115,6 @@ type serviceInfo struct { mdata interface{} } -type serverWorkerData struct { - st transport.ServerTransport - wg *sync.WaitGroup - stream *transport.Stream -} - // Server is a gRPC server to serve RPC requests. type Server struct { opts serverOptions @@ -146,7 +139,7 @@ type Server struct { channelzID *channelz.Identifier czData *channelzData - serverWorkerChannels []chan *serverWorkerData + serverWorkerChannel chan func() } type serverOptions struct { @@ -178,6 +171,7 @@ type serverOptions struct { } var defaultServerOptions = serverOptions{ + maxConcurrentStreams: math.MaxUint32, maxReceiveMessageSize: defaultServerMaxReceiveMessageSize, maxSendMessageSize: defaultServerMaxSendMessageSize, connectionTimeout: 120 * time.Second, @@ -388,6 +382,9 @@ func MaxSendMsgSize(m int) ServerOption { // MaxConcurrentStreams returns a ServerOption that will apply a limit on the number // of concurrent streams to each ServerTransport. func MaxConcurrentStreams(n uint32) ServerOption { + if n == 0 { + n = math.MaxUint32 + } return newFuncServerOption(func(o *serverOptions) { o.maxConcurrentStreams = n }) @@ -561,40 +558,33 @@ func NumStreamWorkers(numServerWorkers uint32) ServerOption { const serverWorkerResetThreshold = 1 << 16 // serverWorkers blocks on a *transport.Stream channel forever and waits for -// data to be fed by serveStreams. This allows different requests to be +// data to be fed by serveStreams. This allows multiple requests to be // processed by the same goroutine, removing the need for expensive stack // re-allocations (see the runtime.morestack problem [1]). // // [1] https://github.com/golang/go/issues/18138 -func (s *Server) serverWorker(ch chan *serverWorkerData) { - // To make sure all server workers don't reset at the same time, choose a - // random number of iterations before resetting. - threshold := serverWorkerResetThreshold + grpcrand.Intn(serverWorkerResetThreshold) - for completed := 0; completed < threshold; completed++ { - data, ok := <-ch +func (s *Server) serverWorker() { + for completed := 0; completed < serverWorkerResetThreshold; completed++ { + f, ok := <-s.serverWorkerChannel if !ok { return } - s.handleStream(data.st, data.stream, s.traceInfo(data.st, data.stream)) - data.wg.Done() + f() } - go s.serverWorker(ch) + go s.serverWorker() } -// initServerWorkers creates worker goroutines and channels to process incoming +// initServerWorkers creates worker goroutines and a channel to process incoming // connections to reduce the time spent overall on runtime.morestack. func (s *Server) initServerWorkers() { - s.serverWorkerChannels = make([]chan *serverWorkerData, s.opts.numServerWorkers) + s.serverWorkerChannel = make(chan func()) for i := uint32(0); i < s.opts.numServerWorkers; i++ { - s.serverWorkerChannels[i] = make(chan *serverWorkerData) - go s.serverWorker(s.serverWorkerChannels[i]) + go s.serverWorker() } } func (s *Server) stopServerWorkers() { - for i := uint32(0); i < s.opts.numServerWorkers; i++ { - close(s.serverWorkerChannels[i]) - } + close(s.serverWorkerChannel) } // NewServer creates a gRPC server which has no service registered and has not @@ -898,7 +888,7 @@ func (s *Server) drainServerTransports(addr string) { s.mu.Lock() conns := s.conns[addr] for st := range conns { - st.Drain() + st.Drain("") } s.mu.Unlock() } @@ -946,26 +936,26 @@ func (s *Server) serveStreams(st transport.ServerTransport) { defer st.Close(errors.New("finished serving streams for the server transport")) var wg sync.WaitGroup - var roundRobinCounter uint32 + streamQuota := newHandlerQuota(s.opts.maxConcurrentStreams) st.HandleStreams(func(stream *transport.Stream) { wg.Add(1) + + streamQuota.acquire() + f := func() { + defer streamQuota.release() + defer wg.Done() + s.handleStream(st, stream, s.traceInfo(st, stream)) + } + if s.opts.numServerWorkers > 0 { - data := &serverWorkerData{st: st, wg: &wg, stream: stream} select { - case s.serverWorkerChannels[atomic.AddUint32(&roundRobinCounter, 1)%s.opts.numServerWorkers] <- data: + case s.serverWorkerChannel <- f: + return default: // If all stream workers are busy, fallback to the default code path. - go func() { - s.handleStream(st, stream, s.traceInfo(st, stream)) - wg.Done() - }() } - } else { - go func() { - defer wg.Done() - s.handleStream(st, stream, s.traceInfo(st, stream)) - }() } + go f() }, func(ctx context.Context, method string) context.Context { if !EnableTracing { return ctx @@ -1054,7 +1044,7 @@ func (s *Server) addConn(addr string, st transport.ServerTransport) bool { if s.drain { // Transport added after we drained our existing conns: drain it // immediately. - st.Drain() + st.Drain("") } if s.conns[addr] == nil { @@ -1864,7 +1854,7 @@ func (s *Server) GracefulStop() { if !s.drain { for _, conns := range s.conns { for st := range conns { - st.Drain() + st.Drain("graceful_stop") } } s.drain = true @@ -2060,3 +2050,32 @@ func validateSendCompressor(name, clientCompressors string) error { } return fmt.Errorf("client does not support compressor %q", name) } + +// atomicSemaphore implements a blocking, counting semaphore. acquire should be +// called synchronously; release may be called asynchronously. +type atomicSemaphore struct { + n int64 + wait chan struct{} +} + +func (q *atomicSemaphore) acquire() { + if atomic.AddInt64(&q.n, -1) < 0 { + // We ran out of quota. Block until a release happens. + <-q.wait + } +} + +func (q *atomicSemaphore) release() { + // N.B. the "<= 0" check below should allow for this to work with multiple + // concurrent calls to acquire, but also note that with synchronous calls to + // acquire, as our system does, n will never be less than -1. There are + // fairness issues (queuing) to consider if this was to be generalized. + if atomic.AddInt64(&q.n, 1) <= 0 { + // An acquire was waiting on us. Unblock it. + q.wait <- struct{}{} + } +} + +func newHandlerQuota(n uint32) *atomicSemaphore { + return &atomicSemaphore{n: int64(n), wait: make(chan struct{}, 1)} +} diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/service_config.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/service_config.go index f22acace4253..0df11fc09882 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/service_config.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/service_config.go @@ -23,8 +23,6 @@ import ( "errors" "fmt" "reflect" - "strconv" - "strings" "time" "google.golang.org/grpc/codes" @@ -106,8 +104,8 @@ type healthCheckConfig struct { type jsonRetryPolicy struct { MaxAttempts int - InitialBackoff string - MaxBackoff string + InitialBackoff internalserviceconfig.Duration + MaxBackoff internalserviceconfig.Duration BackoffMultiplier float64 RetryableStatusCodes []codes.Code } @@ -129,50 +127,6 @@ type retryThrottlingPolicy struct { TokenRatio float64 } -func parseDuration(s *string) (*time.Duration, error) { - if s == nil { - return nil, nil - } - if !strings.HasSuffix(*s, "s") { - return nil, fmt.Errorf("malformed duration %q", *s) - } - ss := strings.SplitN((*s)[:len(*s)-1], ".", 3) - if len(ss) > 2 { - return nil, fmt.Errorf("malformed duration %q", *s) - } - // hasDigits is set if either the whole or fractional part of the number is - // present, since both are optional but one is required. - hasDigits := false - var d time.Duration - if len(ss[0]) > 0 { - i, err := strconv.ParseInt(ss[0], 10, 32) - if err != nil { - return nil, fmt.Errorf("malformed duration %q: %v", *s, err) - } - d = time.Duration(i) * time.Second - hasDigits = true - } - if len(ss) == 2 && len(ss[1]) > 0 { - if len(ss[1]) > 9 { - return nil, fmt.Errorf("malformed duration %q", *s) - } - f, err := strconv.ParseInt(ss[1], 10, 64) - if err != nil { - return nil, fmt.Errorf("malformed duration %q: %v", *s, err) - } - for i := 9; i > len(ss[1]); i-- { - f *= 10 - } - d += time.Duration(f) - hasDigits = true - } - if !hasDigits { - return nil, fmt.Errorf("malformed duration %q", *s) - } - - return &d, nil -} - type jsonName struct { Service string Method string @@ -201,7 +155,7 @@ func (j jsonName) generatePath() (string, error) { type jsonMC struct { Name *[]jsonName WaitForReady *bool - Timeout *string + Timeout *internalserviceconfig.Duration MaxRequestMessageBytes *int64 MaxResponseMessageBytes *int64 RetryPolicy *jsonRetryPolicy @@ -252,15 +206,10 @@ func parseServiceConfig(js string) *serviceconfig.ParseResult { if m.Name == nil { continue } - d, err := parseDuration(m.Timeout) - if err != nil { - logger.Warningf("grpc: unmarshaling service config %s: %v", js, err) - return &serviceconfig.ParseResult{Err: err} - } mc := MethodConfig{ WaitForReady: m.WaitForReady, - Timeout: d, + Timeout: (*time.Duration)(m.Timeout), } if mc.RetryPolicy, err = convertRetryPolicy(m.RetryPolicy); err != nil { logger.Warningf("grpc: unmarshaling service config %s: %v", js, err) @@ -312,18 +261,10 @@ func convertRetryPolicy(jrp *jsonRetryPolicy) (p *internalserviceconfig.RetryPol if jrp == nil { return nil, nil } - ib, err := parseDuration(&jrp.InitialBackoff) - if err != nil { - return nil, err - } - mb, err := parseDuration(&jrp.MaxBackoff) - if err != nil { - return nil, err - } if jrp.MaxAttempts <= 1 || - *ib <= 0 || - *mb <= 0 || + jrp.InitialBackoff <= 0 || + jrp.MaxBackoff <= 0 || jrp.BackoffMultiplier <= 0 || len(jrp.RetryableStatusCodes) == 0 { logger.Warningf("grpc: ignoring retry policy %v due to illegal configuration", jrp) @@ -332,8 +273,8 @@ func convertRetryPolicy(jrp *jsonRetryPolicy) (p *internalserviceconfig.RetryPol rp := &internalserviceconfig.RetryPolicy{ MaxAttempts: jrp.MaxAttempts, - InitialBackoff: *ib, - MaxBackoff: *mb, + InitialBackoff: time.Duration(jrp.InitialBackoff), + MaxBackoff: time.Duration(jrp.MaxBackoff), BackoffMultiplier: jrp.BackoffMultiplier, RetryableStatusCodes: make(map[codes.Code]bool), } diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/status/status.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/status/status.go index 623be39f26ba..bcf2e4d81beb 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/status/status.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/status/status.go @@ -77,9 +77,18 @@ func FromProto(s *spb.Status) *Status { // FromError returns a Status representation of err. // // - If err was produced by this package or implements the method `GRPCStatus() -// *Status`, the appropriate Status is returned. +// *Status` and `GRPCStatus()` does not return nil, or if err wraps a type +// satisfying this, the Status from `GRPCStatus()` is returned. For wrapped +// errors, the message returned contains the entire err.Error() text and not +// just the wrapped status. In that case, ok is true. // -// - If err is nil, a Status is returned with codes.OK and no message. +// - If err is nil, a Status is returned with codes.OK and no message, and ok +// is true. +// +// - If err implements the method `GRPCStatus() *Status` and `GRPCStatus()` +// returns nil (which maps to Codes.OK), or if err wraps a type +// satisfying this, a Status is returned with codes.Unknown and err's +// Error() message, and ok is false. // // - Otherwise, err is an error not compatible with this package. In this // case, a Status is returned with codes.Unknown and err's Error() message, @@ -88,10 +97,29 @@ func FromError(err error) (s *Status, ok bool) { if err == nil { return nil, true } - if se, ok := err.(interface { - GRPCStatus() *Status - }); ok { - return se.GRPCStatus(), true + type grpcstatus interface{ GRPCStatus() *Status } + if gs, ok := err.(grpcstatus); ok { + if gs.GRPCStatus() == nil { + // Error has status nil, which maps to codes.OK. There + // is no sensible behavior for this, so we turn it into + // an error with codes.Unknown and discard the existing + // status. + return New(codes.Unknown, err.Error()), false + } + return gs.GRPCStatus(), true + } + var gs grpcstatus + if errors.As(err, &gs) { + if gs.GRPCStatus() == nil { + // Error wraps an error that has status nil, which maps + // to codes.OK. There is no sensible behavior for this, + // so we turn it into an error with codes.Unknown and + // discard the existing status. + return New(codes.Unknown, err.Error()), false + } + p := gs.GRPCStatus().Proto() + p.Message = err.Error() + return status.FromProto(p), true } return New(codes.Unknown, err.Error()), false } @@ -103,19 +131,16 @@ func Convert(err error) *Status { return s } -// Code returns the Code of the error if it is a Status error, codes.OK if err -// is nil, or codes.Unknown otherwise. +// Code returns the Code of the error if it is a Status error or if it wraps a +// Status error. If that is not the case, it returns codes.OK if err is nil, or +// codes.Unknown otherwise. func Code(err error) codes.Code { // Don't use FromError to avoid allocation of OK status. if err == nil { return codes.OK } - if se, ok := err.(interface { - GRPCStatus() *Status - }); ok { - return se.GRPCStatus().Code() - } - return codes.Unknown + + return Convert(err).Code() } // FromContextError converts a context error or wrapped context error into a diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/stream.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/stream.go index d1226a4120f8..10092685b228 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/stream.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/stream.go @@ -123,6 +123,9 @@ type ClientStream interface { // calling RecvMsg on the same stream at the same time, but it is not safe // to call SendMsg on the same stream in different goroutines. It is also // not safe to call CloseSend concurrently with SendMsg. + // + // It is not safe to modify the message after calling SendMsg. Tracing + // libraries and stats handlers may use the message lazily. SendMsg(m interface{}) error // RecvMsg blocks until it receives a message into m or the stream is // done. It returns io.EOF when the stream completes successfully. On @@ -152,6 +155,11 @@ type ClientStream interface { // If none of the above happen, a goroutine and a context will be leaked, and grpc // will not call the optionally-configured stats handler with a stats.End message. func (cc *ClientConn) NewStream(ctx context.Context, desc *StreamDesc, method string, opts ...CallOption) (ClientStream, error) { + if err := cc.idlenessMgr.onCallBegin(); err != nil { + return nil, err + } + defer cc.idlenessMgr.onCallEnd() + // allow interceptor to see all applicable call options, which means those // configured as defaults from dial option as well as per-call options opts = combine(cc.dopts.callOptions, opts) @@ -469,7 +477,7 @@ func (a *csAttempt) newStream() error { // It is safe to overwrite the csAttempt's context here, since all state // maintained in it are local to the attempt. When the attempt has to be // retried, a new instance of csAttempt will be created. - if a.pickResult.Metatada != nil { + if a.pickResult.Metadata != nil { // We currently do not have a function it the metadata package which // merges given metadata with existing metadata in a context. Existing // function `AppendToOutgoingContext()` takes a variadic argument of key @@ -479,7 +487,7 @@ func (a *csAttempt) newStream() error { // in a form passable to AppendToOutgoingContext(), or create a version // of AppendToOutgoingContext() that accepts a metadata.MD. md, _ := metadata.FromOutgoingContext(a.ctx) - md = metadata.Join(md, a.pickResult.Metatada) + md = metadata.Join(md, a.pickResult.Metadata) a.ctx = metadata.NewOutgoingContext(a.ctx, md) } @@ -1265,14 +1273,19 @@ func newNonRetryClientStream(ctx context.Context, desc *StreamDesc, method strin as.p = &parser{r: s} ac.incrCallsStarted() if desc != unaryStreamDesc { - // Listen on cc and stream contexts to cleanup when the user closes the - // ClientConn or cancels the stream context. In all other cases, an error - // should already be injected into the recv buffer by the transport, which - // the client will eventually receive, and then we will cancel the stream's - // context in clientStream.finish. + // Listen on stream context to cleanup when the stream context is + // canceled. Also listen for the addrConn's context in case the + // addrConn is closed or reconnects to a different address. In all + // other cases, an error should already be injected into the recv + // buffer by the transport, which the client will eventually receive, + // and then we will cancel the stream's context in + // addrConnStream.finish. go func() { + ac.mu.Lock() + acCtx := ac.ctx + ac.mu.Unlock() select { - case <-ac.ctx.Done(): + case <-acCtx.Done(): as.finish(status.Error(codes.Canceled, "grpc: the SubConn is closing")) case <-ctx.Done(): as.finish(toRPCErr(ctx.Err())) diff --git a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/version.go b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/version.go index 3c6e3c9118d8..3cc754062185 100644 --- a/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/version.go +++ b/vertical-pod-autoscaler/e2e/vendor/google.golang.org/grpc/version.go @@ -19,4 +19,4 @@ package grpc // Version is the current grpc version. -const Version = "1.54.0" +const Version = "1.56.3" diff --git a/vertical-pod-autoscaler/e2e/vendor/modules.txt b/vertical-pod-autoscaler/e2e/vendor/modules.txt index 5d2d2c86d24f..b0fe14e000a7 100644 --- a/vertical-pod-autoscaler/e2e/vendor/modules.txt +++ b/vertical-pod-autoscaler/e2e/vendor/modules.txt @@ -1,4 +1,4 @@ -# cloud.google.com/go/compute v1.19.0 +# cloud.google.com/go/compute v1.19.1 ## explicit; go 1.19 cloud.google.com/go/compute/internal # cloud.google.com/go/compute/metadata v0.2.3 @@ -591,8 +591,8 @@ go.uber.org/zap/internal/color go.uber.org/zap/internal/exit go.uber.org/zap/zapcore go.uber.org/zap/zapgrpc -# golang.org/x/crypto v0.14.0 -## explicit; go 1.17 +# golang.org/x/crypto v0.19.0 +## explicit; go 1.18 golang.org/x/crypto/blowfish golang.org/x/crypto/chacha20 golang.org/x/crypto/cryptobyte @@ -613,8 +613,8 @@ golang.org/x/exp/slices # golang.org/x/mod v0.10.0 ## explicit; go 1.17 golang.org/x/mod/semver -# golang.org/x/net v0.17.0 -## explicit; go 1.17 +# golang.org/x/net v0.21.0 +## explicit; go 1.18 golang.org/x/net/bpf golang.org/x/net/context golang.org/x/net/html @@ -641,19 +641,19 @@ golang.org/x/oauth2/jwt # golang.org/x/sync v0.3.0 ## explicit; go 1.17 golang.org/x/sync/singleflight -# golang.org/x/sys v0.13.0 -## explicit; go 1.17 +# golang.org/x/sys v0.17.0 +## explicit; go 1.18 golang.org/x/sys/cpu golang.org/x/sys/execabs golang.org/x/sys/plan9 golang.org/x/sys/unix golang.org/x/sys/windows golang.org/x/sys/windows/registry -# golang.org/x/term v0.13.0 -## explicit; go 1.17 +# golang.org/x/term v0.17.0 +## explicit; go 1.18 golang.org/x/term -# golang.org/x/text v0.13.0 -## explicit; go 1.17 +# golang.org/x/text v0.14.0 +## explicit; go 1.18 golang.org/x/text/encoding golang.org/x/text/encoding/charmap golang.org/x/text/encoding/htmlindex @@ -750,7 +750,7 @@ google.golang.org/genproto/googleapis/api/httpbody google.golang.org/genproto/googleapis/rpc/code google.golang.org/genproto/googleapis/rpc/errdetails google.golang.org/genproto/googleapis/rpc/status -# google.golang.org/grpc v1.54.0 +# google.golang.org/grpc v1.56.3 ## explicit; go 1.17 google.golang.org/grpc google.golang.org/grpc/attributes