mirror of
https://github.com/portainer/portainer.git
synced 2025-08-09 07:45:22 +02:00
refactor(namespace): migrate namespace edit to react [r8s-125] (#38)
This commit is contained in:
parent
40c7742e46
commit
ce7e0d8d60
108 changed files with 3183 additions and 2194 deletions
|
@ -32,7 +32,7 @@ export async function updateEnvironmentRegistryAccess(
|
|||
try {
|
||||
await axios.put<void>(buildRegistryUrl(environmentId, registryId), access);
|
||||
} catch (e) {
|
||||
throw parseAxiosError(e as Error);
|
||||
throw parseAxiosError(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ export async function getEnvironmentRegistries(
|
|||
});
|
||||
return data;
|
||||
} catch (e) {
|
||||
throw parseAxiosError(e as Error);
|
||||
throw parseAxiosError(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ export async function getEnvironmentRegistry(
|
|||
);
|
||||
return data;
|
||||
} catch (e) {
|
||||
throw parseAxiosError(e as Error);
|
||||
throw parseAxiosError(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -56,6 +56,8 @@ export interface KubernetesSnapshot {
|
|||
export type IngressClass = {
|
||||
Name: string;
|
||||
Type: string;
|
||||
Blocked?: boolean;
|
||||
BlockedNamespaces?: string[] | null;
|
||||
};
|
||||
|
||||
export interface StorageClass {
|
||||
|
@ -82,6 +84,11 @@ export interface KubernetesConfiguration {
|
|||
export interface KubernetesSettings {
|
||||
Snapshots?: KubernetesSnapshot[] | null;
|
||||
Configuration: KubernetesConfiguration;
|
||||
Flags: {
|
||||
IsServerMetricsDetected: boolean;
|
||||
IsServerIngressClassDetected: boolean;
|
||||
IsServerStorageDetected: boolean;
|
||||
};
|
||||
}
|
||||
|
||||
export type EnvironmentEdge = {
|
||||
|
@ -153,11 +160,21 @@ export type Environment = {
|
|||
Snapshots: DockerSnapshot[];
|
||||
Kubernetes: KubernetesSettings;
|
||||
PublicURL?: string;
|
||||
UserTrusted: boolean;
|
||||
UserTrusted?: boolean;
|
||||
AMTDeviceGUID?: string;
|
||||
Edge: EnvironmentEdge;
|
||||
SecuritySettings: EnvironmentSecuritySettings;
|
||||
Gpus?: { name: string; value: string }[];
|
||||
TLSConfig?: {
|
||||
TLS: boolean;
|
||||
TLSSkipVerify: boolean;
|
||||
};
|
||||
AzureCredentials?: {
|
||||
ApplicationID: string;
|
||||
TenantID: string;
|
||||
AuthenticationKey: string;
|
||||
};
|
||||
ComposeSyntaxMaxVersion: string;
|
||||
EnableImageNotification: boolean;
|
||||
LocalTimeZone?: string;
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@ export enum RegistryTypes {
|
|||
}
|
||||
|
||||
export interface RegistryAccess {
|
||||
UserAccessPolicies: UserAccessPolicies;
|
||||
TeamAccessPolicies: TeamAccessPolicies;
|
||||
UserAccessPolicies: UserAccessPolicies | null;
|
||||
TeamAccessPolicies: TeamAccessPolicies | null;
|
||||
Namespaces: string[];
|
||||
}
|
||||
|
||||
|
@ -37,7 +37,7 @@ export interface Gitlab {
|
|||
}
|
||||
|
||||
export interface Quay {
|
||||
UseOrganisation: boolean;
|
||||
UseOrganisation?: boolean;
|
||||
OrganisationName: string;
|
||||
}
|
||||
|
||||
|
@ -71,7 +71,7 @@ export interface Registry {
|
|||
Authentication: boolean;
|
||||
Username: string;
|
||||
Password?: string;
|
||||
RegistryAccesses: RegistryAccesses;
|
||||
RegistryAccesses: RegistryAccesses | null;
|
||||
Gitlab: Gitlab;
|
||||
Quay: Quay;
|
||||
Github: Github;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue