Skip to content

Commit

Permalink
Add field Subscription.Spec.Config.DeploymentAnnotations
Browse files Browse the repository at this point in the history
  • Loading branch information
cognifloyd committed Jan 18, 2024
1 parent 75b2af0 commit ff1e0ba
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
5 changes: 5 additions & 0 deletions crds/operators.coreos.com_subscriptions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -524,6 +524,11 @@ 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.
type: object
additionalProperties:
type: string
env:
description: Env is a list of environment variables to set in the container. Cannot be updated.
type: array
Expand Down
4 changes: 2 additions & 2 deletions crds/zz_defs.go

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions pkg/operators/v1alpha1/subscription_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,11 @@ type SubscriptionConfig struct {
// Use empty object ({}) to erase original sub-attribute values.
// +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.
// +optional
DeploymentAnnotations map[string]string `json:"deployment_annotations,omitempty" protobuf:"bytes,12,rep,name=deployment_annotations"`
}

// SubscriptionConditionType indicates an explicit state condition about a Subscription in "abnormal-true"
Expand Down
7 changes: 7 additions & 0 deletions pkg/operators/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ff1e0ba

Please sign in to comment.