Skip to content

Commit

Permalink
fix: char len limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan Arya committed Oct 11, 2024
1 parent 0e38e29 commit 22e1d1e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/dagger/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
)

const (
helmReleaseNameMaxLength = 53
helmReleaseNameMaxLength = 45
)

// Stream-related constants
Expand Down Expand Up @@ -253,6 +253,10 @@ func readConfig(r module.ExpandedResource, confJSON json.RawMessage, dc driverCo
return nil, errors.ErrInvalid.WithMsgf("deployment_id must not have more than 53 chars")
}

//transformation #7
cfg.EnvVariables[keySinkInfluxURL] = flinkOut.Influx.URL
cfg.EnvVariables[keySinkInfluxUsername] = flinkOut.Influx.Username

//SINK_INFLUX_DB_NAME is added by client
//SINK_INFLUX_MEASUREMENT_NAME is added by client
//REDIS_SERVER is skipped
Expand All @@ -274,10 +278,7 @@ func readConfig(r module.ExpandedResource, confJSON json.RawMessage, dc driverCo
cfg.EnvVariables[keySinkKafkaKey] = cfg.Sink.SinkKafka.SinkKafkaProtoKey
cfg.EnvVariables[keySinkKafkaLingerMs] = cfg.Sink.SinkKafka.SinkKafkaLingerMs
} else if cfg.SinkType == SinkTypeInflux {
//transformation #7
cfg.EnvVariables[keySinkInfluxURL] = flinkOut.Influx.URL
cfg.EnvVariables[keySinkInfluxPassword] = flinkOut.Influx.Password
cfg.EnvVariables[keySinkInfluxUsername] = flinkOut.Influx.Username
cfg.EnvVariables[keySinkInfluxDBName] = cfg.Sink.SinkInflux.SinkInfluxDBName
cfg.EnvVariables[keySinkInfluxMeasurementName] = cfg.Sink.SinkInflux.SinkInfluxMeasurementName
} else if cfg.SinkType == SinkTypeBigquery {
Expand Down

0 comments on commit 22e1d1e

Please sign in to comment.