Skip to content

Commit

Permalink
updates to recent eec changes in secret dir
Browse files Browse the repository at this point in the history
  • Loading branch information
wepudt committed Jun 28, 2024
1 parent 08ab7d5 commit d3e8730
Showing 1 changed file with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var _ builder.Modifier = EecModifier{}

const (
eecVolumeName = "eec-token"
eecDir = "/var/lib/dynatrace/secrets/eec"
eecDir = "/var/lib/dynatrace/secrets/eec/token"
eecFile = "eec.token"
)

Expand All @@ -38,12 +38,6 @@ func (mod EecModifier) Modify(sts *appsv1.StatefulSet) error {
sts.Spec.Template.Spec.Volumes = append(sts.Spec.Template.Spec.Volumes, mod.getVolumes()...)
baseContainer.VolumeMounts = append(baseContainer.VolumeMounts, mod.getVolumeMounts()...)

baseContainer.Command = []string{"/bin/sh"}
baseContainer.Args = []string{
"-c",
"echo abc ; cp -v " + eecDir + "/" + eecFile + " /var/lib/dynatrace/gateway/config/ ; /opt/dynatrace/gateway/entrypoint.sh",
}

return nil
}

Expand Down

0 comments on commit d3e8730

Please sign in to comment.