[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2025-07-05 05:37:11 +00:00
committed by GitHub
parent f51c51958f
commit ab3a1504cf
3 changed files with 7 additions and 9 deletions

View File

@@ -36,8 +36,8 @@ import { z } from "zod";
const AddPortSchema = z.object({
publishedPort: z.number().int().min(1).max(65535),
publishMode: z.enum(["ingress", "host"], {
required_error: "Publish mode is required",
}),
required_error: "Publish mode is required",
}),
targetPort: z.number().int().min(1).max(65535),
protocol: z.enum(["tcp", "udp"], {
required_error: "Protocol is required",
@@ -250,7 +250,6 @@ export const HandlePorts = ({
);
}}
/>
</div>
</form>

View File

@@ -68,10 +68,10 @@ export const ShowPorts = ({ applicationId }: Props) => {
</span>
</div>
<div className="flex flex-col gap-1">
<span className="font-medium">Published Port Mode</span>
<span className="text-sm text-muted-foreground">
{port.publishMode.toUpperCase()}
</span>
<span className="font-medium">Published Port Mode</span>
<span className="text-sm text-muted-foreground">
{port.publishMode.toUpperCase()}
</span>
</div>
<div className="flex flex-col gap-1">
<span className="font-medium">Target Port</span>
@@ -85,7 +85,6 @@ export const ShowPorts = ({ applicationId }: Props) => {
{port.protocol.toUpperCase()}
</span>
</div>
</div>
<div className="flex flex-row gap-4">
<HandlePorts

View File

@@ -183,7 +183,7 @@ export const mechanizeDockerContainer = async (
RollbackConfig,
EndpointSpec: {
Ports: ports.map((port) => ({
PublishMode: port.publishMode,
PublishMode: port.publishMode,
Protocol: port.protocol,
TargetPort: port.targetPort,
PublishedPort: port.publishedPort,