Skip to content

Commit

Permalink
Disable data migration and fix linting issues (#2984)
Browse files Browse the repository at this point in the history
  • Loading branch information
albertogdd authored Apr 9, 2024
1 parent adc15cd commit 57a3a5b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
21 changes: 11 additions & 10 deletions cmd/csi/init/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,17 @@ func (builder CommandBuilder) buildRun() func(*cobra.Command, []string) error {
return err
}

// new schema
conn, err := metadata.NewDBAccess(dtcsi.MetadataAccessPath)
if err != nil {
return err
}
// new migrations
err = conn.SchemaMigration(signalHandler)
if err != nil {
return err
}
// DISABLED UNTIL RELEASE 1.2
// // new schema
// conn, err := metadata.NewDBAccess(dtcsi.MetadataAccessPath)
// if err != nil {
// return err
// }
// // new migrations
// err = conn.SchemaMigration(signalHandler)
// if err != nil {
// return err
// }

csiOptions := dtcsi.CSIOptions{
NodeId: nodeId,
Expand Down
2 changes: 2 additions & 0 deletions pkg/api/v1alpha1/dynakube/dynakube_types.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// +kubebuilder:object:generate=true
// +groupName=dynatrace.com
// +versionName=v1alpha1
//
//nolint:revive
package dynakube

import (
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/v1alpha1/dynakube/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (dk *DynaKube) ActiveGateImage() string {

registry := buildImageRegistry(dk.Spec.APIURL)

return fmt.Sprintf("%s/linux/activegate:latest", registry)
return registry + "/linux/activegate:latest"
}

// ImmutableOneAgentImage returns the immutable OneAgent image to be used with the dk DynaKube instance.
Expand Down

0 comments on commit 57a3a5b

Please sign in to comment.