Skip to content

Commit 6966183

Browse files
Update deps and fix build issues (#2745)
1 parent 60d70e3 commit 6966183

File tree

7 files changed

+199
-225
lines changed

7 files changed

+199
-225
lines changed

.github/workflows/jobs.yaml

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: [ ubuntu-latest ]
2323
strategy:
2424
matrix:
25-
go-version: [ 1.19.x ]
25+
go-version: [ 1.20.x ]
2626
os: [ ubuntu-latest ]
2727
steps:
2828
- name: Check out code
@@ -47,7 +47,7 @@ jobs:
4747
runs-on: ubuntu-latest
4848
strategy:
4949
matrix:
50-
go-version: [ 1.19 ]
50+
go-version: [ 1.20.x ]
5151
steps:
5252
- name: Check out code
5353
uses: actions/checkout@v3
@@ -86,7 +86,7 @@ jobs:
8686
runs-on: ubuntu-latest
8787
strategy:
8888
matrix:
89-
go-version: [ 1.19.x ]
89+
go-version: [ 1.20.x ]
9090
os: [ ubuntu-latest ]
9191
steps:
9292
- name: Check out code
@@ -126,7 +126,7 @@ jobs:
126126
runs-on: ubuntu-latest
127127
strategy:
128128
matrix:
129-
go-version: [ 1.19.x ]
129+
go-version: [ 1.20.x ]
130130
os: [ ubuntu-latest ]
131131
steps:
132132
- name: Check out code
@@ -149,7 +149,7 @@ jobs:
149149
runs-on: [ ubuntu-latest ]
150150
strategy:
151151
matrix:
152-
go-version: [ 1.19.x ]
152+
go-version: [ 1.20.x ]
153153
steps:
154154
# To build minio image, we need to clone the repository first
155155
- name: Clone github.com/minio/minio
@@ -184,7 +184,7 @@ jobs:
184184
runs-on: ${{ matrix.os }}
185185
strategy:
186186
matrix:
187-
go-version: [ 1.19.x ]
187+
go-version: [ 1.20.x ]
188188
os: [ ubuntu-latest ]
189189
steps:
190190
- name: Check out code
@@ -225,7 +225,7 @@ jobs:
225225
runs-on: ubuntu-latest
226226
strategy:
227227
matrix:
228-
go-version: [ 1.19.x ]
228+
go-version: [ 1.20.x ]
229229
os: [ ubuntu-latest ]
230230
steps:
231231
- name: Check out code
@@ -249,7 +249,7 @@ jobs:
249249
timeout-minutes: 10
250250
strategy:
251251
matrix:
252-
go-version: [ 1.19.x ]
252+
go-version: [ 1.20.x ]
253253
os: [ ubuntu-latest ]
254254
steps:
255255
- name: Check out code
@@ -296,7 +296,7 @@ jobs:
296296
timeout-minutes: 10
297297
strategy:
298298
matrix:
299-
go-version: [ 1.19.x ]
299+
go-version: [ 1.20.x ]
300300
os: [ ubuntu-latest ]
301301
steps:
302302
- name: Check out code
@@ -342,7 +342,7 @@ jobs:
342342
timeout-minutes: 10
343343
strategy:
344344
matrix:
345-
go-version: [ 1.19.x ]
345+
go-version: [ 1.20.x ]
346346
os: [ ubuntu-latest ]
347347
steps:
348348
- name: Check out code
@@ -389,7 +389,7 @@ jobs:
389389
timeout-minutes: 15
390390
strategy:
391391
matrix:
392-
go-version: [ 1.19.x ]
392+
go-version: [ 1.20.x ]
393393
os: [ ubuntu-latest ]
394394
steps:
395395
- name: Check out code
@@ -429,7 +429,7 @@ jobs:
429429
runs-on: [ ubuntu-latest ]
430430
strategy:
431431
matrix:
432-
go-version: [ 1.19.x ]
432+
go-version: [ 1.20.x ]
433433
os: [ ubuntu-latest ]
434434
steps:
435435
- name: Check out code
@@ -469,7 +469,7 @@ jobs:
469469
runs-on: [ ubuntu-latest ]
470470
strategy:
471471
matrix:
472-
go-version: [ 1.19.x ]
472+
go-version: [ 1.20.x ]
473473
os: [ ubuntu-latest ]
474474
steps:
475475
- name: Check out code
@@ -509,7 +509,7 @@ jobs:
509509
runs-on: [ ubuntu-latest ]
510510
strategy:
511511
matrix:
512-
go-version: [ 1.19.x ]
512+
go-version: [ 1.20.x ]
513513
os: [ ubuntu-latest ]
514514
steps:
515515
- name: Check out code
@@ -549,7 +549,7 @@ jobs:
549549
runs-on: [ ubuntu-latest ]
550550
strategy:
551551
matrix:
552-
go-version: [ 1.19.x ]
552+
go-version: [ 1.20.x ]
553553
os: [ ubuntu-latest ]
554554
steps:
555555
- name: Check out code
@@ -589,7 +589,7 @@ jobs:
589589
runs-on: [ ubuntu-latest ]
590590
strategy:
591591
matrix:
592-
go-version: [ 1.19.x ]
592+
go-version: [ 1.20.x ]
593593
os: [ ubuntu-latest ]
594594
steps:
595595
- name: Check out code
@@ -634,7 +634,7 @@ jobs:
634634
runs-on: [ ubuntu-latest ]
635635
strategy:
636636
matrix:
637-
go-version: [ 1.19.x ]
637+
go-version: [ 1.20.x ]
638638
os: [ ubuntu-latest ]
639639
steps:
640640
- name: Check out code
@@ -679,7 +679,7 @@ jobs:
679679
runs-on: [ ubuntu-latest ]
680680
strategy:
681681
matrix:
682-
go-version: [ 1.19.x ]
682+
go-version: [ 1.20.x ]
683683
os: [ ubuntu-latest ]
684684
steps:
685685
- name: Check out code
@@ -727,7 +727,7 @@ jobs:
727727
runs-on: ${{ matrix.os }}
728728
strategy:
729729
matrix:
730-
go-version: [ 1.19.x ]
730+
go-version: [ 1.20.x ]
731731
os: [ ubuntu-latest ]
732732
steps:
733733
- name: Check out code
@@ -758,7 +758,7 @@ jobs:
758758
runs-on: ${{ matrix.os }}
759759
strategy:
760760
matrix:
761-
go-version: [ 1.19.x ]
761+
go-version: [ 1.20.x ]
762762
os: [ ubuntu-latest ]
763763
steps:
764764
- name: Check out code
@@ -788,7 +788,7 @@ jobs:
788788
runs-on: ${{ matrix.os }}
789789
strategy:
790790
matrix:
791-
go-version: [ 1.19.x ]
791+
go-version: [ 1.20.x ]
792792
os: [ ubuntu-latest ]
793793
steps:
794794
- name: Check out code
@@ -819,7 +819,7 @@ jobs:
819819
runs-on: ${{ matrix.os }}
820820
strategy:
821821
matrix:
822-
go-version: [ 1.19.x ]
822+
go-version: [ 1.20.x ]
823823
os: [ ubuntu-latest ]
824824
steps:
825825
- name: Check out code
@@ -850,7 +850,7 @@ jobs:
850850
runs-on: ${{ matrix.os }}
851851
strategy:
852852
matrix:
853-
go-version: [ 1.19.x ]
853+
go-version: [ 1.20.x ]
854854
os: [ ubuntu-latest ]
855855
steps:
856856
- name: Check out code
@@ -881,7 +881,7 @@ jobs:
881881
runs-on: ${{ matrix.os }}
882882
strategy:
883883
matrix:
884-
go-version: [ 1.19.x ]
884+
go-version: [ 1.20.x ]
885885
os: [ ubuntu-latest ]
886886
steps:
887887
- name: Check out code
@@ -918,7 +918,7 @@ jobs:
918918
runs-on: ${{ matrix.os }}
919919
strategy:
920920
matrix:
921-
go-version: [ 1.19.x ]
921+
go-version: [ 1.20.x ]
922922
os: [ ubuntu-latest ]
923923
steps:
924924
- name: Check out code
@@ -958,7 +958,7 @@ jobs:
958958

959959
strategy:
960960
matrix:
961-
go-version: [ 1.19.x ]
961+
go-version: [ 1.20.x ]
962962

963963
steps:
964964
- name: Check out code
@@ -1048,7 +1048,7 @@ jobs:
10481048

10491049
strategy:
10501050
matrix:
1051-
go-version: [ 1.19.x ]
1051+
go-version: [ 1.20.x ]
10521052

10531053
steps:
10541054
- name: Check out code
@@ -1123,7 +1123,7 @@ jobs:
11231123

11241124
strategy:
11251125
matrix:
1126-
go-version: [ 1.19.x ]
1126+
go-version: [ 1.20.x ]
11271127

11281128
steps:
11291129
- name: Check out code
@@ -1194,7 +1194,7 @@ jobs:
11941194
runs-on: ${{ matrix.os }}
11951195
strategy:
11961196
matrix:
1197-
go-version: [ 1.19.x ]
1197+
go-version: [ 1.20.x ]
11981198
os: [ ubuntu-latest ]
11991199
steps:
12001200
- name: Check out code

DEVELOPMENT.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ $ cat > consoleAdmin.json << EOF
137137
]
138138
}
139139
EOF
140-
$ mc admin policy add myminio consoleAdmin consoleAdmin.json
141-
$ mc admin policy set myminio consoleAdmin user="uid=billy,dc=example,dc=org"
140+
$ mc admin policy create myminio consoleAdmin consoleAdmin.json
141+
$ mc admin policy attach myminio consoleAdmin --user="uid=billy,dc=example,dc=org"
142142
```
143143

144144
## Run MinIO

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ test-sso-integration:
173173
@(docker run --name minio-client --network my-net -dit --entrypoint=/bin/sh minio/mc)
174174
@(docker exec minio-client mc alias set myminio/ http://minio:9000 minio minio123)
175175
@echo "adding policy to Dillon Harper to be able to login:"
176-
@(cd sso-integration && docker cp allaccess.json minio-client:/ && docker exec minio-client mc admin policy add myminio "Dillon Harper" allaccess.json)
176+
@(cd sso-integration && docker cp allaccess.json minio-client:/ && docker exec minio-client mc admin policy create myminio "Dillon Harper" allaccess.json)
177177
@echo "starting bash script"
178178
@(env bash $(PWD)/sso-integration/set-sso.sh)
179179
@echo "add python module"

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,13 +107,13 @@ EOF
107107
```
108108

109109
```sh
110-
mc admin policy add myminio/ consoleAdmin admin.json
110+
mc admin policy create myminio/ consoleAdmin admin.json
111111
```
112112

113113
### 3. Set the policy for the new `console` user
114114

115115
```sh
116-
mc admin policy set myminio consoleAdmin user=console
116+
mc admin policy attach myminio consoleAdmin --user=console
117117
```
118118

119119
> NOTE: Additionally, you can create policies to limit the privileges for other `console` users, for example, if you

0 commit comments

Comments
 (0)