Skip to content

Commit

Permalink
fixup! initializer: add cryptsetup subcommand
Browse files Browse the repository at this point in the history
  • Loading branch information
jmxnzo committed Jan 28, 2025
1 parent 195a55f commit a69da93
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 13 deletions.
14 changes: 1 addition & 13 deletions internal/kuberesource/sets.go
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,7 @@ func VolumeStatefulSet() []any {
WithDevicePath("/dev/csi0"),
).
WithVolumeMounts(
VolumeMount().
WithName("run").
WithMountPath("/run"),
VolumeMount().
VolumeMount().
WithName("share").
WithMountPath("/state").
WithMountPropagation(corev1.MountPropagationBidirectional),
Expand Down Expand Up @@ -572,9 +569,6 @@ func VolumeStatefulSet() []any {
),
).
WithVolumes(
applycorev1.Volume().
WithName("run").
WithEmptyDir(applycorev1.EmptyDirVolumeSource()),
applycorev1.Volume().
WithName("share").
WithEmptyDir(applycorev1.EmptyDirVolumeSource()),
Expand Down Expand Up @@ -624,9 +618,6 @@ func MySQL() []any {
WithDevicePath("/dev/csi0"),
).
WithVolumeMounts(
VolumeMount().
WithName("run").
WithMountPath("/run"),
VolumeMount().
WithName("share").
WithMountPath("/state").
Expand Down Expand Up @@ -672,9 +663,6 @@ func MySQL() []any {
),
).
WithVolumes(
applycorev1.Volume().
WithName("run").
WithEmptyDir(applycorev1.EmptyDirVolumeSource()),
applycorev1.Volume().
WithName("share").
WithEmptyDir(applycorev1.EmptyDirVolumeSource()),
Expand Down
3 changes: 3 additions & 0 deletions packages/containers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ let
openssl
])
++ (with dockerTools; [ caCertificates ]);
runAsRoot = ''
mkdir -p /run
'';
config = {
# Use Entrypoint so we can append arguments.
Entrypoint = [ "${pkgs.contrast.initializer}/bin/initializer" ];
Expand Down

0 comments on commit a69da93

Please sign in to comment.