Selaa lähdekoodia

ensure front end does not overwrite guard duty (#3206)

* ensure front end does not overwrite guard duty

---------

Co-authored-by: David Townley <davidtownley@Davids-MacBook-Air.local>
d-g-town 2 vuotta sitten
vanhempi
sitoutus
71e423e0e0
4 muutettua tiedostoa jossa 7 lisäystä ja 3 poistoa
  1. 1 0
      Tiltfile
  2. 3 0
      dashboard/src/components/ProvisionerSettings.tsx
  3. 1 1
      go.mod
  4. 2 2
      go.sum

+ 1 - 0
Tiltfile

@@ -57,6 +57,7 @@ local_resource(
     "ee",
     "internal",
     "pkg",
+    "vendor",
   ],
   resource_deps=["postgresql"],
   labels=["z_binaries"]

+ 3 - 0
dashboard/src/components/ProvisionerSettings.tsx

@@ -95,6 +95,7 @@ const ProvisionerSettings: React.FC<Props> = (props) => {
   const [clusterName, setClusterName] = useState("");
   const [awsRegion, setAwsRegion] = useState("us-east-1");
   const [machineType, setMachineType] = useState("t3.xlarge");
+  const [guardDutyEnabled, setGuardDutyEnabled] = useState<boolean>(false)
   const [loadBalancerType, setLoadBalancerType] = useState(false);
   const [wildCardDomain, setWildCardDomain] = useState("")
   const [IPAllowList, setIPAllowList] = useState<string>("")
@@ -260,6 +261,7 @@ const ProvisionerSettings: React.FC<Props> = (props) => {
             region: awsRegion,
             loadBalancer: loadBalancerObj,
             logging: controlPlaneLogs,
+            enableGuardDuty: guardDutyEnabled,
             nodeGroups: [
               new EKSNodeGroup({
                 instanceType: "t3.medium",
@@ -428,6 +430,7 @@ const ProvisionerSettings: React.FC<Props> = (props) => {
         l.enableSchedulerLogs = eksValues.logging.enableSchedulerLogs;
         setControlPlaneLogs(l);
       }
+      setGuardDutyEnabled(eksValues.enableGuardDuty)
     }
 
   }, [isExpanded, props.selectedClusterVersion]);

+ 1 - 1
go.mod

@@ -76,7 +76,7 @@ require (
 	github.com/honeycombio/otel-launcher-go v0.2.0
 	github.com/nats-io/nats.go v1.24.0
 	github.com/open-policy-agent/opa v0.44.0
-	github.com/porter-dev/api-contracts v0.0.68
+	github.com/porter-dev/api-contracts v0.0.70
 	github.com/riandyrn/otelchi v0.5.1
 	github.com/santhosh-tekuri/jsonschema/v5 v5.0.1
 	github.com/stefanmcshane/helm v0.0.0-20221213002717-88a4a2c6e77d

+ 2 - 2
go.sum

@@ -1490,8 +1490,8 @@ github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77
 github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
 github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
 github.com/polyfloyd/go-errorlint v0.0.0-20210722154253-910bb7978349/go.mod h1:wi9BfjxjF/bwiZ701TzmfKu6UKC357IOAtNr0Td0Lvw=
-github.com/porter-dev/api-contracts v0.0.68 h1:8RZBu7ZImjf0KTao7NPAfB0FQ2cjwGE6sz5SqbutLDM=
-github.com/porter-dev/api-contracts v0.0.68/go.mod h1:qr2L58mJLr5DUGV5OPw3REiSrQvJq6TgkKyEWP95dyU=
+github.com/porter-dev/api-contracts v0.0.70 h1:7Qj+wCehQDhAQyqoTNDeJXlKXYPzPenceR98ygTz2oo=
+github.com/porter-dev/api-contracts v0.0.70/go.mod h1:qr2L58mJLr5DUGV5OPw3REiSrQvJq6TgkKyEWP95dyU=
 github.com/porter-dev/switchboard v0.0.0-20221019155755-67ff2bf04935 h1:hfb3nt3AJXIBbevu6ARTg9SdOkMP6WLbKBiG5hT5rcc=
 github.com/porter-dev/switchboard v0.0.0-20221019155755-67ff2bf04935/go.mod h1:xSPzqSFMQ6OSbp42fhCi4AbGbQbsm6nRvOkrblFeXU4=
 github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=