Skip to content

Commit

Permalink
Release Fixes (#98)
Browse files Browse the repository at this point in the history
Update everything to cater for breaking API changes.
  • Loading branch information
spjmurray authored Nov 28, 2024
1 parent ebd0b21 commit fbba1d9
Show file tree
Hide file tree
Showing 59 changed files with 2,174 additions and 146 deletions.
6 changes: 3 additions & 3 deletions charts/ui/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ description: A Helm chart for deploying Unikorn UI

type: application

version: v0.2.39
appVersion: v0.2.39
version: v0.2.40
appVersion: v0.2.40

icon: https://assets.unikorn-cloud.org/assets/images/logos/dark-on-light/icon.png

dependencies:
- name: unikorn-common
version: v0.1.8
version: v0.1.13
repository: https://unikorn-cloud.github.io/helm-common
4 changes: 4 additions & 0 deletions charts/ui/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ spec:
value: https://{{ include "unikorn.region.host" . }}
- name: PUBLIC_KUBERNETES_HOST
value: https://{{ include "unikorn.kubernetes.host" . }}
- name: PUBLIC_APPLICATION_HOST
value: https://{{ include "unikorn.application.host" . }}
- name: PUBLIC_COMPUTE_HOST
value: https://{{ include "unikorn.compute.host" . }}
- name: PUBLIC_OAUTH2_CLIENT_ID
{{- if .Values.oauth2.clientName }}
value: {{ include "resource.id" .Values.oauth2.clientName }}
Expand Down
8 changes: 8 additions & 0 deletions charts/ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ kubernetes:
# The API's hostname.
host: kubernetes.unikorn-cloud.org

application:
# The API's hostname.
host: application.unikorn-cloud.org

compute:
# The API's hostname.
host: compute.unikorn-cloud.org

oauth2:
# The client identifier assigned to this application.
clientID: 3fc34852-9186-4884-b580-78bf4bcf628a
Expand Down
2 changes: 1 addition & 1 deletion src/lib/openapi/application/.openapi-generator/FILES
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.openapi-generator-ignore
apis/DefaultApi.ts
apis/index.ts
index.ts
Expand All @@ -11,5 +10,6 @@ models/ResourceMetadata.ts
models/ResourceProvisioningStatus.ts
models/ResourceReadMetadata.ts
models/StaticResourceMetadata.ts
models/Tag.ts
models/index.ts
runtime.ts
8 changes: 0 additions & 8 deletions src/lib/openapi/application/models/ApplicationSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@ export interface ApplicationSpec {
* @memberof ApplicationSpec
*/
versions: Array<ApplicationVersion>;
/**
* A set of tags for filtering applications.
* @type {Array<string>}
* @memberof ApplicationSpec
*/
tags?: Array<string>;
}

/**
Expand Down Expand Up @@ -93,7 +87,6 @@ export function ApplicationSpecFromJSONTyped(json: any, ignoreDiscriminator: boo
'license': json['license'],
'icon': json['icon'],
'versions': ((json['versions'] as Array<any>).map(ApplicationVersionFromJSON)),
'tags': !exists(json, 'tags') ? undefined : json['tags'],
};
}

Expand All @@ -111,7 +104,6 @@ export function ApplicationSpecToJSON(value?: ApplicationSpec | null): any {
'license': value.license,
'icon': value.icon,
'versions': ((value.versions as Array<any>).map(ApplicationVersionToJSON)),
'tags': value.tags,
};
}

15 changes: 15 additions & 0 deletions src/lib/openapi/application/models/ResourceMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
*/

import { exists, mapValues } from '../runtime';
import type { Tag } from './Tag';
import {
TagFromJSON,
TagFromJSONTyped,
TagToJSON,
} from './Tag';

/**
* Resource metadata valid for all API resource reads and writes.
* @export
Expand All @@ -32,6 +39,12 @@ export interface ResourceMetadata {
* @memberof ResourceMetadata
*/
description?: string;
/**
* A list of tags.
* @type {Array<Tag>}
* @memberof ResourceMetadata
*/
tags?: Array<Tag>;
}

/**
Expand All @@ -56,6 +69,7 @@ export function ResourceMetadataFromJSONTyped(json: any, ignoreDiscriminator: bo

'name': json['name'],
'description': !exists(json, 'description') ? undefined : json['description'],
'tags': !exists(json, 'tags') ? undefined : ((json['tags'] as Array<any>).map(TagFromJSON)),
};
}

Expand All @@ -70,6 +84,7 @@ export function ResourceMetadataToJSON(value?: ResourceMetadata | null): any {

'name': value.name,
'description': value.description,
'tags': value.tags === undefined ? undefined : ((value.tags as Array<any>).map(TagToJSON)),
};
}

14 changes: 14 additions & 0 deletions src/lib/openapi/application/models/ResourceReadMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ import {
ResourceProvisioningStatusFromJSONTyped,
ResourceProvisioningStatusToJSON,
} from './ResourceProvisioningStatus';
import type { Tag } from './Tag';
import {
TagFromJSON,
TagFromJSONTyped,
TagToJSON,
} from './Tag';

/**
* Resource metadata valid for all reads.
Expand All @@ -39,6 +45,12 @@ export interface ResourceReadMetadata {
* @memberof ResourceReadMetadata
*/
description?: string;
/**
* A list of tags.
* @type {Array<Tag>}
* @memberof ResourceReadMetadata
*/
tags?: Array<Tag>;
/**
* The unique resource ID.
* @type {string}
Expand Down Expand Up @@ -108,6 +120,7 @@ export function ResourceReadMetadataFromJSONTyped(json: any, ignoreDiscriminator

'name': json['name'],
'description': !exists(json, 'description') ? undefined : json['description'],
'tags': !exists(json, 'tags') ? undefined : ((json['tags'] as Array<any>).map(TagFromJSON)),
'id': json['id'],
'creationTime': (new Date(json['creationTime'])),
'createdBy': !exists(json, 'createdBy') ? undefined : json['createdBy'],
Expand All @@ -129,6 +142,7 @@ export function ResourceReadMetadataToJSON(value?: ResourceReadMetadata | null):

'name': value.name,
'description': value.description,
'tags': value.tags === undefined ? undefined : ((value.tags as Array<any>).map(TagToJSON)),
'id': value.id,
'creationTime': (value.creationTime.toISOString()),
'createdBy': value.createdBy,
Expand Down
15 changes: 15 additions & 0 deletions src/lib/openapi/application/models/StaticResourceMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
*/

import { exists, mapValues } from '../runtime';
import type { Tag } from './Tag';
import {
TagFromJSON,
TagFromJSONTyped,
TagToJSON,
} from './Tag';

/**
* This metadata is for resources that just exist, and don't require
* any provisioning and health status, but benefit from a standarized
Expand All @@ -35,6 +42,12 @@ export interface StaticResourceMetadata {
* @memberof StaticResourceMetadata
*/
description?: string;
/**
* A list of tags.
* @type {Array<Tag>}
* @memberof StaticResourceMetadata
*/
tags?: Array<Tag>;
/**
* The unique resource ID.
* @type {string}
Expand Down Expand Up @@ -91,6 +104,7 @@ export function StaticResourceMetadataFromJSONTyped(json: any, ignoreDiscriminat

'name': json['name'],
'description': !exists(json, 'description') ? undefined : json['description'],
'tags': !exists(json, 'tags') ? undefined : ((json['tags'] as Array<any>).map(TagFromJSON)),
'id': json['id'],
'creationTime': (new Date(json['creationTime'])),
'createdBy': !exists(json, 'createdBy') ? undefined : json['createdBy'],
Expand All @@ -110,6 +124,7 @@ export function StaticResourceMetadataToJSON(value?: StaticResourceMetadata | nu

'name': value.name,
'description': value.description,
'tags': value.tags === undefined ? undefined : ((value.tags as Array<any>).map(TagToJSON)),
'id': value.id,
'creationTime': (value.creationTime.toISOString()),
'createdBy': value.createdBy,
Expand Down
75 changes: 75 additions & 0 deletions src/lib/openapi/application/models/Tag.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
/* tslint:disable */
/* eslint-disable */
/**
* Application Service API
* The application service is a layer that sits on top of the Kubernetes service and allows the provisioning of applications onto managed Kubernetes clusters. This yields a higher level PaaS solution.
*
* The version of the OpenAPI document: 0.2.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { exists, mapValues } from '../runtime';
/**
* An arbitrary tag name and value.
* @export
* @interface Tag
*/
export interface Tag {
/**
* A unique tag name.
* @type {string}
* @memberof Tag
*/
name: string;
/**
* The value of the tag.
* @type {string}
* @memberof Tag
*/
value: string;
}

/**
* Check if a given object implements the Tag interface.
*/
export function instanceOfTag(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "value" in value;

return isInstance;
}

export function TagFromJSON(json: any): Tag {
return TagFromJSONTyped(json, false);
}

export function TagFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tag {
if ((json === undefined) || (json === null)) {
return json;
}
return {

'name': json['name'],
'value': json['value'],
};
}

export function TagToJSON(value?: Tag | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {

'name': value.name,
'value': value.value,
};
}

1 change: 1 addition & 0 deletions src/lib/openapi/application/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ export * from './ResourceMetadata';
export * from './ResourceProvisioningStatus';
export * from './ResourceReadMetadata';
export * from './StaticResourceMetadata';
export * from './Tag';
1 change: 1 addition & 0 deletions src/lib/openapi/identity/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ models/Scope.ts
models/SigningAlgorithm.ts
models/StaticResourceMetadata.ts
models/SystemOauth2ProviderRead.ts
models/Tag.ts
models/Token.ts
models/TokenRequestOptions.ts
models/Userinfo.ts
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ import {
ResourceProvisioningStatusFromJSONTyped,
ResourceProvisioningStatusToJSON,
} from './ResourceProvisioningStatus';
import type { Tag } from './Tag';
import {
TagFromJSON,
TagFromJSONTyped,
TagToJSON,
} from './Tag';

/**
*
Expand All @@ -39,6 +45,12 @@ export interface OrganizationScopedResourceReadMetadata {
* @memberof OrganizationScopedResourceReadMetadata
*/
description?: string;
/**
* A list of tags.
* @type {Array<Tag>}
* @memberof OrganizationScopedResourceReadMetadata
*/
tags?: Array<Tag>;
/**
* The unique resource ID.
* @type {string}
Expand Down Expand Up @@ -115,6 +127,7 @@ export function OrganizationScopedResourceReadMetadataFromJSONTyped(json: any, i

'name': json['name'],
'description': !exists(json, 'description') ? undefined : json['description'],
'tags': !exists(json, 'tags') ? undefined : ((json['tags'] as Array<any>).map(TagFromJSON)),
'id': json['id'],
'creationTime': (new Date(json['creationTime'])),
'createdBy': !exists(json, 'createdBy') ? undefined : json['createdBy'],
Expand All @@ -137,6 +150,7 @@ export function OrganizationScopedResourceReadMetadataToJSON(value?: Organizatio

'name': value.name,
'description': value.description,
'tags': value.tags === undefined ? undefined : ((value.tags as Array<any>).map(TagToJSON)),
'id': value.id,
'creationTime': (value.creationTime.toISOString()),
'createdBy': value.createdBy,
Expand Down
15 changes: 15 additions & 0 deletions src/lib/openapi/identity/models/ResourceMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@
*/

import { exists, mapValues } from '../runtime';
import type { Tag } from './Tag';
import {
TagFromJSON,
TagFromJSONTyped,
TagToJSON,
} from './Tag';

/**
* Resource metadata valid for all API resource reads and writes.
* @export
Expand All @@ -32,6 +39,12 @@ export interface ResourceMetadata {
* @memberof ResourceMetadata
*/
description?: string;
/**
* A list of tags.
* @type {Array<Tag>}
* @memberof ResourceMetadata
*/
tags?: Array<Tag>;
}

/**
Expand All @@ -56,6 +69,7 @@ export function ResourceMetadataFromJSONTyped(json: any, ignoreDiscriminator: bo

'name': json['name'],
'description': !exists(json, 'description') ? undefined : json['description'],
'tags': !exists(json, 'tags') ? undefined : ((json['tags'] as Array<any>).map(TagFromJSON)),
};
}

Expand All @@ -70,6 +84,7 @@ export function ResourceMetadataToJSON(value?: ResourceMetadata | null): any {

'name': value.name,
'description': value.description,
'tags': value.tags === undefined ? undefined : ((value.tags as Array<any>).map(TagToJSON)),
};
}

Loading

0 comments on commit fbba1d9

Please sign in to comment.