Skip to content

Commit 46c83ec

Browse files
committed
only support ecdsa
Signed-off-by: Oleg <97077423+RobotSail@users.noreply.github.com>
1 parent 59c1330 commit 46c83ec

File tree

2 files changed

+3
-16
lines changed

2 files changed

+3
-16
lines changed

controllers/scripts/ipfs.go

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ type configureIpfsOpts struct {
1818
}
1919

2020
const (
21-
// TODO: dockerize kubo and move this script to the container
2221
configureIpfs = `
2322
#!/bin/sh
2423
set -e
@@ -36,10 +35,6 @@ fi
3635
3736
echo '{{ .FlattenedConfig }}' > config.json
3837
ipfs init -- config.json
39-
MYSELF=$(ipfs id -f="<id>")
40-
41-
# use 'next-to-last/3' as the sharding function
42-
sed 's/next-to-last\/2/next-to-last\/3/g' /data/ipfs/config
4338
4439
chown -R ipfs: /data/ipfs
4540
`
@@ -126,7 +121,7 @@ for op in "${@}"; do
126121
exit 1
127122
;;
128123
esac
129-
done
124+
done
130125
`
131126
)
132127

@@ -233,17 +228,9 @@ func createTemplateConfig(
233228
identity, err = config.CreateIdentity(os.Stdout, []options.KeyGenerateOption{
234229
options.Key.Type(options.Ed25519Key),
235230
})
236-
// fall back to RSA
237231
if err != nil {
238-
identity, err = config.CreateIdentity(os.Stdout, []options.KeyGenerateOption{
239-
options.Key.Type(options.RSAKey),
240-
options.Key.Size(4096),
241-
})
242-
if err != nil {
243-
return
244-
}
232+
return
245233
}
246-
247234
// set keys + defaults
248235
conf.Identity = identity
249236

controllers/statefulset.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const (
4747
// ipfsMountPath Defines where the IPFS volume is mounted.
4848
ipfsMountPath = "/data/ipfs"
4949
// ipfsImage Defines which image we should pull when running IPFS containers.
50-
ipfsImage = "docker.io/ipfs/go-ipfs:v0.12.2"
50+
ipfsImage = "docker.io/ipfs/kubo:v0.14.0"
5151
)
5252

5353
// statefulSet Returns a mutate function that creates a statefulSet for the

0 commit comments

Comments
 (0)