Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update OCI repo creation message #13479

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion shell/assets/translations/en-us.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1133,7 +1133,8 @@ catalog:
oci:
urlLabel: OCI Repository Host URL
placeholder: 'e.g. oci://<registry-host>/<namespace>/<chart-name>:<tag>'
info: Add OCI URLs that contain ONLY helm charts. For large repositories containing many charts consider targeting a specific namespace or chart to improve performance, for example with oci://<registry-host>/<namespace> or oci://<registry-host>/<namespace>/<chart-name>. The list of charts available from the repository is updated every 6 hours.
warning: OCI URLs must ONLY target helm chart/s.
info: For large repositories containing many charts consider targeting a specific namespace or chart to improve performance, for example with oci://<registry-host>/<namespace> or oci://<registry-host>/<namespace>/<chart-name>.
skipTlsVerifications: Skip TLS Verifications
insecurePlainHttp: Insecure Plain Http
exponentialBackOff:
Expand Down
20 changes: 12 additions & 8 deletions shell/edit/catalog.cattle.io.clusterrepo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { RadioGroup } from '@components/Form/Radio';
import NameNsDescription from '@shell/components/form/NameNsDescription';
import Labels from '@shell/components/form/Labels';
import SelectOrCreateAuthSecret from '@shell/components/form/SelectOrCreateAuthSecret';
import InfoBox from '@shell/components/InfoBox';
import Banner from '@components/Banner/Banner.vue';
import { Checkbox } from '@components/Form/Checkbox';
import { MANAGEMENT, NAMESPACE, CLUSTER_REPO_TYPES } from '@shell/config/types';
import UnitInput from '@shell/components/form/UnitInput.vue';
Expand All @@ -23,7 +23,7 @@ export default {
NameNsDescription,
Labels,
SelectOrCreateAuthSecret,
InfoBox,
Banner,
Checkbox,
UnitInput
},
Expand Down Expand Up @@ -153,12 +153,16 @@ export default {
</div>
</div>

<InfoBox
v-if="clusterRepoType === CLUSTER_REPO_TYPES.OCI_URL"
class="p-10"
>
{{ t('catalog.repo.oci.info', null, true) }}
</InfoBox>
<template v-if="clusterRepoType === CLUSTER_REPO_TYPES.OCI_URL">
<Banner
label-key="catalog.repo.oci.warning"
color="warning"
/>
<Banner
:label="t('catalog.repo.oci.info', null, true)"
color="info"
/>
</template>

<div class="row mb-10">
<template v-if="clusterRepoType === CLUSTER_REPO_TYPES.GIT_REPO">
Expand Down