forked from opendatahub-io/odh-dashboard
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main'
- Loading branch information
Showing
16 changed files
with
149 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
import * as React from 'react'; | ||
import { Button, Popover } from '@patternfly/react-core'; | ||
import { OutlinedQuestionCircleIcon } from '@patternfly/react-icons'; | ||
import PopoverListContent from '~/components/PopoverListContent'; | ||
import { FindAdministratorOptions } from '~/pages/projects/screens/projects/const'; | ||
|
||
type Props = { | ||
buttonLabel?: string; | ||
headerContent?: string; | ||
leadText?: string; | ||
isInline?: boolean; | ||
contentTestId?: string; | ||
linkTestId?: string; | ||
}; | ||
|
||
const WhosMyAdministrator: React.FC<Props> = ({ | ||
buttonLabel = "Who's my administrator?", | ||
headerContent, | ||
leadText, | ||
isInline, | ||
contentTestId, | ||
linkTestId, | ||
}) => ( | ||
<Popover | ||
showClose | ||
position="bottom" | ||
headerContent={headerContent || 'Your administrator might be:'} | ||
hasAutoWidth | ||
maxWidth="370px" | ||
bodyContent={ | ||
<PopoverListContent | ||
data-testid={contentTestId} | ||
leadText={leadText} | ||
listHeading={headerContent ? 'Your administrator might be:' : undefined} | ||
listItems={FindAdministratorOptions} | ||
/> | ||
} | ||
> | ||
<Button | ||
isInline={isInline} | ||
variant="link" | ||
icon={<OutlinedQuestionCircleIcon />} | ||
data-testid={linkTestId} | ||
> | ||
{buttonLabel} | ||
</Button> | ||
</Popover> | ||
); | ||
|
||
export default WhosMyAdministrator; |
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
8 changes: 8 additions & 0 deletions
8
frontend/src/pages/connectionTypes/manage/EditConnectionTypePage.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
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
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
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,6 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
resources: | ||
- ./oci-compliant-registry-v1.yaml | ||
- ./s3.yaml | ||
- ./uri-v1.yaml |
13 changes: 13 additions & 0 deletions
13
manifests/common/connection-types/oci-compliant-registry-v1.yaml
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,13 @@ | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
name: oci-compliant-registry-v1 | ||
labels: | ||
opendatahub.io/connection-type: 'true' | ||
opendatahub.io/dashboard: 'true' | ||
annotations: | ||
openshift.io/description: 'Connect to an OCI-compliant container registry, enabling integration with containerized applications and services. Use this connection type to pull and manage container images and artifacts that adhere to the Open Container Initiative (OCI) standards, ensuring compatibility with OCI-compliant tools and workflows.' | ||
openshift.io/display-name: OCI compliant registry - v1 | ||
data: | ||
category: '["URI"]' | ||
fields: '[{"type":"uri","name":"URI","envVar":"URI","required":true,"properties":{}}]' |
Oops, something went wrong.