diff --git a/apps/core/lib/core/schema/provider_scaffold.ex b/apps/core/lib/core/schema/provider_scaffold.ex index 0267057c5..e121f2f4b 100644 --- a/apps/core/lib/core/schema/provider_scaffold.ex +++ b/apps/core/lib/core/schema/provider_scaffold.ex @@ -1,6 +1,6 @@ defmodule Core.Schema.ProviderScaffold do defstruct [:name, :content] - @providers ~w(aws gcp azure equinix kind generic)a + @providers ~w(aws gcp azure equinix kind generic linode)a def available(), do: @providers diff --git a/apps/core/lib/core/schema/recipe.ex b/apps/core/lib/core/schema/recipe.ex index b36617f39..2fda41629 100644 --- a/apps/core/lib/core/schema/recipe.ex +++ b/apps/core/lib/core/schema/recipe.ex @@ -2,7 +2,16 @@ defmodule Core.Schema.Recipe do use Piazza.Ecto.Schema alias Core.Schema.{Repository, RecipeSection, RecipeDependency, RecipeTest} - defenum Provider, gcp: 0, aws: 1, azure: 2, custom: 3, kubernetes: 4, equinix: 5, kind: 6, generic: 7 + defenum Provider, + gcp: 0, + aws: 1, + azure: 2, + custom: 3, + kubernetes: 4, + equinix: 5, + kind: 6, + generic: 7, + linode: 8 defmodule OIDCSettings do use Piazza.Ecto.Schema diff --git a/schema/schema.graphql b/schema/schema.graphql index 0fad8170b..d68fd0b2f 100644 --- a/schema/schema.graphql +++ b/schema/schema.graphql @@ -683,6 +683,7 @@ enum Provider { EQUINIX KIND GENERIC + LINODE } type Publisher { diff --git a/www/public/linode.png b/www/public/linode.png new file mode 100644 index 000000000..277c2a004 Binary files /dev/null and b/www/public/linode.png differ diff --git a/www/src/components/constants.ts b/www/src/components/constants.ts index 079f9fce2..bdf12995e 100644 --- a/www/src/components/constants.ts +++ b/www/src/components/constants.ts @@ -14,6 +14,7 @@ export const DEFAULT_AZURE_ICON = '/azure.png' export const DEFAULT_AWS_ICON = '/aws.png' export const DEFAULT_EQUINIX_ICON = '/equinix-metal.png' export const DEFAULT_KIND_ICON = '/kind.png' +export const DEFAULT_LINODE_ICON = '/linode.png' export const DARK_AWS_ICON = '/aws-icon.png' export const ProviderIcons = { @@ -22,6 +23,7 @@ export const ProviderIcons = { AZURE: DEFAULT_AZURE_ICON, EQUINIX: DEFAULT_EQUINIX_ICON, KIND: DEFAULT_KIND_ICON, + LINODE: DEFAULT_LINODE_ICON, GENERIC: DEFAULT_CHART_ICON, } diff --git a/www/src/components/utils/recipeHelpers.tsx b/www/src/components/utils/recipeHelpers.tsx index f6e83d7ef..8a0272a4e 100644 --- a/www/src/components/utils/recipeHelpers.tsx +++ b/www/src/components/utils/recipeHelpers.tsx @@ -28,6 +28,7 @@ export const providerToIcon = { GCP: '/gcp.png', KIND: '/kind.png', GENERIC: '/chart.png', + LINODE: '/linode.png', } export const providerToIconWidth = { @@ -48,6 +49,7 @@ export const providerToLongName: Record = { CUSTOM: 'Custom', KUBERNETES: 'Kubernetes', GENERIC: 'Generic', + LINODE: 'Linode', } export const providerToShortName: Record = { @@ -59,6 +61,7 @@ export const providerToShortName: Record = { CUSTOM: 'Custom', KUBERNETES: 'Kubernetes', GENERIC: 'Generic', + LINODE: 'Linode', } export function getInstallCommand({ diff --git a/www/src/generated/graphql.ts b/www/src/generated/graphql.ts index 85c8064d9..312ea7e96 100644 --- a/www/src/generated/graphql.ts +++ b/www/src/generated/graphql.ts @@ -2157,7 +2157,8 @@ export enum Provider { Gcp = 'GCP', Generic = 'GENERIC', Kind = 'KIND', - Kubernetes = 'KUBERNETES' + Kubernetes = 'KUBERNETES', + Linode = 'LINODE' } export type PublicKey = {