Commit 6eafb256 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera

Merge branch 'display-helm-packages' into 'master'

Display Helm packages in the package registry

See merge request gitlab-org/gitlab!65688
parents 8158b212 e14e343d
...@@ -90,6 +90,10 @@ export const PACKAGE_TYPES = [ ...@@ -90,6 +90,10 @@ export const PACKAGE_TYPES = [
title: s__('PackageRegistry|Debian'), title: s__('PackageRegistry|Debian'),
type: PackageType.DEBIAN, type: PackageType.DEBIAN,
}, },
{
title: s__('PackageRegistry|Helm'),
type: PackageType.HELM,
},
]; ];
export const LIST_TITLE_TEXT = s__('PackageRegistry|Package Registry'); export const LIST_TITLE_TEXT = s__('PackageRegistry|Package Registry');
......
...@@ -10,6 +10,7 @@ export const PackageType = { ...@@ -10,6 +10,7 @@ export const PackageType = {
RUBYGEMS: 'rubygems', RUBYGEMS: 'rubygems',
GENERIC: 'generic', GENERIC: 'generic',
DEBIAN: 'debian', DEBIAN: 'debian',
HELM: 'helm',
}; };
// we want this separated from the main dictionary to avoid it being pulled in the search of package // we want this separated from the main dictionary to avoid it being pulled in the search of package
......
...@@ -27,6 +27,8 @@ export const getPackageTypeLabel = (packageType) => { ...@@ -27,6 +27,8 @@ export const getPackageTypeLabel = (packageType) => {
return s__('PackageRegistry|Generic'); return s__('PackageRegistry|Generic');
case PackageType.DEBIAN: case PackageType.DEBIAN:
return s__('PackageRegistry|Debian'); return s__('PackageRegistry|Debian');
case PackageType.HELM:
return s__('PackageRegistry|Helm');
default: default:
return null; return null;
} }
......
...@@ -23386,6 +23386,9 @@ msgstr "" ...@@ -23386,6 +23386,9 @@ msgstr ""
msgid "PackageRegistry|Gradle Kotlin DSL install command" msgid "PackageRegistry|Gradle Kotlin DSL install command"
msgstr "" msgstr ""
msgid "PackageRegistry|Helm"
msgstr ""
msgid "PackageRegistry|If you haven't already done so, you will need to add the below to your %{codeStart}.pypirc%{codeEnd} file." msgid "PackageRegistry|If you haven't already done so, you will need to add the below to your %{codeStart}.pypirc%{codeEnd} file."
msgstr "" msgstr ""
......
...@@ -41,6 +41,7 @@ describe('Packages shared utils', () => { ...@@ -41,6 +41,7 @@ describe('Packages shared utils', () => {
${'rubygems'} | ${'RubyGems'} ${'rubygems'} | ${'RubyGems'}
${'composer'} | ${'Composer'} ${'composer'} | ${'Composer'}
${'debian'} | ${'Debian'} ${'debian'} | ${'Debian'}
${'helm'} | ${'Helm'}
${'foo'} | ${null} ${'foo'} | ${null}
`(`package type`, ({ packageType, expectedResult }) => { `(`package type`, ({ packageType, expectedResult }) => {
it(`${packageType} should show as ${expectedResult}`, () => { it(`${packageType} should show as ${expectedResult}`, () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment