Skip to content

Commit

Permalink
Increased release information key name max length.
Browse files Browse the repository at this point in the history
Helm release names are limited to 53 characters. By default, Release information is stored in Kubernetes as secrets, and the secret's name structure follows the pattern "sh.helm.release.v1.<release name up to 53 characters>.v<release revision>." However, in the case of using an SQL backend, this release information key is stored in the release_v1 table, and the table constraint currently limits the key name length to 67 characters. This limitation may not be suitable for release names that are within Helm's 53-character limit and need to accommodate the additional "sh.helm.release.v1." prefix and the release revision suffix.

Signed-off-by: abrarcv170 <78675575+abrarcv170@users.noreply.github.com>
(cherry picked from commit 4199be8)
  • Loading branch information
abrarcv170 authored and mattfarina committed Oct 12, 2023
1 parent ff8e61d commit 52a029d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/storage/driver/sql.go
Expand Up @@ -137,7 +137,7 @@ func (s *SQL) ensureDBSetup() error {
Up: []string{
fmt.Sprintf(`
CREATE TABLE %s (
%s VARCHAR(67),
%s VARCHAR(90),
%s VARCHAR(64) NOT NULL,
%s TEXT NOT NULL,
%s VARCHAR(64) NOT NULL,
Expand Down

0 comments on commit 52a029d

Please sign in to comment.