Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Aug 20, 2024
1 parent 32487de commit fab1518
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
56 changes: 28 additions & 28 deletions web/src/core/adapters/onyxiaApi/default/ApiTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ export type ApiTypes = {
tolerations?: unknown[];
nodeSelector?: Record<string, unknown>;
startupProbe:
| {
failureThreshold?: number;
initialDelaySeconds?: number;
periodSeconds?: number;
successThreshold?: number;
timeoutSeconds?: number;
}
| undefined;
| {
failureThreshold?: number;
initialDelaySeconds?: number;
periodSeconds?: number;
successThreshold?: number;
timeoutSeconds?: number;
}
| undefined;
sliders?: Record<
string,
{
Expand Down Expand Up @@ -77,6 +77,10 @@ export type ApiTypes = {
};
URL?: string;
};
openshiftSCC?: {
scc: string;
enabled: boolean;
};
};
data?: {
S3?: {
Expand All @@ -88,11 +92,11 @@ export type ApiTypes = {
URL?: string;
durationSeconds?: number;
role:
| {
roleARN: string;
roleSessionName: string;
}
| undefined;
| {
roleARN: string;
roleSessionName: string;
}
| undefined;
oidcConfiguration?: {
issuerURI?: string;
clientID: string;
Expand All @@ -101,17 +105,17 @@ export type ApiTypes = {

/** Ok to be undefined only if sts is undefined */
workingDirectory?:
| {
bucketMode: "shared";
bucketName: string;
prefix: string;
prefixGroup: string;
}
| {
bucketMode: "multi";
bucketNamePrefix: string;
bucketNamePrefixGroup: string;
};
| {
bucketMode: "shared";
bucketName: string;
prefix: string;
prefixGroup: string;
}
| {
bucketMode: "multi";
bucketNamePrefix: string;
bucketNamePrefixGroup: string;
};
};
};
vault?: {
Expand Down Expand Up @@ -140,10 +144,6 @@ export type ApiTypes = {
cacerts: string;
pathToCaBundle: string;
};
openshiftSCC?: {
scc: string;
enabled: boolean;
};
}[];
oidcConfiguration?: {
issuerURI: string;
Expand Down
6 changes: 3 additions & 3 deletions web/src/core/adapters/onyxiaApi/default/default.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,11 @@ export function createOnyxiaApi(params: {
?.certManagerClusterIssuer
},
"openshiftSCC":
apiRegion.openshiftSCC === undefined
apiRegion.services.openshiftSCC === undefined
? undefined
: {
"scc": apiRegion.openshiftSCC.scc,
"enabled": apiRegion.openshiftSCC.enabled
"scc": apiRegion.services.openshiftSCC.scc,
"enabled": apiRegion.services.openshiftSCC.enabled
}
})
);
Expand Down

0 comments on commit fab1518

Please sign in to comment.