Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add manual constant helper SecretModel #522

Merged
merged 1 commit into from
Jul 5, 2023
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
10 changes: 5 additions & 5 deletions packages/types/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

Manual and auto generated typescript models and constants for Forklift controller.

| Subdirectory | Description | Contents |
|---------------------------|-----------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [constants](./src/constants) | Contains auto-generated Openshift Web Console model constants. | Auto-generated models, that can be manually adjusted. |
| [models](./src/models) | Contains auto-generated types for Kubernetes (k8s) models used in the project. | Kubernetes (k8s) models used in the project, auto-generated from API definitions or other sources. |
| [types](./src/types) | Contains manually created helper types and non-Kubernetes types used by the inventory API. | - Helper types: Manually created types that assist in various tasks within the project.<br>- Non-Kubernetes types: Types that are used by the inventory API. |
| Subdirectory | Auto generated | Description | Contents |
|---------------------------|----------------|-------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [constants](./src/constants) | Auto | Contains auto-generated Openshift Web Console model constants. | Auto-generated models, that can be manually adjusted. |
| [models](./src/models) | Auto | Contains auto-generated types for Kubernetes (k8s) models used in the project. | Kubernetes (k8s) models used in the project, auto-generated from API definitions or other sources. |
| [types](./src/types) | Manual | Contains manually created helper types and non-Kubernetes types used by the inventory API. | - Helper types: Manually created types that assist in various tasks within the project.<br>- Non-Kubernetes types: Types that are used by the inventory API. |

## Auto generating new version

Expand Down
14 changes: 14 additions & 0 deletions packages/types/src/types/constants/SecretModel.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export const SecretModel = {
apiVersion: 'v1',
label: 'Secret',
// t('public~Secret')
labelKey: 'public~Secret',
plural: 'secrets',
abbr: 'S',
namespaced: true,
kind: 'Secret',
id: 'secret',
labelPlural: 'Secrets',
// t('public~Secrets')
labelPluralKey: 'public~Secrets',
};
3 changes: 3 additions & 0 deletions packages/types/src/types/constants/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// @index('./*.ts', f => `export * from '${f.path}';`)
export * from './SecretModel';
// @endindex
1 change: 1 addition & 0 deletions packages/types/src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @index('./*', f => `export * from '${f.path}';`)
export * from './constants';
export * from './k8s';
export * from './Modify';
export * from './MustGatherResponse';
Expand Down