Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions files/scripts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ You need to login to our OpenShift cluster and list all pods. Use the `allowlist
List all requests pending approval:

```
$ oc exec packit-worker-short-running-0 allowlist.py waiting
$ oc exec packit-worker-short-running-0 -- allowlist.py waiting
```

Use `oc exec -it ...` instead if you also want to approve a namespace from the waiting list and specify the number of namespace to approve.
Expand All @@ -17,7 +17,7 @@ Use `oc exec -it ...` instead if you also want to approve a namespace from the w
In order to add to the allowlist manually:

```
$ oc exec -it packit-worker-short-running-0 allowlist.py approve <path_to_namespace>
$ oc exec -it packit-worker-short-running-0 -- allowlist.py approve <path_to_namespace>
```

The `<path_to_namespace>` string should follow the same format which is used in the list of waiting requests, i.e. the domain should be included.
Expand All @@ -30,23 +30,23 @@ After approving, close the corresponding issue at [packit-service/notifications]
List all denied namespaces:

```
$ oc exec packit-worker-short-running-0 allowlist.py denied
$ oc exec packit-worker-short-running-0 -- allowlist.py denied
```

## Denying

Denying a user:

```
$ oc exec -it packit-worker-short-running-0 allowlist.py deny <path_to_namespace>
$ oc exec -it packit-worker-short-running-0 -- allowlist.py deny <path_to_namespace>
```

## Removal

Removing a user or from the allowlist:

```
$ oc exec -it packit-worker-short-running-0 allowlist.py remove <path_to_namespace>
$ oc exec -it packit-worker-short-running-0 -- allowlist.py remove <path_to_namespace>
```

# Cleaning up the database
Expand All @@ -57,12 +57,12 @@ project in order to be able to run the script.
Then run

```
$ oc exec packit-worker-long-running-0 db-cleanup.py
$ oc exec packit-worker-long-running-0 -- db-cleanup.py
```

which removes all data older than a year from the database. It's possible to
remove even more, by specifying the maximum age of the data:

```
$ oc exec packit-worker-long-running-0 db-cleanup.py '6 months'
$ oc exec packit-worker-long-running-0 -- db-cleanup.py '6 months'
```
Loading