Skip to content

Commit 7c9a0ea

Browse files
committed
Update current feature
1 parent fde0daa commit 7c9a0ea

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

TODO.org

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* TODO speak about https://docs.openshift.com/container-platform/4.14/applications/quotas/quotas-setting-across-multiple-projects.html
2+
* TODO rbac-analysis PR. show solution with rbac-analysis how to find clusterrolebinding, rbac-analysis does not display the namespace for "default" SA (make an issue??)
13
* TODO understand the subjec-review command
24
{openshift@k8s-toolbox:~}$ oc adm policy scc-subject-review -z system:serviceaccount:scc-openshift:fake-user -f ~/tmp/ubuntu-privileged.yaml
35
RESOURCE ALLOWED BY
@@ -9,9 +11,8 @@ Pod/ubuntu-privileged fake-user hostpath-provisioner
911
* TODO Improve docker management on fedora:
1012
https://unix.stackexchange.com/questions/203168/docker-says-no-space-left-on-device-but-system-has-plenty-of-space
1113
* TODO scc/pod-security synchro: https://docs.openshift.com/container-platform/4.14/authentication/understanding-and-managing-pod-security-admission.html
12-
* TODO scenario for etcd backup/restore
1314
* TODO how to get all kubernetes rbac verbs?
14-
* TODO show solution with rbac-analysis how to find clusterrolebinding, rbac-analysis does not display the namespace for "default" SA (make an issue??)
1515
* TODO https://docs.openshift.com/container-platform/4.14/applications/quotas/quotas-setting-across-multiple-projects.html
16-
* TODO https://passt.top/passt/about/
17-
* TODO devcontainers
16+
* TODO devcontainers
17+
* DONE https://passt.top/passt/about/
18+
* DONE scenario for etcd backup/restore

labs/2_authorization/2_RBAC_role.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ do
3737
done
3838
ink "Set the namespace preference to 'foo'"
3939
ink "so that all kubectl command are ran in ns 'foo' by default"
40-
kubectl config set-context $(kubectl config current-context) --namespace=foo
40+
kubectl config set-context --current --namespace=foo
4141

4242
ink "Create pod using image 'k8sschool/kubectl-proxy', and named 'shell' in ns 'foo'"
4343
kubectl run shell --image=k8sschool/kubectl-proxy:$KUBECTL_PROXY_VERSION

labs/3_policies/ex3-scc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ alias kubectl-user='kubectl --as=system:serviceaccount:$NS:$SA -n "$NS"'
5151

5252
# See https://kubernetes.io/docs/concepts/policy/pod-security-policy/#run-another-pod
5353
ink "Reset scc namespace $NS and remove related scc"
54-
kubectl config set-context $(kubectl config current-context) --namespace=$NS
54+
kubectl config set-context --current --namespace=$NS
5555
for policy in anyuid hostpath-provisioner
5656
do
5757
for sa in $SA default

0 commit comments

Comments
 (0)