-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgetOprFwkTeamMeteringMgmtPerms.py
More file actions
executable file
·50 lines (46 loc) · 1.89 KB
/
getOprFwkTeamMeteringMgmtPerms.py
File metadata and controls
executable file
·50 lines (46 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
#!/usr/bin/env python
from requests.auth import HTTPBasicAuth
import requests
import os
GIT_USER = os.environ['GIT_USER']
GIT_TOKEN = os.environ['GIT_TOKEN']
opr_framework_repo_list = \
[
"operator-framework/operator-metering",
"operator-framework/operator-lifecycle-manager",
"operator-framework/helm-app-operator-kit",
"operator-framework/operator-sdk",
"operator-framework/operator-sdk-samples",
"operator-framework/awesome-operators",
"operator-framework/operator-manifests",
"operator-framework/getting-started",
"operator-framework/operator-marketplace",
"operator-framework/olm-broker",
"operator-framework/go-appr",
"operator-framework/helm",
"operator-framework/jmx_exporter",
"operator-framework/hive",
"operator-framework/hadoop",
"operator-framework/operator-registry",
"operator-framework/mock-extension-apiserver",
"operator-framework/grpc-health-probe",
"operator-framework/operator-courier",
"operator-framework/community-operators",
"operator-framework/operatorhub.io",
"operator-framework/presto",
"operator-framework/operatorhub-docs",
"operator-framework/ghostunnel",
"operator-framework/api",
"operator-framework/bigdata-interop",
"operator-framework/olm-book",
"operator-framework/community",
"operator-framework/enhancements",
"operator-framework/operator-sdk-ansible-util"
]
try:
team_check_manages_repo_uri = "https://api.github.com/orgs/operator-framework/teams/team-metering/repos/"
for org_repo in opr_framework_repo_list:
r = requests.get(team_check_manages_repo_uri + org_repo, auth=HTTPBasicAuth(GIT_USER, GIT_TOKEN))
print '%-50s %s' % (org_repo, r.status_code)
except requests.ConnectionError:
print("failed to connect")