...

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

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

     1label: Config Connector StorageBucket
     2markdownDescription: Creates yaml for a StorageBucket resource
     3insertText: |
     4  apiVersion: storage.cnrm.cloud.google.com/v1beta1
     5  kind: StorageBucket
     6  metadata:
     7    labels:
     8      \${1:label-one}: \${2:value-one}
     9    name: \${3:storagebucket-name}
    10  spec:
    11    lifecycleRule:
    12    - action:
    13        type: \${4:Delete}
    14      condition:
    15        age: \${5:7}
    16        withState: \${6:ANY}
    17    versioning:
    18      enabled: \${7:true}
    19    cors:
    20    - origin:
    21      - \${8:http://example.appspot.com}
    22      responseHeader:
    23      - \${9:Content-Type}
    24      method:
    25      - \${10:GET}
    26      - \${11:HEAD}
    27      - \${12:DELETE}
    28      maxAgeSeconds: \${13:3600}
    29    uniformBucketLevelAccess: \${14:true}

View as plain text