Skip to content
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ import isEmpty from 'lodash/isEmpty'
import { useOutletContext } from 'react-router-dom'

import { InlineLink } from '../../../utils/typography/InlineLink'
import {
ClusterAddOnOutletContextT,
versionPlaceholder,
} from '../ClusterAddon.tsx'
import { ClusterAddOnOutletContextT } from '../ClusterAddon.tsx'

type Release = {
version: string
Expand Down Expand Up @@ -44,7 +41,7 @@ export default function ClusterAddOnReleases() {

return (addOn?.addon?.versions || []).map((addonVersion) => ({
version: addonVersion?.version ?? '',
url: template.replace(versionPlaceholder, addonVersion?.version ?? ''),
url: template.replace('{vsn}', addonVersion?.version ?? ''),
}))
}, [addOn])

Expand Down
74 changes: 74 additions & 0 deletions assets/src/generated/graphql.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1928,6 +1928,8 @@ export type Cluster = {
cpuUtil?: Maybe<Scalars['Float']['output']>;
/** a custom credential to use when provisioning this cluster */
credential?: Maybe<ProviderCredential>;
/** the current upgrade attempt for this cluster */
currentUpgrade?: Maybe<ClusterUpgrade>;
/** current k8s version as told to us by the deployment operator */
currentVersion?: Maybe<Scalars['String']['output']>;
/** when this cluster was scheduled for deletion */
Expand Down Expand Up @@ -2744,6 +2746,27 @@ export type ClusterUpdateAttributes = {
writeBindings?: InputMaybe<Array<InputMaybe<PolicyBindingAttributes>>>;
};

/** A representation of an agentic attempt to upgrade this cluster */
export type ClusterUpgrade = {
__typename?: 'ClusterUpgrade';
cluster?: Maybe<Cluster>;
id: Scalars['ID']['output'];
insertedAt?: Maybe<Scalars['DateTime']['output']>;
runtime?: Maybe<AgentRuntime>;
status: ClusterUpgradeStatus;
steps?: Maybe<Array<Maybe<ClusterUpgradeStep>>>;
updatedAt?: Maybe<Scalars['DateTime']['output']>;
user?: Maybe<User>;
version?: Maybe<Scalars['String']['output']>;
};

export type ClusterUpgradeAttributes = {
/** the prompt for the upgrade */
prompt?: InputMaybe<Scalars['String']['input']>;
/** the runtime to use for the upgrade */
runtimeId?: InputMaybe<Scalars['ID']['input']>;
};

/** A consolidated checklist of tasks that need to be completed to upgrade this cluster */
export type ClusterUpgradePlan = {
__typename?: 'ClusterUpgradePlan';
Expand All @@ -2757,6 +2780,39 @@ export type ClusterUpgradePlan = {
kubeletSkew?: Maybe<Scalars['Boolean']['output']>;
};

export enum ClusterUpgradeStatus {
Completed = 'COMPLETED',
Failed = 'FAILED',
InProgress = 'IN_PROGRESS',
Pending = 'PENDING'
}

/** A step in an agentic attempt to upgrade a specific component or piece of infrastructure in this kubernetes cluster */
export type ClusterUpgradeStep = {
__typename?: 'ClusterUpgradeStep';
agentRun?: Maybe<AgentRun>;
/** the error message for the step if present */
error?: Maybe<Scalars['String']['output']>;
id: Scalars['ID']['output'];
insertedAt?: Maybe<Scalars['DateTime']['output']>;
/** the name of the step */
name: Scalars['String']['output'];
/** the prompt used to generate the step */
prompt: Scalars['String']['output'];
/** the status of the step */
status: ClusterUpgradeStatus;
/** the type of step */
type: ClusterUpgradeStepType;
updatedAt?: Maybe<Scalars['DateTime']['output']>;
upgrade?: Maybe<ClusterUpgrade>;
};

export enum ClusterUpgradeStepType {
Addon = 'ADDON',
CloudAddon = 'CLOUD_ADDON',
Infrastructure = 'INFRASTRUCTURE'
}

export type ClusterUsage = {
__typename?: 'ClusterUsage';
cluster?: Maybe<Cluster>;
Expand Down Expand Up @@ -4352,6 +4408,8 @@ export type HelmConfigAttributes = {
git?: InputMaybe<GitRefAttributes>;
ignoreCrds?: InputMaybe<Scalars['Boolean']['input']>;
ignoreHooks?: InputMaybe<Scalars['Boolean']['input']>;
/** a folder containing a kustomization to apply to the result of rendering this service's manifests */
kustomizePostrender?: InputMaybe<Scalars['String']['input']>;
luaFile?: InputMaybe<Scalars['String']['input']>;
luaFolder?: InputMaybe<Scalars['String']['input']>;
luaScript?: InputMaybe<Scalars['String']['input']>;
Expand Down Expand Up @@ -4446,6 +4504,8 @@ export type HelmSpec = {
git?: Maybe<GitRef>;
ignoreCrds?: Maybe<Scalars['Boolean']['output']>;
ignoreHooks?: Maybe<Scalars['Boolean']['output']>;
/** a folder containing a kustomization to apply to the result of rendering this service's manifests */
kustomizePostrender?: Maybe<Scalars['String']['output']>;
/** a lua file to use for helm applies */
luaFile?: Maybe<Scalars['String']['output']>;
/** a folder of lua files to include in the final script used */
Expand Down Expand Up @@ -7856,6 +7916,7 @@ export type RootMutationType = {
createClusterProvider?: Maybe<ClusterProvider>;
createClusterRegistration?: Maybe<ClusterRegistration>;
createClusterRestore?: Maybe<ClusterRestore>;
createClusterUpgrade?: Maybe<ClusterUpgrade>;
createCustomStackRun?: Maybe<CustomStackRun>;
createFederatedCredential?: Maybe<FederatedCredential>;
createGitRepository?: Maybe<GitRepository>;
Expand Down Expand Up @@ -8271,6 +8332,12 @@ export type RootMutationTypeCreateClusterRestoreArgs = {
};


export type RootMutationTypeCreateClusterUpgradeArgs = {
attributes?: InputMaybe<ClusterUpgradeAttributes>;
id: Scalars['ID']['input'];
};


export type RootMutationTypeCreateCustomStackRunArgs = {
attributes: CustomStackRunAttributes;
};
Expand Down Expand Up @@ -9535,6 +9602,8 @@ export type RootQueryType = {
stackDefinition?: Maybe<StackDefinition>;
stackDefinitions?: Maybe<StackDefinitionConnection>;
stackRun?: Maybe<StackRun>;
/** fetches the files from a stack's git tarball */
stackTarball?: Maybe<Array<Maybe<StackFile>>>;
statefulSet?: Maybe<StatefulSet>;
/** adds the ability to search/filter through all tag name/value pairs */
tagPairs?: Maybe<TagConnection>;
Expand Down Expand Up @@ -10757,6 +10826,11 @@ export type RootQueryTypeStackRunArgs = {
};


export type RootQueryTypeStackTarballArgs = {
id: Scalars['ID']['input'];
};


export type RootQueryTypeStatefulSetArgs = {
name: Scalars['String']['input'];
namespace: Scalars['String']['input'];
Expand Down
Binary file modified charts/console-rapid/charts/controller-0.0.166.tgz
Binary file not shown.
Binary file modified charts/console-rapid/charts/kas-0.3.1.tgz
Binary file not shown.
Binary file modified charts/console/charts/controller-0.0.166.tgz
Binary file not shown.
Binary file modified charts/console/charts/kas-0.3.1.tgz
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,11 @@ spec:
description: IgnoreHooks indicates whether to completely ignore
Helm hooks when actualizing this service.
type: boolean
kustomizePostrender:
description: KustomizePostrender is a folder containing a
kustomization to apply to the result of rendering this service's
manifests.
type: string
luaFile:
description: |-
LuaFile to use to generate Helm configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,11 @@ spec:
description: IgnoreHooks indicates whether to completely ignore
Helm hooks when actualizing this service.
type: boolean
kustomizePostrender:
description: KustomizePostrender is a folder containing a
kustomization to apply to the result of rendering this service's
manifests.
type: string
luaFile:
description: |-
LuaFile to use to generate Helm configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,11 @@ spec:
description: IgnoreHooks indicates whether to completely ignore
Helm hooks when actualizing this service.
type: boolean
kustomizePostrender:
description: KustomizePostrender is a folder containing a
kustomization to apply to the result of rendering this service's
manifests.
type: string
luaFile:
description: |-
LuaFile to use to generate Helm configuration.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,10 @@ spec:
description: IgnoreHooks indicates whether to completely ignore
Helm hooks when actualizing this service.
type: boolean
kustomizePostrender:
description: KustomizePostrender is a folder containing a kustomization
to apply to the result of rendering this service's manifests.
type: string
luaFile:
description: |-
LuaFile to use to generate Helm configuration.
Expand Down
Loading
Loading