Skip to content

Commit

Permalink
remove DO components (#3951)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianedwards authored Nov 9, 2023
1 parent bd71ac6 commit bb92997
Show file tree
Hide file tree
Showing 8 changed files with 3 additions and 1,097 deletions.
5 changes: 3 additions & 2 deletions dashboard/src/main/home/add-on-dashboard/AddOnDashboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import Fieldset from "components/porter/Fieldset";
import Select from "components/porter/Select";
import ClusterProvisioningPlaceholder from "components/ClusterProvisioningPlaceholder";
import DashboardPlaceholder from "components/porter/DashboardPlaceholder";
import { useAuthState } from "main/auth/context";

type Props = {
};
Expand All @@ -60,14 +61,14 @@ const templateBlacklist = [
const AddOnDashboard: React.FC<Props> = ({
}) => {

const { currentProject, currentCluster } = useContext(Context);
const { currentProject, currentCluster } = useAuthState();
const [addOns, setAddOns] = useState([]);
const [searchValue, setSearchValue] = useState("");
const [view, setView] = useState("grid");
const [isLoading, setIsLoading] = useState(true);

const filteredAddOns = useMemo(() => {
const filtered = addOns.filter((app: any) => {
const filtered = addOns.filter((app) => {
return (
!namespaceBlacklist.includes(app.namespace) &&
!templateBlacklist.includes(app.chart.metadata.name)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import Placeholder from "components/OldPlaceholder";
import AWSCredentialsList from "./credentials/AWSCredentialList";
import Heading from "components/form-components/Heading";
import GCPCredentialsList from "./credentials/GCPCredentialList";
import DOCredentialsList from "./credentials/DOCredentialList";
import { getQueryParam, useRouting } from "shared/routing";
import {
InfraTemplateMeta,
Expand Down Expand Up @@ -237,19 +236,6 @@ const ProvisionInfra: React.FunctionComponent<Props> = () => {
/>
</ActionContainer>
);
} else if (currentTemplate.required_credential == "do_integration_id") {
return (
<ActionContainer>
<Heading>Step 1 of {numSteps} - Link DO Credentials</Heading>
<DOCredentialsList
selectCredential={(i) =>
setCurrentCredential({
do_integration_id: i,
})
}
/>
</ActionContainer>
);
} else if (
currentTemplate.required_credential == "azure_integration_id"
) {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ import {
TestRegistryConnection as AWSTestRegistryConnection,
} from "./_AWSRegistryForm";
import { integrationList } from "shared/common";
import {
CredentialsForm as DOCredentialsForm,
SettingsForm as DOSettingsForm,
TestRegistryConnection as DOTestRegistryConnection,
} from "./_DORegistryForm";

import {
CredentialsForm as GCPCredentialsForm,
Expand Down Expand Up @@ -48,11 +43,6 @@ const Forms = {
settings: GARegistryConfig,
test_connection: GCPTestRegistryConnection,
},
do: {
credentials: DOCredentialsForm,
settings: DOSettingsForm,
test_connection: DOTestRegistryConnection,
},
};

const FormTitle = {
Expand Down
Loading

0 comments on commit bb92997

Please sign in to comment.