...

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

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

     1label: Config Connector PrivateCACertificateTemplate
     2markdownDescription: Creates yaml for a PrivateCACertificateTemplate resource
     3insertText: |
     4  apiVersion: privateca.cnrm.cloud.google.com/v1beta1
     5  kind: PrivateCACertificateTemplate
     6  metadata:
     7    labels:
     8      \${1:label-two}: \${2:value-two}
     9    name: \${3:privatecacertificatetemplate-name}
    10  spec:
    11    projectRef:
    12      external: \${4:projects/[PROJECT_ID?]}
    13    location: \${5:us-central1}
    14    predefinedValues:
    15      keyUsage:
    16        baseKeyUsage:
    17          digitalSignature: \${6:true}
    18          contentCommitment: \${7:true}
    19          keyEncipherment: \${8:true}
    20          dataEncipherment: \${9:true}
    21          keyAgreement: \${10:true}
    22          certSign: \${11:false}
    23          crlSign: \${12:false}
    24          encipherOnly: \${13:true}
    25          decipherOnly: \${14:true}
    26        extendedKeyUsage:
    27          serverAuth: \${15:true}
    28          clientAuth: \${16:true}
    29          codeSigning: \${17:true}
    30          emailProtection: \${18:true}
    31          timeStamping: \${19:true}
    32          ocspSigning: \${20:true}
    33        unknownExtendedKeyUsages:
    34        - objectIdPath:
    35          - \${21:1}
    36          - \${22:6}
    37      caOptions:
    38        isCa: \${23:false}
    39        maxIssuerPathLength: \${24:6}
    40      policyIds:
    41      - objectIdPath:
    42        - \${25:1}
    43        - \${26:6}
    44      aiaOcspServers:
    45      - \${27:string}
    46      additionalExtensions:
    47      - objectId:
    48          objectIdPath:
    49          - \${28:1}
    50          - \${29:6}
    51        critical: \${30:true}
    52        value: \${31:c3RyaW5nCg==}
    53    identityConstraints:
    54      celExpression:
    55        title: \${32:Sample expression}
    56        description: \${33:Always true}
    57        expression: \${34:true}
    58        location: \${35:any.file.anywhere}
    59      allowSubjectPassthrough: \${36:true}
    60      allowSubjectAltNamesPassthrough: \${37:true}
    61    passthroughExtensions:
    62      knownExtensions:
    63      - \${38:EXTENDED_KEY_USAGE}
    64      additionalExtensions:
    65      - objectIdPath:
    66        - \${39:1}
    67        - \${40:6}
    68    description: \${41:An basic sample certificate template}

View as plain text