github.com/replicatedhq/ship@v0.55.0/web/init/src/components/kustomize/HelmChartInfo.jsx (about)

     1  import React from "react";
     2  import Markdown from "react-remarkable";
     3  import RenderActions from "../shared/RenderActions";
     4  
     5  const HelmChartInfo = ({ shipAppMetadata, isUpdate, actions, handleAction, isLoading, firstRoute, goBack }) => {
     6    return (
     7      <div className="flex-column u-paddingTop--30 flex1 u-position--relative">
     8        <div className="flex-column flex-1-auto u-overflow--auto container">
     9          <div className="HelmIntro--wrapper flex-column">
    10            <p className="u-fontSize--jumbo2 u-color--tuna u-fontWeight--bold u-lineHeight--normal">Set custom values in your Helm chart</p>
    11            <p className="u-fontSize--normal u-fontWeight--medium u-color--dustyGray u-lineHeight--more">
    12              {isUpdate 
    13                ? `Let’s update the ${shipAppMetadata.name} application. Ship has downloaded the latest version of the Helm chart, and can merge your patches into the latest upstream, or allow you to edit your patches.` 
    14                : `Let's prepare the ${shipAppMetadata.name} chart for a Production Grade deployment. To get started, we need to confirm the values to use when generating Kubernetes YAML from the Helm chart. Click continue to review the standard values provided in the chart.` 
    15              }
    16            </p>
    17            <div className="HelmIntro--diagram flex">
    18              <div className="detailed-steps flex flex-column">
    19                <div className="detailed-step flex">
    20                  <div className="icon helm-chart flex-auto"></div>
    21                  <div className="flex flex-column">
    22                    <p className="u-fontSize--larger u-fontWeight--bold u-color--tuna u-paddingBottom--10">Helm Chart</p>
    23                    <p className="u-fontSize--normal u-color--dustyGray u-lineHeight--more u-fontWeight--medium">This is the original, upstream Helm Chart. You can use any Helm chart without forking here.</p>
    24                  </div>
    25                </div>
    26                <div className="detailed-step flex">
    27                  <div className="icon custom-values flex-auto"></div>
    28                  <div className="flex flex-column">
    29                    <p className="u-fontSize--larger u-fontWeight--bold u-color--tuna u-paddingBottom--10">Custom Values</p>
    30                    <p className="u-fontSize--normal u-color--dustyGray u-lineHeight--more u-fontWeight--medium">Provide the values to the original Helm Chart. You will be able to view the generated YAML from these and have an opportunity to create patches using <a href="http://kustomize.io" target="_blank" rel="noopener noreferrer" className="u-color--astral u-fontWeight--medium">Kustomize</a> to make advanced changes without forking the original Helm Chart.</p>
    31                  </div>
    32                </div>
    33              </div>
    34              <div className="border-wth-arrow flex flex-column alignItems--center">
    35                <div className="line flex1"></div>
    36                <div className="icon arrow flex-auto"></div>
    37                <div className="line flex1"></div>
    38              </div>
    39              <div className="kustomize-steps flex flex-auto alignItems--center">
    40                <div className="flex flex-column alignItems--center">
    41                  <div className="icon base-small"></div>
    42                  <p className="u-fontSize--small u-color--tuna u-fontWeight--bold u-marginTop--normal u-lineHeight--small">Base</p>
    43                </div>
    44                <p className="plus u-color--chateauGreen u-fontSize--jumbo2 u-fontWeight--bold">+</p>
    45                <div className="flex flex-column alignItems--center">
    46                  <div className="icon patches-small"></div>
    47                  <p className="u-fontSize--small u-color--tuna u-fontWeight--bold u-marginTop--normal u-lineHeight--small">Patches</p>
    48                </div>
    49              </div>
    50              <div className="flex alignItems--center u-marginRight--small u-marginLeft--small">
    51                <p className="plus u-color--chateauGreen u-fontSize--jumbo2 u-fontWeight--bold">=</p>
    52              </div>
    53              <div className="deployment-step flex alignItems--center">
    54                <div className="flex flex-column alignItems--center">
    55                  <div className="icon deployable-app"></div>
    56                  <p className="u-textAlign--center u-fontSize--small u-color--tuna u-fontWeight--bold u-marginTop--normal u-lineHeight--small">Deployable App</p>
    57                </div>
    58              </div>
    59            </div>
    60            <div className="flex flex-column flex1 u-borderTop--gray">
    61              <p className="u-fontSize--normal u-color--dustyGray u-fontWeight--medium u-lineHeight--more">
    62                {isUpdate ? "To get started, we need to confirm the values to use when generating the updated Kubernetes YAML from the latest version of the Helm chart. Click continue to review your values to provide to the chart." :
    63                "To get started, we need to confirm the values to use when generating Kubernetes YAML from the Helm chart. Click continue to review the standard values provided in the chart."}
    64              </p>
    65              <p className="u-marginTop--20 u-fontSize--normal u-color--dustyGray u-fontWeight--medium u-lineHeight--more">Happy Shipping!</p>
    66            </div>
    67          </div>
    68        </div>
    69        <div className="actions-wrapper container u-width--full flex flex-auto">
    70          {!firstRoute && 
    71            <div className="flex-auto u-marginRight--normal">
    72              <button className="btn secondary" onClick={goBack}>Back</button>
    73            </div>
    74          }
    75          <div className="flex1 flex justifyContent--flexEnd">
    76            <RenderActions actions={actions} handleAction={handleAction} isLoading={isLoading} />
    77          </div>
    78        </div>
    79      </div>
    80    )
    81  }
    82  
    83  export default HelmChartInfo;