meshctl experimental validate resource

Validate Gloo custom resources.

Synopsis

Validate the configuration of one or more Gloo custom resources before you apply the CRs to your environment. To see the constraints and rules for each field, check the API reference docs for each custom resource and look for the Implementation notes and Configuration constraints. You can also run kubectl explain <CR> to see the rules for each field, such as kubectl explain RouteTable.spec.http.

  meshctl experimental validate resource [flags]
  

Examples

  
# Validate RetryTimeoutPolicy from a file:

	meshctl x validate resource -f resource.yaml

# Validate multiple RetryTimeoutPolicy resources from STDIN:

		meshctl x validate resource -f - <<EOF
apiVersion: resilience.policy.gloo.solo.io/v2
kind: RetryTimeoutPolicy
metadata:
  name: test1
  namespace: default
spec:
  applyToRoutes:
    - route:
        labels:
          app: test
  config:
    retries:
      attempts: 1
---
apiVersion: resilience.policy.gloo.solo.io/v2
kind: RetryTimeoutPolicy
metadata:
  name: test2
  namespace: default
spec:
  applyToRoutes:
    - route:
        labels:
          app: test
  config:
    retries:
      attempts: -1
EOF
  

Options

    -f, --file string   YAML file containing the resources, use '-' to read from stdin
  -h, --help          help for resource
  

Options inherited from parent commands

        --kubeconfig string    Path to the kubeconfig file for the cluster.
      --kubecontext string   Kubernetes context for the cluster to run the command in.
  -n, --namespace string     Namespace to run the command in. (default "gloo-mesh")
      --plain                Disable styling for terminal output.
  -v, --verbose              Enable verbose logging.
  

SEE ALSO