-
Notifications
You must be signed in to change notification settings - Fork 593
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pipeline credential management section to start pipeline modal
- Loading branch information
karthik
committed
Apr 7, 2020
1 parent
beb4b53
commit f9f7fb0
Showing
10 changed files
with
131 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 8 additions & 3 deletions
11
...nd/packages/dev-console/src/components/pipelines/pipeline-form/PipelineSecretSection.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,15 @@ | ||
.odc-pipeline-secret-section { | ||
margin-top: calc(-1 * var(--pf-global--spacer--sm)); | ||
padding-left: var(--pf-global--spacer--lg); | ||
&__secrets { | ||
padding-left: var(--pf-global--spacer--lg); | ||
} | ||
&__secret-form { | ||
border: 1px dashed var(--pf-global--BorderColor--100); | ||
padding: var(--pf-global--spacer--md); | ||
} | ||
&__secret-action { | ||
margin-top: calc(-1 * var(--pf-global--spacer--sm)); | ||
padding-left: 0; | ||
} | ||
} | ||
.odc-pipeline-expandable-content { | ||
margin-top: var(--pf-global--spacer--sm); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
frontend/packages/dev-console/src/components/pipelines/pipeline-form/SecretAnnotation.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import * as React from 'react'; | ||
import { TextInputTypes } from '@patternfly/react-core'; | ||
import { InputField, DropdownField } from '@console/shared'; | ||
import { SecretAnnotationType } from '../const'; | ||
|
||
type SecretAnnotationParam = { | ||
addLabel?: string; | ||
fieldName: string; | ||
isReadOnly?: boolean; | ||
}; | ||
|
||
const SecretAnnotation: React.FC<SecretAnnotationParam> = (props) => { | ||
const { fieldName, isReadOnly = false } = props; | ||
return ( | ||
<div className="row"> | ||
<div className="col-lg-6"> | ||
<DropdownField | ||
name={`${fieldName}.key`} | ||
items={SecretAnnotationType} | ||
label="Access to" | ||
disabled={isReadOnly} | ||
fullWidth | ||
required | ||
/> | ||
</div> | ||
<div className="col-lg-6"> | ||
<InputField | ||
name={`${fieldName}.value`} | ||
type={TextInputTypes.text} | ||
isReadOnly={isReadOnly} | ||
label="Server URL" | ||
required | ||
/> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default SecretAnnotation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
frontend/packages/dev-console/src/components/pipelines/pipeline-form/SecretsList.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
.odc-secrets-list { | ||
&__secrets { | ||
padding-left: var(--pf-global--spacer--lg); | ||
padding-bottom: var(--pf-global--spacer--lg); | ||
&--item { | ||
margin-top: var(--pf-global--spacer--sm); | ||
} | ||
padding-bottom: var(--pf-global--spacer--md); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters