Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nfs-subdir-external-provisioner
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Rancher商店
nfs-subdir-external-provisioner
Commits
d8c76fee
Commit
d8c76fee
authored
Apr 15, 2020
by
Grant Griffiths
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support local snapshot RBAC for pull jobs
Signed-off-by:
Grant Griffiths
<
grant@portworx.com
>
parent
152396e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
prow.sh
prow.sh
+16
-10
No files found.
prow.sh
View file @
d8c76fee
...
...
@@ -1064,18 +1064,24 @@ main () {
# always pulling the image
# (https://github.com/kubernetes-sigs/kind/issues/328).
docker tag
"
$i
:latest"
"
$i
:csiprow"
||
die
"tagging the locally built container image for
$i
failed"
done
if
[
-e
deploy/kubernetes/rbac.yaml
]
;
then
# This is one of those components which has its own RBAC rules (like external-provisioner).
# We are testing a locally built image and also want to test with the the current,
# potentially modified RBAC rules.
if
[
"
$(
echo
"
$cmds
"
|
wc
-w
)
"
!=
1
]
;
then
die
"ambiguous deploy/kubernetes/rbac.yaml: need exactly one command, got:
$cmds
"
# For components with multiple cmds, the RBAC file should be in the following format:
# rbac-$cmd.yaml
# If this file cannot be found, we can default to the standard location:
# deploy/kubernetes/rbac.yaml
rbac_file_path
=
$(
find
.
-type
f
-name
"rbac-
$i
.yaml"
)
if
[
"
$rbac_file_path
"
==
""
]
;
then
rbac_file_path
=
"
$(
pwd
)
/deploy/kubernetes/rbac.yaml"
fi
e
=
$(
echo
"
$cmds
"
|
tr
'[:lower:]'
'[:upper:]'
|
tr
- _
)
images
=
"
$images
${
e
}
_RBAC=
$(
pwd
)
/deploy/kubernetes/rbac.yaml"
fi
if
[
-e
"
$rbac_file_path
"
]
;
then
# This is one of those components which has its own RBAC rules (like external-provisioner).
# We are testing a locally built image and also want to test with the the current,
# potentially modified RBAC rules.
e
=
$(
echo
"
$i
"
|
tr
'[:lower:]'
'[:upper:]'
|
tr
- _
)
images
=
"
$images
${
e
}
_RBAC=
$rbac_file_path
"
fi
done
fi
if
tests_need_non_alpha_cluster
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment