...

Text file src/github.com/GoogleCloudPlatform/k8s-config-connector/operator/config/crd/crd_patch.yaml

Documentation: github.com/GoogleCloudPlatform/k8s-config-connector/operator/config/crd

     1# Copyright 2022 Google LLC
     2#
     3# Licensed under the Apache License, Version 2.0 (the "License");
     4# you may not use this file except in compliance with the License.
     5# You may obtain a copy of the License at
     6#
     7#      http://www.apache.org/licenses/LICENSE-2.0
     8#
     9# Unless required by applicable law or agreed to in writing, software
    10# distributed under the License is distributed on an "AS IS" BASIS,
    11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12# See the License for the specific language governing permissions and
    13# limitations under the License.
    14
    15- op: add
    16  path: /spec/versions/0/schema/openAPIV3Schema/properties/spec/anyOf
    17  value:
    18    - properties:
    19        mode:
    20          enum:
    21          - cluster
    22      oneOf:
    23      - not:
    24          required:
    25          - googleServiceAccount
    26        required:
    27        - credentialSecretName
    28      - not:
    29          required:
    30          - credentialSecretName
    31        required:
    32        - googleServiceAccount
    33    - properties:
    34        mode:
    35          enum:
    36          - namespaced
    37      not:
    38        anyOf:
    39        - required:
    40          - googleServiceAccount
    41        - required:
    42          - credentialSecretName

View as plain text