update CREDITS and enable builds for go1.19 (#2227)

This commit is contained in:
Harshavardhana
2022-08-05 08:07:38 -07:00
committed by GitHub
parent 84b8f9d6fa
commit ddd25a20eb
13 changed files with 1220 additions and 1672 deletions

View File

@@ -29,7 +29,7 @@ jobs:
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -98,7 +98,7 @@ jobs:
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -168,7 +168,7 @@ jobs:
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
steps: steps:
@@ -210,7 +210,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -234,7 +234,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -281,7 +281,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -341,7 +341,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -379,7 +379,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -458,7 +458,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -537,7 +537,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -618,7 +618,7 @@ jobs:
timeout-minutes: 5 timeout-minutes: 5
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -687,7 +687,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -756,7 +756,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -825,7 +825,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -894,7 +894,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -963,7 +963,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -1042,7 +1042,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -1116,7 +1116,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -1154,7 +1154,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -1192,7 +1192,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -1230,7 +1230,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -1268,7 +1268,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -1306,7 +1306,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -1344,7 +1344,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -1382,7 +1382,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -1428,7 +1428,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -1475,7 +1475,7 @@ jobs:
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}
@@ -1587,7 +1587,7 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go-version: [ 1.18.x ] go-version: [ 1.18.x, 1.19.x ]
os: [ ubuntu-latest ] os: [ ubuntu-latest ]
steps: steps:
- name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }} - name: Set up Go ${{ matrix.go-version }} on ${{ matrix.os }}

View File

@@ -5,6 +5,12 @@ linters-settings:
misspell: misspell:
locale: US locale: US
goheader:
values:
regexp:
copyright-holder: Copyright \(c\) (20\d\d\-20\d\d)|2021|({{year}})
template-path: .license.tmpl
linters: linters:
disable-all: true disable-all: true
enable: enable:
@@ -28,13 +34,6 @@ linters:
- tenv - tenv
- durationcheck - durationcheck
linters-settings:
goheader:
values:
regexp:
copyright-holder: Copyright \(c\) (20\d\d\-20\d\d)|2021|({{year}})
template-path: .license.tmpl
service: service:
golangci-lint-version: 1.43.0 # use the fixed version to not introduce new linters unexpectedly golangci-lint-version: 1.43.0 # use the fixed version to not introduce new linters unexpectedly
@@ -52,3 +51,4 @@ run:
skip-dirs: skip-dirs:
- pkg/clientgen - pkg/clientgen
- pkg/apis/networking.gke.io - pkg/apis/networking.gke.io
- restapi/operations

2750
CREDITS

File diff suppressed because it is too large Load Diff

View File

@@ -21,7 +21,7 @@ k8sdev:
getdeps: getdeps:
@mkdir -p ${GOPATH}/bin @mkdir -p ${GOPATH}/bin
@echo "Installing golangci-lint" && curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin v1.45.2 @echo "Installing golangci-lint" && curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(GOPATH)/bin
verifiers: getdeps fmt lint verifiers: getdeps fmt lint

View File

@@ -180,6 +180,7 @@ const (
// or data key provided as plaintext. // or data key provided as plaintext.
// //
// The returned ciphertext data consists of: // The returned ciphertext data consists of:
//
// AEAD ID | iv | nonce | encrypted data // AEAD ID | iv | nonce | encrypted data
// 1 16 12 ~ len(data) // 1 16 12 ~ len(data)
func encrypt(plaintext, associatedData []byte) ([]byte, error) { func encrypt(plaintext, associatedData []byte) ([]byte, error) {

View File

@@ -116,7 +116,7 @@ func Test_getSubPath(t *testing.T) {
} }
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
os.Setenv(SubPath, tt.args.envValue) t.Setenv(SubPath, tt.args.envValue)
defer os.Unsetenv(SubPath) defer os.Unsetenv(SubPath)
subPathOnce = sync.Once{} subPathOnce = sync.Once{}
assert.Equalf(t, tt.want, getSubPath(), "getSubPath()") assert.Equalf(t, tt.want, getSubPath(), "getSubPath()")

View File

@@ -288,6 +288,7 @@ type httpRange struct {
} }
// Example: // Example:
//
// "Content-Range": "bytes 100-200/1000" // "Content-Range": "bytes 100-200/1000"
// "Content-Range": "bytes 100-200/*" // "Content-Range": "bytes 100-200/*"
func getRange(start, end, total int64) string { func getRange(start, end, total int64) string {
@@ -300,6 +301,7 @@ func getRange(start, end, total int64) string {
} }
// Example: // Example:
//
// "Range": "bytes=100-200" // "Range": "bytes=100-200"
// "Range": "bytes=-50" // "Range": "bytes=-50"
// "Range": "bytes=150-" // "Range": "bytes=150-"
@@ -669,6 +671,7 @@ func deleteObjects(ctx context.Context, client MCClient, bucket string, path str
} }
// deleteMultipleObjects uses listing before removal, it can list recursively or not, // deleteMultipleObjects uses listing before removal, it can list recursively or not,
//
// Use cases: // Use cases:
// * Remove objects recursively // * Remove objects recursively
func deleteMultipleObjects(ctx context.Context, client MCClient, recursive bool, allVersions bool) error { func deleteMultipleObjects(ctx context.Context, client MCClient, recursive bool, allVersions bool) error {

View File

@@ -161,7 +161,7 @@ func createServiceAccountCreds(ctx context.Context, userClient MinioAdmin, polic
} }
// getCreateServiceAccountResponse creates a service account with the defined policy for the user that // getCreateServiceAccountResponse creates a service account with the defined policy for the user that
// is requestingit ,it first gets the credentials of the user and creates a client which is going to // is requesting, it first gets the credentials of the user and creates a client which is going to
// make the call to create the Service Account // make the call to create the Service Account
func getCreateServiceAccountResponse(session *models.Principal, params saApi.CreateServiceAccountParams) (*models.ServiceAccountCreds, *models.Error) { func getCreateServiceAccountResponse(session *models.Principal, params saApi.CreateServiceAccountParams) (*models.ServiceAccountCreds, *models.Error) {
ctx, cancel := context.WithCancel(params.HTTPRequest.Context()) ctx, cancel := context.WithCancel(params.HTTPRequest.Context())