Skip to content

Commit 374f4fb

Browse files
AWS ACK Feature Flag (#4000)
1 parent 88c8455 commit 374f4fb

File tree

4 files changed

+11
-3
lines changed

4 files changed

+11
-3
lines changed

api/types/project.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ type Project struct {
4646
ValidateApplyV2 bool `json:"validate_apply_v2"`
4747
QuotaIncrease bool `json:"quota_increase"`
4848
BetaFeaturesEnabled bool `json:"beta_features_enabled"`
49+
AWSACKAuthEnabled bool `json:"aws_ack_auth_enabled"`
4950
}
5051

5152
type FeatureFlags struct {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ require (
8383
github.com/matryer/is v1.4.0
8484
github.com/nats-io/nats.go v1.24.0
8585
github.com/open-policy-agent/opa v0.44.0
86-
github.com/porter-dev/api-contracts v0.2.51
86+
github.com/porter-dev/api-contracts v0.2.53
8787
github.com/riandyrn/otelchi v0.5.1
8888
github.com/santhosh-tekuri/jsonschema/v5 v5.0.1
8989
github.com/stefanmcshane/helm v0.0.0-20221213002717-88a4a2c6e77d

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,8 +1520,8 @@ github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0/go.mod h1:iKH77
15201520
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
15211521
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
15221522
github.com/polyfloyd/go-errorlint v0.0.0-20210722154253-910bb7978349/go.mod h1:wi9BfjxjF/bwiZ701TzmfKu6UKC357IOAtNr0Td0Lvw=
1523-
github.com/porter-dev/api-contracts v0.2.51 h1:xGl2i+djCwGoenK/AIwVNtBgGZhnnxklNJry0jwror0=
1524-
github.com/porter-dev/api-contracts v0.2.51/go.mod h1:fX6JmP5QuzxDLvqP3evFOTXjI4dHxsG0+VKNTjImZU8=
1523+
github.com/porter-dev/api-contracts v0.2.53 h1:dksPN2aPsN/LT97b0pMXqbGt2E/0YKJt0o0XR1ipqNs=
1524+
github.com/porter-dev/api-contracts v0.2.53/go.mod h1:fX6JmP5QuzxDLvqP3evFOTXjI4dHxsG0+VKNTjImZU8=
15251525
github.com/porter-dev/switchboard v0.0.3 h1:dBuYkiVLa5Ce7059d6qTe9a1C2XEORFEanhbtV92R+M=
15261526
github.com/porter-dev/switchboard v0.0.3/go.mod h1:xSPzqSFMQ6OSbp42fhCi4AbGbQbsm6nRvOkrblFeXU4=
15271527
github.com/posener/complete v1.1.1/go.mod h1:em0nMJCgc9GFtwrmVmEMR/ZL6WyhyjMBndrE9hABlRI=

internal/models/project.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ const (
6969

7070
// BetaFeaturesEnabled controls whether a project uses beta features
7171
BetaFeaturesEnabled FeatureFlagLabel = "beta_features_enabled"
72+
73+
// AWSACKAuthEnabled controls whether a project's AWS access is governed through AWS ACK
74+
AWSACKAuthEnabled FeatureFlagLabel = "aws_ack_auth_enabled"
7275
)
7376

7477
// ProjectFeatureFlags keeps track of all project-related feature flags
@@ -91,6 +94,7 @@ var ProjectFeatureFlags = map[FeatureFlagLabel]bool{
9194
StacksEnabled: false,
9295
ValidateApplyV2: true,
9396
BetaFeaturesEnabled: false,
97+
AWSACKAuthEnabled: false,
9498
}
9599

96100
type ProjectPlan string
@@ -225,6 +229,8 @@ func (p *Project) GetFeatureFlag(flagName FeatureFlagLabel, launchDarklyClient *
225229
return p.ValidateApplyV2
226230
case "efs_enabled":
227231
return false
232+
case "aws_ack_auth_enabled":
233+
return false
228234
}
229235
}
230236

@@ -270,6 +276,7 @@ func (p *Project) ToProjectType(launchDarklyClient *features.Client) types.Proje
270276
QuotaIncrease: p.GetFeatureFlag(QuotaIncrease, launchDarklyClient),
271277
EFSEnabled: p.GetFeatureFlag(EFSEnabled, launchDarklyClient),
272278
BetaFeaturesEnabled: p.GetFeatureFlag(BetaFeaturesEnabled, launchDarklyClient),
279+
AWSACKAuthEnabled: p.GetFeatureFlag(AWSACKAuthEnabled, launchDarklyClient),
273280
}
274281
}
275282

0 commit comments

Comments
 (0)