Add default value for property in x-kubernetes-list-map-keys

This PS fixes the CRD spec validation errors seen in k8s 1.18.6,
the errors were not seen in the previous k8s version.

Change-Id: Iec1381eca2a21268d40827dbce105899b8d129b3
This commit is contained in:
Luna Das 2020-09-15 22:22:32 +05:30 committed by Nishant Kumar
parent b3cea56e55
commit 739ad9efe2
2 changed files with 2 additions and 3 deletions

View File

@ -15,6 +15,6 @@ apiVersion: v1
appVersion: v1.0.0
description: A Helm chart for DaemonjobController
name: daemonjob-controller
version: 0.1.1
version: 0.1.2
home: https://opendev.org/openstack
...

View File

@ -17,7 +17,6 @@ limitations under the License.
{{ $groupVersion := .Values.crds.group_version }}
{{ $groupVersionFormat := printf "%s/%s" $groupName $groupVersion }}
{{ $crdName := printf "%s.%s" "daemonjobs" $groupName }}
{{- if not (.Capabilities.APIVersions.Has $groupVersionFormat) }}
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
@ -1204,6 +1203,7 @@ spec:
description: Protocol for port. Must be UDP, TCP,
or SCTP. Defaults to "TCP".
type: string
default: "TCP"
required:
- containerPort
type: object
@ -4122,4 +4122,3 @@ status:
conditions: []
storedVersions: []
{{- end }}
{{- end }}