-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update kubernetes schemas to latest (#9)
- Loading branch information
1 parent
1325c52
commit 4f197ef
Showing
25 changed files
with
8,941 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
FROM python:3.9.7-alpine3.14 | ||
RUN apk --no-cache add bats | ||
COPY requirements.txt /code/ | ||
RUN pip install -r /code/requirements.txt | ||
COPY openapi2jsonschema.py /code/ | ||
WORKDIR /code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,266 @@ | ||
{ | ||
"properties": { | ||
"spec": { | ||
"description": "Configuration for access control on workloads. See more details at: https://istio.io/docs/reference/config/security/authorization-policy.html", | ||
"oneOf": [ | ||
{ | ||
"not": { | ||
"anyOf": [ | ||
{ | ||
"required": [ | ||
"provider" | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"required": [ | ||
"provider" | ||
] | ||
} | ||
], | ||
"properties": { | ||
"action": { | ||
"description": "Optional.", | ||
"enum": [ | ||
"ALLOW", | ||
"DENY", | ||
"AUDIT", | ||
"CUSTOM" | ||
], | ||
"type": "string" | ||
}, | ||
"provider": { | ||
"description": "Specifies detailed configuration of the CUSTOM action.", | ||
"properties": { | ||
"name": { | ||
"description": "Specifies the name of the extension provider.", | ||
"type": "string" | ||
} | ||
}, | ||
"type": "object", | ||
"additionalProperties": false | ||
}, | ||
"rules": { | ||
"description": "Optional.", | ||
"items": { | ||
"properties": { | ||
"from": { | ||
"description": "Optional.", | ||
"items": { | ||
"properties": { | ||
"source": { | ||
"description": "Source specifies the source of a request.", | ||
"properties": { | ||
"ipBlocks": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"namespaces": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"notIpBlocks": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"notNamespaces": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"notPrincipals": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"notRemoteIpBlocks": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"notRequestPrincipals": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"principals": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"remoteIpBlocks": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"requestPrincipals": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
} | ||
}, | ||
"type": "object", | ||
"additionalProperties": false | ||
} | ||
}, | ||
"type": "object", | ||
"additionalProperties": false | ||
}, | ||
"type": "array" | ||
}, | ||
"to": { | ||
"description": "Optional.", | ||
"items": { | ||
"properties": { | ||
"operation": { | ||
"description": "Operation specifies the operation of a request.", | ||
"properties": { | ||
"hosts": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"methods": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"notHosts": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"notMethods": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"notPaths": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"notPorts": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"paths": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"ports": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
} | ||
}, | ||
"type": "object", | ||
"additionalProperties": false | ||
} | ||
}, | ||
"type": "object", | ||
"additionalProperties": false | ||
}, | ||
"type": "array" | ||
}, | ||
"when": { | ||
"description": "Optional.", | ||
"items": { | ||
"properties": { | ||
"key": { | ||
"description": "The name of an Istio attribute.", | ||
"type": "string" | ||
}, | ||
"notValues": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
}, | ||
"values": { | ||
"description": "Optional.", | ||
"items": { | ||
"type": "string" | ||
}, | ||
"type": "array" | ||
} | ||
}, | ||
"type": "object", | ||
"additionalProperties": false | ||
}, | ||
"type": "array" | ||
} | ||
}, | ||
"type": "object", | ||
"additionalProperties": false | ||
}, | ||
"type": "array" | ||
}, | ||
"selector": { | ||
"description": "Optional.", | ||
"properties": { | ||
"matchLabels": { | ||
"additionalProperties": { | ||
"type": "string" | ||
}, | ||
"type": "object" | ||
} | ||
}, | ||
"type": "object", | ||
"additionalProperties": false | ||
} | ||
}, | ||
"type": "object", | ||
"additionalProperties": false | ||
}, | ||
"status": { | ||
"type": "object", | ||
"x-kubernetes-preserve-unknown-fields": true | ||
} | ||
}, | ||
"type": "object" | ||
} |
Oops, something went wrong.