| 1 |
// Copyright 2019 The Kubernetes Authors. |
| 2 |
// SPDX-License-Identifier: Apache-2.0 |
| 3 |
|
| 4 |
package types |
| 5 |
|
| 6 |
// ObjectMeta partially copies apimachinery/pkg/apis/meta/v1.ObjectMeta |
| 7 |
// No need for a direct dependence; the fields are stable. |
| 8 |
type ObjectMeta struct { |
| 9 |
Name string `json:"name,omitempty" yaml:"name,omitempty"` |
| 10 |
Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"` |
| 11 |
Labels map[string]string `json:"labels,omitempty" yaml:"labels,omitempty"` |
| 12 |
Annotations map[string]string `json:"annotations,omitempty" yaml:"annotations,omitempty"` |
| 13 |
} |