Skip to content

Commit

Permalink
feat: Include Linkerd flags and config in the enforcement config
Browse files Browse the repository at this point in the history
Signed-off-by: aerosouund <[email protected]>
  • Loading branch information
ammar committed Aug 19, 2024
1 parent e74bd64 commit cc16b4f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/shared/operatorconfig/enforcement/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ const (
EnableNetworkPolicyDefault = true
EnableIstioPolicyKey = "enable-istio-policy-creation" // Whether to enable Istio authorization policy creation
EnableIstioPolicyDefault = true
EnableLinkerdPolicyKey = "enable-linkerd-policy"
EnableLinkerdPolicyDefault = true
EnableKafkaACLKey = "enable-kafka-acl-creation" // Whether to disable Intents Kafka ACL creation
EnableKafkaACLDefault = true
EnableDatabasePolicy = "enable-database-policy-creation" // Whether to enable the new database reconciler
Expand Down Expand Up @@ -59,6 +61,7 @@ func InitCLIFlags() {
pflag.Bool(EnableKafkaACLKey, EnableKafkaACLDefault, "Whether to disable Intents Kafka ACL creation")
pflag.StringSlice(ActiveEnforcementNamespacesKey, nil, "While using the shadow enforcement mode, namespaces in this list will be treated as if the enforcement were active.")
pflag.Bool(EnableIstioPolicyKey, EnableIstioPolicyDefault, "Whether to enable Istio authorization policy creation")
pflag.Bool(EnableLinkerdPolicyKey, EnableLinkerdPolicyDefault, "Whether to enable Linkerd policy creation")
pflag.Bool(EnableDatabasePolicy, EnableDatabasePolicyDefault, "Enable the database reconciler")
pflag.Bool(EnableEgressNetworkPolicyReconcilersKey, EnableEgressNetworkPolicyReconcilersDefault, "Experimental - enable the generation of egress network policies alongside ingress network policies")
pflag.Bool(EnableAWSPolicyKey, EnableAWSPolicyDefault, "Enable the AWS IAM reconciler")
Expand All @@ -70,6 +73,7 @@ func GetConfig() Config {
EnableNetworkPolicy: viper.GetBool(EnableNetworkPolicyKey),
EnableKafkaACL: viper.GetBool(EnableKafkaACLKey),
EnableIstioPolicy: viper.GetBool(EnableIstioPolicyKey),
EnableLinkerdPolicies: viper.GetBool(EnableLinkerdPolicyKey),
EnableDatabasePolicy: viper.GetBool(EnableDatabasePolicy),
EnableEgressNetworkPolicyReconcilers: viper.GetBool(EnableEgressNetworkPolicyReconcilersKey),
EnableAWSPolicy: viper.GetBool(EnableAWSPolicyKey),
Expand Down

0 comments on commit cc16b4f

Please sign in to comment.