Skip to content

Commit

Permalink
Clarify DeploymentAnnotations doc string and regen files
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Jan 25, 2024
1 parent a816b54 commit 60fbe24
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions crds/operators.coreos.com_subscriptions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -524,8 +524,8 @@ spec:
topologyKey:
description: This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.
type: string
deployment_annotations:
description: DeploymentAnnotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.
deploymentAnnotations:
description: DeploymentAnnotations is an unstructured key value map stored with each Deployment in the Operator. Typically, annotations may be set by external tools to store and retrieve arbitrary metadata. Use this field to pre-define annotations that OLM should add to each of the Subscription's deployments.
type: object
additionalProperties:
type: string
Expand Down
4 changes: 2 additions & 2 deletions crds/zz_defs.go

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions pkg/operators/v1alpha1/subscription_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ type SubscriptionConfig struct {
// +optional
Affinity *corev1.Affinity `json:"affinity,omitempty" protobuf:"bytes,18,opt,name=affinity"`

// DeploymentAnnotations is an unstructured key value map stored with a resource that may be
// set by external tools to store and retrieve arbitrary metadata.
// DeploymentAnnotations is an unstructured key value map stored with each Deployment in the Operator.
// Typically, annotations may be set by external tools to store and retrieve arbitrary metadata.
// Use this field to pre-define annotations that OLM should add to each of the Subscription's deployments.
// +optional
DeploymentAnnotations map[string]string `json:"deploymentAnnotations,omitempty" protobuf:"bytes,12,rep,name=deploymentAnnotations"`
}
Expand Down

0 comments on commit 60fbe24

Please sign in to comment.