Skip to content

Commit

Permalink
redpanda: remove unused CommonAnnotations fields
Browse files Browse the repository at this point in the history
Prior to this commit the field `CommonAnnotations` was unintentionally added to
the `Values` struct of the redpanda chart. It was unused and happened to sneak
in along side a larger change. This commit removes the field to prevent any
confusion.
  • Loading branch information
chrisseto authored and RafalKorepta committed Aug 27, 2024
1 parent 440de51 commit bd26d65
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 74 deletions.
67 changes: 33 additions & 34 deletions charts/redpanda/values.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,40 +44,39 @@ const (
// the Values struct as well to ensure that nothing can ever get out of sync.

type Values struct {
NameOverride string `json:"nameOverride"`
FullnameOverride string `json:"fullnameOverride"`
ClusterDomain string `json:"clusterDomain"`
CommonLabels map[string]string `json:"commonLabels"`
CommonAnnotations map[string]string `json:"commonAnnotations"`
NodeSelector map[string]string `json:"nodeSelector"`
Affinity corev1.Affinity `json:"affinity" jsonschema:"required"`
Tolerations []corev1.Toleration `json:"tolerations"`
Image Image `json:"image" jsonschema:"required,description=Values used to define the container image to be used for Redpanda"`
Service *Service `json:"service"`
ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets"`
LicenseKey string `json:"license_key" jsonschema:"deprecated,pattern=^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?\\.(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$|^$"`
LicenseSecretRef *LicenseSecretRef `json:"license_secret_ref" jsonschema:"deprecated"`
AuditLogging AuditLogging `json:"auditLogging"`
Enterprise Enterprise `json:"enterprise"`
RackAwareness RackAwareness `json:"rackAwareness"`
Console Console `json:"console"`
Connectors Connectors `json:"connectors"`
Auth Auth `json:"auth"`
TLS TLS `json:"tls"`
External ExternalConfig `json:"external"`
Logging Logging `json:"logging"`
Monitoring Monitoring `json:"monitoring"`
Resources RedpandaResources `json:"resources"`
Storage Storage `json:"storage"`
PostInstallJob PostInstallJob `json:"post_install_job"`
PostUpgradeJob PostUpgradeJob `json:"post_upgrade_job"`
Statefulset Statefulset `json:"statefulset"`
ServiceAccount ServiceAccountCfg `json:"serviceAccount"`
RBAC RBAC `json:"rbac"`
Tuning Tuning `json:"tuning"`
Listeners Listeners `json:"listeners"`
Config Config `json:"config"`
Tests *struct {
NameOverride string `json:"nameOverride"`
FullnameOverride string `json:"fullnameOverride"`
ClusterDomain string `json:"clusterDomain"`
CommonLabels map[string]string `json:"commonLabels"`
NodeSelector map[string]string `json:"nodeSelector"`
Affinity corev1.Affinity `json:"affinity" jsonschema:"required"`
Tolerations []corev1.Toleration `json:"tolerations"`
Image Image `json:"image" jsonschema:"required,description=Values used to define the container image to be used for Redpanda"`
Service *Service `json:"service"`
ImagePullSecrets []corev1.LocalObjectReference `json:"imagePullSecrets"`
LicenseKey string `json:"license_key" jsonschema:"deprecated,pattern=^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?\\.(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$|^$"`
LicenseSecretRef *LicenseSecretRef `json:"license_secret_ref" jsonschema:"deprecated"`
AuditLogging AuditLogging `json:"auditLogging"`
Enterprise Enterprise `json:"enterprise"`
RackAwareness RackAwareness `json:"rackAwareness"`
Console Console `json:"console"`
Connectors Connectors `json:"connectors"`
Auth Auth `json:"auth"`
TLS TLS `json:"tls"`
External ExternalConfig `json:"external"`
Logging Logging `json:"logging"`
Monitoring Monitoring `json:"monitoring"`
Resources RedpandaResources `json:"resources"`
Storage Storage `json:"storage"`
PostInstallJob PostInstallJob `json:"post_install_job"`
PostUpgradeJob PostUpgradeJob `json:"post_upgrade_job"`
Statefulset Statefulset `json:"statefulset"`
ServiceAccount ServiceAccountCfg `json:"serviceAccount"`
RBAC RBAC `json:"rbac"`
Tuning Tuning `json:"tuning"`
Listeners Listeners `json:"listeners"`
Config Config `json:"config"`
Tests *struct {
Enabled bool `json:"enabled"`
} `json:"tests"`
Force bool `json:"force"`
Expand Down
6 changes: 0 additions & 6 deletions charts/redpanda/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -630,12 +630,6 @@
"clusterDomain": {
"type": "string"
},
"commonAnnotations": {
"additionalProperties": {
"type": "string"
},
"type": "object"
},
"commonLabels": {
"additionalProperties": {
"type": "string"
Expand Down
67 changes: 33 additions & 34 deletions charts/redpanda/values_partial.gen.go

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

0 comments on commit bd26d65

Please sign in to comment.