Improve frameworktestutil usability with complex error messages

This commit is contained in:
Katrina Verey
2021-05-31 10:57:41 -07:00
parent 76f8988865
commit f9afdc5c95
5 changed files with 70 additions and 12 deletions

View File

@@ -0,0 +1,5 @@
JavaSpringBoot had 4 errors:
\[\d\] replicas must be less than 10
\[\d\] name is required
\[\d\] image should not have latest tag
\[\d\] domain must be a subdomain of example.com

View File

@@ -0,0 +1,14 @@
# Copyright 2021 The Kubernetes Authors.
# SPDX-License-Identifier: Apache-2.0
kind: ResourceList
apiVersion: config.kubernetes.io/v1alpha1
functionConfig:
apiVersion: example.com/v1alpha1
kind: JavaSpringBoot
metadata:
name: ""
spec:
replicas: 1000
image: foo:latest
domain: bad