Skip to content

Commit

Permalink
Use same deployement for snapshot and activate
Browse files Browse the repository at this point in the history
No description

---
Co-authored-by: tserakhau <[email protected]>

Pull Request resolved: #99
commit_hash:e515c48b24b96bbfcf623aa0f27b54882c3d7ea4
  • Loading branch information
laskoviymishka authored and robot-piglet committed Nov 12, 2024
1 parent c3afe68 commit e9ae910
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion cmd/trcli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func main() {
}
}()

switch logConfig {
switch strings.ToLower(logConfig) {
case "json":
loggerConfig = zp.NewProductionConfig()
case "minimal":
Expand Down
2 changes: 1 addition & 1 deletion cmd/trcli/replicate/replicate.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func replicate(cp *coordinator.Coordinator, rt abstract.Runtime, transferYaml *s
return xerrors.Errorf("unable to load transfer: %w", err)
}
transfer.Runtime = rt
if transfer.IncrementOnly() {
if !transfer.IncrementOnly() {
if err := activate.RunActivate(*cp, transfer, registry, 0); err != nil {
return xerrors.Errorf("unable to activate transfer: %w", err)
}
Expand Down
2 changes: 0 additions & 2 deletions helm/transfer/templates/deployment-type.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
{{- end }}

{{- if eq .Values.transferSpec.type "SNAPSHOT_AND_INCREMENT" }}
{{ include "snapshot-job" . }}
---
{{ include "snapshot-regular-cronjob" . }}
---
{{ include "replication-statefulset" . }}
Expand Down

0 comments on commit e9ae910

Please sign in to comment.