Skip to content

Commit

Permalink
feat(tools/policy-gen/templates/schema): add creationTime and modific…
Browse files Browse the repository at this point in the history
…ationTime to policy specs

Signed-off-by: schogges <[email protected]>
  • Loading branch information
schogges committed Nov 11, 2024
1 parent a24b5b3 commit 5d3f1b6
Show file tree
Hide file tree
Showing 22 changed files with 328 additions and 0 deletions.
160 changes: 160 additions & 0 deletions docs/generated/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3278,6 +3278,14 @@ components:
type: object
type: array
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
MeshAccessLogCreateOrUpdateSuccessResponse:
type: object
properties:
Expand Down Expand Up @@ -4487,6 +4495,14 @@ components:
type: object
type: array
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
MeshCircuitBreakerCreateOrUpdateSuccessResponse:
type: object
properties:
Expand Down Expand Up @@ -4990,6 +5006,14 @@ components:
type: object
type: array
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
MeshFaultInjectionCreateOrUpdateSuccessResponse:
type: object
properties:
Expand Down Expand Up @@ -5467,6 +5491,14 @@ components:
type: object
type: array
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
MeshHealthCheckCreateOrUpdateSuccessResponse:
type: object
properties:
Expand Down Expand Up @@ -6261,6 +6293,14 @@ components:
type: object
type: array
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
MeshHTTPRouteCreateOrUpdateSuccessResponse:
type: object
properties:
Expand Down Expand Up @@ -7012,6 +7052,14 @@ components:
type: object
type: array
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
MeshLoadBalancingStrategyCreateOrUpdateSuccessResponse:
type: object
properties:
Expand Down Expand Up @@ -7334,6 +7382,14 @@ components:
type: object
type: object
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
MeshMetricCreateOrUpdateSuccessResponse:
type: object
properties:
Expand Down Expand Up @@ -7508,6 +7564,14 @@ components:
type: object
type: object
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
MeshPassthroughCreateOrUpdateSuccessResponse:
type: object
properties:
Expand Down Expand Up @@ -8215,6 +8279,14 @@ components:
required:
- default
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
MeshProxyPatchCreateOrUpdateSuccessResponse:
type: object
properties:
Expand Down Expand Up @@ -8792,6 +8864,14 @@ components:
type: object
type: array
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
MeshRateLimitCreateOrUpdateSuccessResponse:
type: object
properties:
Expand Down Expand Up @@ -9428,6 +9508,14 @@ components:
type: object
type: array
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
MeshRetryCreateOrUpdateSuccessResponse:
type: object
properties:
Expand Down Expand Up @@ -9758,6 +9846,14 @@ components:
minItems: 1
type: array
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
MeshTCPRouteCreateOrUpdateSuccessResponse:
type: object
properties:
Expand Down Expand Up @@ -10227,6 +10323,14 @@ components:
type: object
type: array
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
MeshTimeoutCreateOrUpdateSuccessResponse:
type: object
properties:
Expand Down Expand Up @@ -10497,6 +10601,14 @@ components:
type: object
type: object
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
MeshTLSCreateOrUpdateSuccessResponse:
type: object
properties:
Expand Down Expand Up @@ -10837,6 +10949,14 @@ components:
type: object
type: object
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
MeshTraceCreateOrUpdateSuccessResponse:
type: object
properties:
Expand Down Expand Up @@ -11068,6 +11188,14 @@ components:
type: object
type: object
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
MeshTrafficPermissionCreateOrUpdateSuccessResponse:
type: object
properties:
Expand Down Expand Up @@ -11131,6 +11259,14 @@ components:
template:
type: string
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
HostnameGeneratorCreateOrUpdateSuccessResponse:
type: object
properties:
Expand Down Expand Up @@ -11375,6 +11511,14 @@ components:
required:
- match
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
status:
description: >-
Status is the current status of the Kuma MeshExternalService
Expand Down Expand Up @@ -11558,6 +11702,14 @@ components:
required:
- selector
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
status:
description: >-
Status is the current status of the Kuma MeshMultiZoneService
Expand Down Expand Up @@ -11787,6 +11939,14 @@ components:
- Unavailable
type: string
type: object
modificationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
creationTime:
type: string
format: date-time
example: '0001-01-01T00:00:00Z'
status:
description: Status is the current status of the Kuma MeshService resource.
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,11 @@ properties:
template:
type: string
type: object
modificationTime:
type: string
format: date-time
example: "0001-01-01T00:00:00Z"
creationTime:
type: string
format: date-time
example: "0001-01-01T00:00:00Z"
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,14 @@ properties:
required:
- match
type: object
modificationTime:
type: string
format: date-time
example: "0001-01-01T00:00:00Z"
creationTime:
type: string
format: date-time
example: "0001-01-01T00:00:00Z"
status:
description: Status is the current status of the Kuma MeshExternalService resource.
properties:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ properties:
required:
- selector
type: object
modificationTime:
type: string
format: date-time
example: "0001-01-01T00:00:00Z"
creationTime:
type: string
format: date-time
example: "0001-01-01T00:00:00Z"
status:
description: Status is the current status of the Kuma MeshMultiZoneService resource.
properties:
Expand Down
8 changes: 8 additions & 0 deletions pkg/core/resources/apis/meshservice/api/v1alpha1/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ properties:
- Unavailable
type: string
type: object
modificationTime:
type: string
format: date-time
example: "0001-01-01T00:00:00Z"
creationTime:
type: string
format: date-time
example: "0001-01-01T00:00:00Z"
status:
description: Status is the current status of the Kuma MeshService resource.
properties:
Expand Down
8 changes: 8 additions & 0 deletions pkg/plugins/policies/meshaccesslog/api/v1alpha1/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -514,3 +514,11 @@ properties:
type: object
type: array
type: object
modificationTime:
type: string
format: date-time
example: "0001-01-01T00:00:00Z"
creationTime:
type: string
format: date-time
example: "0001-01-01T00:00:00Z"
Original file line number Diff line number Diff line change
Expand Up @@ -698,3 +698,11 @@ properties:
type: object
type: array
type: object
modificationTime:
type: string
format: date-time
example: "0001-01-01T00:00:00Z"
creationTime:
type: string
format: date-time
example: "0001-01-01T00:00:00Z"
Original file line number Diff line number Diff line change
Expand Up @@ -372,3 +372,11 @@ properties:
type: object
type: array
type: object
modificationTime:
type: string
format: date-time
example: "0001-01-01T00:00:00Z"
creationTime:
type: string
format: date-time
example: "0001-01-01T00:00:00Z"
Loading

0 comments on commit 5d3f1b6

Please sign in to comment.