Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown format "int32" ignored in schema at path #257

Open
phspies opened this issue Sep 1, 2024 · 0 comments
Open

Unknown format "int32" ignored in schema at path #257

phspies opened this issue Sep 1, 2024 · 0 comments

Comments

@phspies
Copy link

phspies commented Sep 1, 2024

Trying to use this module to validate some Kubernetes YAML files against the K8's Spec file and it seems to think int32, int64, etc is not valid. Seems the K8's spec file uses a lot of these "unknown" formats, so is this module out of date or is the K8's spec file wrong?

unknown format "int32" ignored in schema at path "#/properties/spec/properties/ephemeralContainers/items/properties/ports/items/properties/hostPort"
unknown format "int32" ignored in schema at path "#/properties/spec/properties/ephemeralContainers/items/properties/readinessProbe/properties/failureThreshold"
unknown format "int32" ignored in schema at path "#/properties/spec/properties/ephemeralContainers/items/properties/readinessProbe/properties/grpc/properties/port"
unknown format "int-or-string" ignored in schema at path "#/properties/spec/properties/ephemeralContainers/items/properties/readinessProbe/properties/httpGet/properties/port"
unknown format "int32" ignored in schema at path "#/properties/spec/properties/ephemeralContainers/items/properties/readinessProbe/properties/initialDelaySeconds"
unknown format "int32" ignored in schema at path "#/properties/spec/properties/ephemeralContainers/items/properties/readinessProbe/properties/periodSeconds"
unknown format "int32" ignored in schema at path "#/properties/spec/properties/ephemeralContainers/items/properties/readinessProbe/properties/successThreshold"
unknown format "int-or-string" ignored in schema at path "#/properties/spec/properties/ephemeralContainers/items/properties/readinessProbe/properties/tcpSocket/properties/port"
unknown format "int64" ignored in schema at path "#/properties/spec/properties/ephemeralContainers/items/properties/readinessProbe/properties/terminationGracePeriodSeconds"
unknown format "int32" ignored in schema at path "#/properties/spec/properties/ephemeralContainers/items/properties/readinessProbe/properties/timeoutSeconds"
unknown format "int64" ignored in schema at path "#/properties/spec/properties/ephemeralContainers/items/properties/securityContext/properties/runAsGroup"
unknown format "int64" ignored in schema at path "#/properties/spec/properties/ephemeralContainers/items/properties/securityContext/properties/runAsUser"
unknown format "int32" ignored in schema at path "#/properties/spec/properties/ephemeralContainers/items/properties/startupProbe/properties/failureThreshold"
unknown format "int32" ignored in schema at path "#/properties/spec/properties/ephemeralContainers/items/properties/startupProbe/properties/grpc/properties/port"
unknown format "int-or-string" ignored in schema at path "#/properties/spec/properties/ephemeralContainers/items/properties/startupProbe/properties/httpGet/properties/port"
unknown format "int32" ignored in schema at path "#/properties/spec/properties/ephemeralContainers/items/properties/startupProbe/properties/initialDelaySeconds"

So the K8's configuration file has this spec in it that is flagged by this module:
"properties": { "containerPort": { "description": "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.", "format": "int32", "type": "integer"

From the Swagger spec it seems these value are correct: https://swagger.io/specification/v2/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant