Documentation
¶
Index ¶
Constants ¶
View Source
const ( ActionAllow = "allow" ActionDeny403 = "deny(403)" SecurityPolicyVersionedExpr = "SRC_IPS_V1" DefaultRuleDescription = "Default rule, higher priority overrides it" DefaultRuleIPRanges = "*" DefaultRulePriority = int32(math.MaxInt32) )
View Source
const AnnotationAPIAllowListSubnets = "api.gcp.giantswarm.io/allowlist"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(securityPolicies *compute.SecurityPoliciesClient, backendServices *compute.BackendServicesClient) *Client
func (*Client) ApplyPolicy ¶
func (*Client) DeletePolicy ¶
type ClusterNATIPResolver ¶
type Policy ¶
type Policy struct { Name string Description string DefaultAction string Rules []PolicyRule }
type PolicyReconciler ¶
type PolicyReconciler struct {
// contains filtered or unexported fields
}
func NewPolicyReconciler ¶
func NewPolicyReconciler( defaultAPIAllowList []string, managementCluster types.NamespacedName, securityPolicyClient SecurityPolicyClient, ipResolver ClusterNATIPResolver, ) *PolicyReconciler
func (*PolicyReconciler) Reconcile ¶
func (r *PolicyReconciler) Reconcile(ctx context.Context, cluster *capg.GCPCluster) error
func (*PolicyReconciler) ReconcileDelete ¶
func (r *PolicyReconciler) ReconcileDelete(ctx context.Context, cluster *capg.GCPCluster) error
type PolicyRule ¶
type SecurityPolicyClient ¶
Click to show internal directories.
Click to hide internal directories.