...

Text file src/github.com/GoogleCloudPlatform/k8s-config-connector/config/cloudcodesnippets/compute_v1beta1_computefirewallpolicyrule.yaml

Documentation: github.com/GoogleCloudPlatform/k8s-config-connector/config/cloudcodesnippets

     1label: Config Connector ComputeFirewallPolicyRule
     2markdownDescription: Creates yaml for a ComputeFirewallPolicyRule resource
     3insertText: |
     4  apiVersion: compute.cnrm.cloud.google.com/v1beta1
     5  kind: ComputeFirewallPolicyRule
     6  metadata:
     7    name: \${1:computefirewallpolicyrule-name}
     8  spec:
     9    action: \${2:deny}
    10    description: \${3:A Firewall Policy Rule}
    11    direction: \${4:INGRESS}
    12    disabled: \${5:false}
    13    enableLogging: \${6:false}
    14    firewallPolicyRef:
    15      name: \${7:firewallpolicyrule-dep}
    16    match:
    17      layer4Configs:
    18      - ipProtocol: \${8:tcp}
    19      srcIPRanges:
    20      - \${9:10.100.0.1/32}
    21    priority: \${10:9000}
    22    targetResources:
    23    - name: \${11:firewallpolicyrule-dep}
    24    targetServiceAccounts:
    25    - name: \${12:firewallpolicyrule-dep}

View as plain text