fix(endpoint): use plural for kind (#403)

This commit is contained in:
Stavros Kois
2023-04-23 15:02:10 +03:00
committed by GitHub
parent be041bd0b1
commit 8739799b62
3 changed files with 4 additions and 4 deletions

View File

@@ -226,7 +226,7 @@ tests:
targetPort: 443
- documentIndex: &endpointDoc 1
isKind:
of: Endpoint
of: Endpoints
- documentIndex: *endpointDoc
isAPIVersion:
of: v1
@@ -286,7 +286,7 @@ tests:
targetPort: 12346
- documentIndex: &endpointDoc 1
isKind:
of: Endpoint
of: Endpoints
- documentIndex: *endpointDoc
isAPIVersion:
of: v1

View File

@@ -15,4 +15,4 @@ maintainers:
name: common
sources: null
type: library
version: 12.5.0
version: 12.5.1

View File

@@ -11,7 +11,7 @@ objectData: The service data, that will be used to render the Service object.
{{- $objectData := .objectData }}
---
apiVersion: v1
kind: Endpoint
kind: Endpoints
metadata:
name: {{ $objectData.name }}
{{- $labels := (mustMerge ($objectData.labels | default dict) (include "tc.v1.common.lib.metadata.allLabels" $rootCtx | fromYaml)) -}}