Skip to content

feat(ws): Notebooks v2 add secrets to workspace creation properties #303

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

Open
wants to merge 7 commits into
base: notebooks-v2
Choose a base branch
from

Conversation

thaorell
Copy link

@thaorell thaorell commented May 1, 2025

closes: #267
related: depends on #262

Note:

  • The modal to create a new secret currently takes in octal value as defaultMode and stores it as decimal before submitting back to API
  • The default mode also includes input validation to ensure the input is a valid unix permission value
2025_05_01-15_35_11.webm

Hen Schwartz (EXT-Nokia) and others added 6 commits April 22, 2025 10:57
…mockup kubeflow#203 (kubeflow#237)

* feat(ws): Notebooks 2.0 // Frontend // Workspace Kind Viewer // Live mockup kubeflow#203

Signed-off-by: Liav Weiss (EXT-Nokia) <[email protected]>

* feat(ws): Notebooks 2.0 // Frontend // Workspace Kind Viewer // Live mockup kubeflow#203

Signed-off-by: Liav Weiss (EXT-Nokia) <[email protected]>

* feat(ws): Notebooks 2.0 // Frontend // Workspace Kind Viewer // Live mockup kubeflow#203

Signed-off-by: Liav Weiss (EXT-Nokia) <[email protected]>

* feat(ws): Notebooks 2.0 // Frontend // Workspace Kind Viewer // Live mockup kubeflow#203

Signed-off-by: Liav Weiss (EXT-Nokia) <[email protected]>

* feat(ws): Notebooks 2.0 // Frontend // Workspace Kind Viewer // Live mockup kubeflow#203

Signed-off-by: Liav Weiss (EXT-Nokia) <[email protected]>

* feat(ws): Notebooks 2.0 // Frontend // Workspace Kind Viewer // Live mockup kubeflow#203

Signed-off-by: Liav Weiss (EXT-Nokia) <[email protected]>

* feat(ws): Notebooks 2.0 // Frontend // Workspace Kind Viewer // Live mockup kubeflow#203

Signed-off-by: Liav Weiss (EXT-Nokia) <[email protected]>

---------

Signed-off-by: Liav Weiss (EXT-Nokia) <[email protected]>
Co-authored-by: Liav Weiss (EXT-Nokia) <[email protected]>
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign ederign for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@thaorell thaorell force-pushed the notebooks-v2-workspace-creation-secrets-select branch from 9c0a3ce to de8fe2a Compare May 2, 2025 13:34
Copy link

@paulovmr paulovmr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @thaorell for the PR! I left a few comments, after those are fixed and we get the dependent PR merged and your branch rebased, I can do a final review.

} from '@patternfly/react-core';
import { WorkSpaceSecret } from '~/shared/types';

interface WorkspaceCreationSecretsProps {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
interface WorkspaceCreationSecretsProps {
interface WorkspaceCreationPropertiesSecretsProps {

secrets: WorkSpaceSecret[];
}

export interface WorkSpaceSecret {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export interface WorkSpaceSecret {
export interface WorkspaceSecret {

)}
</ExpandableSection>
{!isSecretsExpanded && (
<div style={{ paddingLeft: '36px' }}>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please consider adding a message here, similarly to volumes. @jenny-s51 Any suggestions on the message to use here?

</Table>
)}
<Button variant="primary" onClick={() => setIsModalOpen(true)} style={{ marginTop: '1rem' }}>
Create Secrets
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Create Secrets
Create Secret

Create Secrets
</Button>
<Modal isOpen={isModalOpen} onClose={clearForm} variant={ModalVariant.small}>
<ModalHeader
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please consider adding a description to the ModalHeader, similarly to volumes. @jenny-s51 Any suggestions on the message to use here?

@thaorell thaorell force-pushed the notebooks-v2-workspace-creation-secrets-select branch from de8fe2a to 24c4046 Compare May 6, 2025 14:51
@paulovmr
Copy link

paulovmr commented May 7, 2025

/ok-to-test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Needs Triage
Development

Successfully merging this pull request may close these issues.

4 participants