Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Policy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSDU
OSDU Data Platform
Security and Compliance
Policy
Commits
d74c9b2e
Commit
d74c9b2e
authored
1 year ago
by
Shane Hutchins
Browse files
Options
Downloads
Patches
Plain Diff
Azure fix for M20 and M21
parent
bce0e1c6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!430
Azure fix for M20 and M21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/k8s.py
+4
-2
4 additions, 2 deletions
app/k8s.py
with
4 additions
and
2 deletions
app/k8s.py
+
4
−
2
View file @
d74c9b2e
...
...
@@ -33,10 +33,12 @@ def get_opa_config(namespace="osdu-services", name="opa-config", config_only=Tru
try
:
api_response
=
v1
.
read_namespaced_config_map
(
namespace
=
namespace
,
name
=
name
,
pretty
=
pretty
)
if
config_only
:
if
"
config
"
in
api_response
.
data
:
return
api_response
.
data
[
"
config
"
]
if
"
opa-
config
.yaml
"
in
api_response
.
data
:
return
api_response
.
data
[
"
opa-
config
.yaml
"
]
elif
"
config.yaml
"
in
api_response
.
data
:
return
api_response
.
data
[
"
config.yaml
"
]
elif
"
config
"
in
api_response
.
data
:
return
api_response
.
data
[
"
config
"
]
else
:
logger
.
error
(
f
"
Exception
{
api_response
.
data
}
"
)
return
None
...
...
This diff is collapsed.
Click to expand it.
Shane Hutchins
@hutchins
mentioned in commit
f6867114
·
1 year ago
mentioned in commit
f6867114
mentioned in commit f68671145fcc9928507ec7777499f0d0485a2445
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment