Skip to content

Commit

Permalink
Merge pull request #1011 from cmi4/test
Browse files Browse the repository at this point in the history
Add annotations to template metadata
  • Loading branch information
pb82 committed Apr 24, 2023
2 parents 4e96dde + 7bbb8d6 commit aa0a84b
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/v1beta1/typeoverrides.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ type DeploymentV1PodTemplateSpec struct {
// Standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

// Specification of the desired behavior of the pod.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
Expand Down
9 changes: 9 additions & 0 deletions config/crd/bases/grafana.integreatly.org_grafanas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ spec:
template:
properties:
metadata:
properties:
annotations:
additionalProperties:
type: string
type: object
labels:
additionalProperties:
type: string
type: object
type: object
spec:
properties:
Expand Down
9 changes: 9 additions & 0 deletions config/grafana.integreatly.org_grafanas.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,15 @@ spec:
metadata:
description: 'Standard object''s metadata. More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata'
properties:
annotations:
additionalProperties:
type: string
type: object
labels:
additionalProperties:
type: string
type: object
type: object
spec:
description: 'Specification of the desired behavior of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,15 @@ spec:
template:
properties:
metadata:
properties:
annotations:
additionalProperties:
type: string
type: object
labels:
additionalProperties:
type: string
type: object
type: object
spec:
properties:
Expand Down
9 changes: 9 additions & 0 deletions deploy/kustomize/base/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,15 @@ spec:
metadata:
description: 'Standard object''s metadata. More info:
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata'
properties:
annotations:
additionalProperties:
type: string
type: object
labels:
additionalProperties:
type: string
type: object
type: object
spec:
description: 'Specification of the desired behavior of
Expand Down
36 changes: 35 additions & 1 deletion docs/docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1495,7 +1495,7 @@ Rolling update config params. Present only if DeploymentStrategyType = RollingUp
</tr>
</thead>
<tbody><tr>
<td><b>metadata</b></td>
<td><b><a href="grafanaspecdeploymentspectemplatemetadata">metadata</a></b></td>
<td>object</td>
<td>
Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata<br/>
Expand All @@ -1512,6 +1512,40 @@ Rolling update config params. Present only if DeploymentStrategyType = RollingUp
</table>


### Grafana.spec.deployment.spec.template.metadata
<sup><sup>[↩ Parent](grafanaspecdeploymentspectemplate)</sup></sup>



Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

<table>
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
<th>Required</th>
</tr>
</thead>
<tbody><tr>
<td><b>annotations</b></td>
<td>map[string]string</td>
<td>
<br/>
</td>
<td>false</td>
</tr><tr>
<td><b>labels</b></td>
<td>map[string]string</td>
<td>
<br/>
</td>
<td>false</td>
</tr></tbody>
</table>


### Grafana.spec.deployment.spec.template.spec
<sup><sup>[↩ Parent](grafanaspecdeploymentspectemplate)</sup></sup>

Expand Down

0 comments on commit aa0a84b

Please sign in to comment.