Skip to content

Commit

Permalink
chore: change ipfs swarm port name from swarm -> swarm-tcp
Browse files Browse the repository at this point in the history
  • Loading branch information
smrz2001 committed Jul 27, 2023
1 parent 9b6424a commit c93d5e9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 24 deletions.
2 changes: 1 addition & 1 deletion operator/src/network/cas.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ pub fn cas_ipfs_stateful_set_spec(config: impl Into<CasConfig>) -> StatefulSetSp
ports: Some(vec![
ContainerPort {
container_port: 4001,
name: Some("swarm".to_owned()),
name: Some("swarm-tcp".to_owned()),
..Default::default()
},
ContainerPort {
Expand Down
2 changes: 1 addition & 1 deletion operator/src/network/ceramic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ ipfs config --json Swarm.ResourceMgr.MaxFileDescriptors 500000
ports: Some(vec![
ContainerPort {
container_port: 4001,
name: Some("swarm".to_owned()),
name: Some("swarm-tcp".to_owned()),
protocol: Some("TCP".to_owned()),
..Default::default()
},
Expand Down
24 changes: 3 additions & 21 deletions operator/src/network/controller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1479,7 +1479,7 @@ mod tests {
stub.ceramic_stateful_set.patch(expect![[r#"
--- original
+++ modified
@@ -137,39 +137,13 @@
@@ -137,34 +137,8 @@
]
},
{
Expand Down Expand Up @@ -1516,12 +1516,6 @@ mod tests {
"name": "ipfs",
"ports": [
{
"containerPort": 4001,
- "name": "swarm-tcp",
+ "name": "swarm",
"protocol": "TCP"
},
{
@@ -199,6 +173,11 @@
{
"mountPath": "/data/ipfs",
Expand Down Expand Up @@ -1602,7 +1596,7 @@ mod tests {
stub.ceramic_stateful_set.patch(expect![[r#"
--- original
+++ modified
@@ -137,39 +137,13 @@
@@ -137,34 +137,8 @@
]
},
{
Expand Down Expand Up @@ -1639,12 +1633,6 @@ mod tests {
"name": "ipfs",
"ports": [
{
"containerPort": 4001,
- "name": "swarm-tcp",
+ "name": "swarm",
"protocol": "TCP"
},
{
@@ -185,14 +159,14 @@
],
"resources": {
Expand Down Expand Up @@ -1744,7 +1732,7 @@ mod tests {
stub.ceramic_stateful_set.patch(expect![[r#"
--- original
+++ modified
@@ -137,39 +137,13 @@
@@ -137,34 +137,8 @@
]
},
{
Expand Down Expand Up @@ -1781,12 +1769,6 @@ mod tests {
"name": "ipfs",
"ports": [
{
"containerPort": 4001,
- "name": "swarm-tcp",
+ "name": "swarm",
"protocol": "TCP"
},
{
@@ -199,6 +173,16 @@
{
"mountPath": "/data/ipfs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ Request {
"ports": [
{
"containerPort": 4001,
"name": "swarm"
"name": "swarm-tcp"
},
{
"containerPort": 5001,
Expand Down

0 comments on commit c93d5e9

Please sign in to comment.