mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-09-18 05:17:40 +00:00
Merge pull request #4327 from mengqiy/fixanno
use internal.config.kubernetes.io prefix instead of internal.config.k8s.io
This commit is contained in:
@@ -65,7 +65,7 @@ kind: Bar
|
||||
xxx:
|
||||
metadata:
|
||||
annotations:
|
||||
internal.config.k8s.io/annotations-migration-resource-id: '0'
|
||||
internal.config.kubernetes.io/annotations-migration-resource-id: '0'
|
||||
: cannot set or create an empty field name`,
|
||||
filter: fieldspec.Filter{
|
||||
SetValue: filtersutil.SetScalar("e"),
|
||||
@@ -225,7 +225,7 @@ a:
|
||||
b: a
|
||||
metadata:
|
||||
annotations:
|
||||
internal.config.k8s.io/annotations-migration-resource-id: '0'
|
||||
internal.config.kubernetes.io/annotations-migration-resource-id: '0'
|
||||
: expected sequence or mapping node`,
|
||||
filter: fieldspec.Filter{
|
||||
SetValue: filtersutil.SetScalar("e"),
|
||||
|
||||
@@ -251,7 +251,7 @@ metadata:
|
||||
annotations:
|
||||
config.kubernetes.io/index: '0'
|
||||
internal.config.kubernetes.io/index: '0'
|
||||
internal.config.k8s.io/annotations-migration-resource-id: '0'
|
||||
internal.config.kubernetes.io/annotations-migration-resource-id: '0'
|
||||
data:
|
||||
slice:
|
||||
- false
|
||||
@@ -279,7 +279,7 @@ metadata:
|
||||
annotations:
|
||||
config.kubernetes.io/index: '0'
|
||||
internal.config.kubernetes.io/index: '0'
|
||||
internal.config.k8s.io/annotations-migration-resource-id: '0'
|
||||
internal.config.kubernetes.io/annotations-migration-resource-id: '0'
|
||||
data:
|
||||
1: str
|
||||
: invalid map key: value='1', tag='` + yaml.NodeTagInt + `'`,
|
||||
|
||||
@@ -294,7 +294,7 @@ kind: Deployment
|
||||
metadata:
|
||||
name: foo
|
||||
annotations:
|
||||
internal.config.k8s.io/annotations-migration-resource-id: '1'
|
||||
internal.config.kubernetes.io/annotations-migration-resource-id: '1'
|
||||
`,
|
||||
}
|
||||
},
|
||||
|
||||
@@ -45,7 +45,7 @@ const (
|
||||
// InternalAnnotationsMigrationResourceIDAnnotation is used to uniquely identify
|
||||
// resources during round trip to and from a function execution. We will use it
|
||||
// to track the internal annotations and reconcile them if needed.
|
||||
InternalAnnotationsMigrationResourceIDAnnotation = "internal.config.k8s.io/annotations-migration-resource-id"
|
||||
InternalAnnotationsMigrationResourceIDAnnotation = internalPrefix + "annotations-migration-resource-id"
|
||||
)
|
||||
|
||||
func GetFileAnnotations(rn *yaml.RNode) (string, string, error) {
|
||||
|
||||
Reference in New Issue
Block a user