@@ -40,7 +40,8 @@ type SubscriptionSpec struct {
40
40
41
41
// SubscriptionConfig contains configuration specified for a subscription.
42
42
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
44
45
// selected by this will be the ones affected by this deployment.
45
46
// It must match the pod template's labels.
46
47
Selector * metav1.LabelSelector `json:"selector,omitempty"`
@@ -51,30 +52,30 @@ type SubscriptionConfig struct {
51
52
// +optional
52
53
NodeSelector map [string ]string `json:"nodeSelector,omitempty"`
53
54
54
- // If specified, the pod's tolerations.
55
+ // Tolerations are the pod's tolerations.
55
56
// +optional
56
57
Tolerations []corev1.Toleration `json:"tolerations,omitempty"`
57
58
58
- // Compute Resources required by this container.
59
- // Cannot be updated .
59
+ // Resources represents compute resources required by this container.
60
+ // Immutable .
60
61
// More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/
61
62
// +optional
62
63
Resources corev1.ResourceRequirements `json:"resources,omitempty"`
63
64
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.
65
66
// The keys defined within a source must be a C_IDENTIFIER. All invalid keys
66
67
// will be reported as an event when the container is starting. When a key exists in multiple
67
68
// sources, the value associated with the last source will take precedence.
68
69
// Values defined by an Env with a duplicate key will take precedence.
69
- // Cannot be updated .
70
+ // Immutable .
70
71
// +optional
71
72
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.
73
74
// Cannot be updated.
74
- // +optional
75
75
// +patchMergeKey=name
76
76
// +patchStrategy=merge
77
- Env []corev1.EnvVar `json:"env,omitempty"`
77
+ // +optional
78
+ Env []corev1.EnvVar `json:"env,omitempty" patchMergeKey:"name" patchStrategy:"merge"`
78
79
}
79
80
80
81
// SubscriptionConditionType indicates an explicit state condition about a Subscription in "abnormal-true"
0 commit comments