Skip to content

Commit

Permalink
add registry url
Browse files Browse the repository at this point in the history
  • Loading branch information
nxtCoder19 committed Feb 27, 2024
1 parent 5416168 commit 14132bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import useCustomSwr from '~/lib/client/hooks/use-custom-swr';
import { useConsoleApi } from '~/console/server/gql/api-provider';
import { parseNodes } from '~/console/server/r-utils/common';
import { plans } from '../../../../new-app/datas';
import {registryHost} from "~/lib/configs/base-url.cjs";


const valueRender = ({
label,
Expand Down Expand Up @@ -114,7 +116,7 @@ const SettingCompute = () => {
containers: [
{
...(s.spec.containers?.[0] || {}),
image: values.repoAccountName == undefined || values.repoAccountName == '' ? `${values.repoName}:${values.repoImageTag}` : `registry.kloudlite.io/${values.repoAccountName}/${values.repoName}:${values.repoImageTag}`,
image: values.repoAccountName == undefined || values.repoAccountName == '' ? `${values.repoName}:${values.repoImageTag}` : `${registryHost}/${values.repoAccountName}/${values.repoName}:${values.repoImageTag}`,
name: 'container-0',
resourceCpu:
val.selectionMode === 'quick'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { useConsoleApi } from '~/console/server/gql/api-provider';
import { useMapper } from '~/components/utils';
import {useEffect, useState } from 'react';
import { plans } from './datas';
import {registryHost} from "~/lib/configs/base-url.cjs";

const valueRender = ({
label,
Expand Down Expand Up @@ -115,7 +116,7 @@ const AppCompute = () => {
{
...(s.spec.containers?.[0] || {}),
// image: val.image === '' ? val.repoImageUrl : val.imageUrl,
image: values.repoAccountName == undefined || values.repoAccountName == '' ? `${values.repoName}:${values.repoImageTag}` : `registry.kloudlite.io/${values.repoAccountName}/${values.repoName}:${values.repoImageTag}`,
image: values.repoAccountName == undefined || values.repoAccountName == '' ? `${values.repoName}:${values.repoImageTag}` : `${registryHost}/${values.repoAccountName}/${values.repoName}:${values.repoImageTag}`,
name: 'container-0',
resourceCpu:
val.selectionMode === 'quick'
Expand Down Expand Up @@ -162,7 +163,7 @@ const AppCompute = () => {
return api.listDigest({ repoName: values.repoName });
}
);

return (
<FadeIn
onSubmit={(e) => {
Expand Down

0 comments on commit 14132bd

Please sign in to comment.