mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-13 01:50:55 +00:00
Replace pkger with embed.FS compatibility
This commit is contained in:
11
kyaml/fn/framework/parser/testdata/cm1.template.yaml
vendored
Normal file
11
kyaml/fn/framework/parser/testdata/cm1.template.yaml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Copyright 2021 The Kubernetes Authors.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: appconfig
|
||||
labels:
|
||||
app: {{ .Name }}
|
||||
data:
|
||||
app: {{ .Name }}
|
||||
11
kyaml/fn/framework/parser/testdata/cm2.template.yaml
vendored
Normal file
11
kyaml/fn/framework/parser/testdata/cm2.template.yaml
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
# Copyright 2021 The Kubernetes Authors.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: env
|
||||
labels:
|
||||
app: {{ .Name }}
|
||||
data:
|
||||
env: production
|
||||
4
kyaml/fn/framework/parser/testdata/ignore.yaml
vendored
Normal file
4
kyaml/fn/framework/parser/testdata/ignore.yaml
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
# Copyright 2021 The Kubernetes Authors.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
not: a_resource
|
||||
58
kyaml/fn/framework/parser/testdata/schema1.json
vendored
Normal file
58
kyaml/fn/framework/parser/testdata/schema1.json
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"definitions": {
|
||||
"com.example.v1.Foo": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"apiVersion": {
|
||||
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
||||
"type": "string"
|
||||
},
|
||||
"metadata": {
|
||||
"description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
|
||||
},
|
||||
"spec": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"targets"
|
||||
],
|
||||
"properties": {
|
||||
"targets": {
|
||||
"type": "array",
|
||||
"x-kubernetes-patch-merge-key": "app",
|
||||
"x-kubernetes-patch-strategy": "merge",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"app"
|
||||
],
|
||||
"properties": {
|
||||
"app": {
|
||||
"type": "string"
|
||||
},
|
||||
"size": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-kubernetes-group-version-kind": [
|
||||
{
|
||||
"group": "example.com",
|
||||
"kind": "Foo",
|
||||
"version": "v1"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
58
kyaml/fn/framework/parser/testdata/schema2.json
vendored
Normal file
58
kyaml/fn/framework/parser/testdata/schema2.json
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"definitions": {
|
||||
"com.example.v1.Bar": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"apiVersion": {
|
||||
"description": "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources",
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"description": "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds",
|
||||
"type": "string"
|
||||
},
|
||||
"metadata": {
|
||||
"description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata",
|
||||
"$ref": "#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta"
|
||||
},
|
||||
"spec": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"targets"
|
||||
],
|
||||
"properties": {
|
||||
"targets": {
|
||||
"type": "array",
|
||||
"x-kubernetes-patch-merge-key": "app",
|
||||
"x-kubernetes-patch-strategy": "merge",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"app"
|
||||
],
|
||||
"properties": {
|
||||
"app": {
|
||||
"type": "string"
|
||||
},
|
||||
"size": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"x-kubernetes-group-version-kind": [
|
||||
{
|
||||
"group": "example.com",
|
||||
"kind": "Bar",
|
||||
"version": "v1"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user