Skip to content

Commit 7d801c5

Browse files
committed
fix(subscriptionconfig): add missing merge struct tags
1 parent 574aecf commit 7d801c5

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

pkg/api/apis/operators/v1alpha1/subscription_types.go

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ type SubscriptionSpec struct {
4040

4141
// SubscriptionConfig contains configuration specified for a subscription.
4242
type SubscriptionConfig struct {
43-
// Label selector for pods. Existing ReplicaSets whose pods are
43+
// Selector is the label selector for pods to be configured.
44+
// Existing ReplicaSets whose pods are
4445
// selected by this will be the ones affected by this deployment.
4546
// It must match the pod template's labels.
4647
Selector *metav1.LabelSelector `json:"selector,omitempty"`
@@ -51,30 +52,30 @@ type SubscriptionConfig struct {
5152
// +optional
5253
NodeSelector map[string]string `json:"nodeSelector,omitempty"`
5354

54-
// If specified, the pod's tolerations.
55+
// Tolerations are the pod's tolerations.
5556
// +optional
5657
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
5758

58-
// Compute Resources required by this container.
59-
// Cannot be updated.
59+
// Resources represents compute resources required by this container.
60+
// Immutable.
6061
// More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
6162
// +optional
6263
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
6364

64-
// List of sources to populate environment variables in the container.
65+
// EnvFrom is a list of sources to populate environment variables in the container.
6566
// The keys defined within a source must be a C_IDENTIFIER. All invalid keys
6667
// will be reported as an event when the container is starting. When a key exists in multiple
6768
// sources, the value associated with the last source will take precedence.
6869
// Values defined by an Env with a duplicate key will take precedence.
69-
// Cannot be updated.
70+
// Immutable.
7071
// +optional
7172
EnvFrom []corev1.EnvFromSource `json:"envFrom,omitempty"`
72-
// List of environment variables to set in the container.
73+
// Env is a list of environment variables to set in the container.
7374
// Cannot be updated.
74-
// +optional
7575
// +patchMergeKey=name
7676
// +patchStrategy=merge
77-
Env []corev1.EnvVar `json:"env,omitempty"`
77+
// +optional
78+
Env []corev1.EnvVar `json:"env,omitempty" patchMergeKey:"name" patchStrategy:"merge"`
7879
}
7980

8081
// SubscriptionConditionType indicates an explicit state condition about a Subscription in "abnormal-true"

0 commit comments

Comments
 (0)