github.com/verrazzano/verrazzano@v1.7.1/tests/e2e/clusterapi/capi/templates/cluster-template-addons.yaml (about)

     1  # Copyright (c) 2023, Oracle and/or its affiliates.
     2  # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
     3  
     4  apiVersion: addons.cluster.x-k8s.io/v1beta1
     5  kind: ClusterResourceSet
     6  metadata:
     7    name: ${CLUSTER_NAME}-ccm-secret
     8    namespace: ${CLUSTER_NAMESPACE}
     9  spec:
    10    clusterSelector:
    11      matchLabels:
    12        cluster.x-k8s.io/cluster-name: ${CLUSTER_NAME}
    13    resources:
    14      - kind: Secret
    15        name: ${CLUSTER_NAME}-oci-cloud-controller-manager
    16      - kind: Secret
    17        name: ${CLUSTER_NAME}-oci-csi
    18      - kind: ConfigMap
    19        name: ${CLUSTER_NAME}-ccm-module-cr
    20      - kind: ConfigMap
    21        name: ${CLUSTER_NAME}-calico-module-cr
    22      - kind: ConfigMap
    23        name: ${CLUSTER_NAME}-vpo-cm-test-overrides
    24      - kind: Secret
    25        name: ${CLUSTER_NAME}-vpo-secret-test-overrides
    26    strategy: Reconcile
    27  ---
    28  apiVersion: v1
    29  stringData:
    30    cloud-controller-manager.yaml: |
    31      apiVersion: v1
    32      kind: Secret
    33      metadata:
    34        name: oci-cloud-controller-manager
    35        namespace: kube-system
    36      stringData:
    37        cloud-provider.yaml: |-
    38          auth:
    39            region: ${OCI_REGION}
    40            tenancy: ${OCI_TENANCY_ID}
    41            compartment: ${OCI_COMPARTMENT_ID}
    42            user: ${OCI_USER_ID}
    43            key: "${OCI_CREDENTIALS_KEY}"
    44            fingerprint: ${OCI_CREDENTIALS_FINGERPRINT}
    45            key_passphrase:
    46          vcn: ${OCI_VCN_ID}
    47          loadBalancer:
    48            subnet1: ${OCI_SUBNET_ID}
    49            securityListManagementMode: All
    50            disableSecurityListManagement: false
    51          useInstancePrincipals: false
    52          # compartment configures Compartment within which the cluster resides.
    53          compartment: ${OCI_COMPARTMENT_ID}
    54          # Optional rate limit controls for accessing OCI API
    55          rateLimiter:
    56            rateLimitQPSRead: 20.0
    57            rateLimitBucketRead: 5
    58            rateLimitQPSWrite: 20.0
    59            rateLimitBucketWrite: 5
    60  kind: Secret
    61  type: addons.cluster.x-k8s.io/resource-set
    62  metadata:
    63    annotations:
    64      note: generated
    65    labels:
    66      type: generated
    67    name: ${CLUSTER_NAME}-oci-cloud-controller-manager
    68    namespace: ${CLUSTER_NAMESPACE}
    69  ---
    70  apiVersion: v1
    71  stringData:
    72    csi.yaml: |
    73      apiVersion: v1
    74      kind: Secret
    75      metadata:
    76        name: oci-volume-provisioner
    77        namespace: kube-system
    78      stringData:
    79        config.yaml: |-
    80          auth:
    81            region: ${OCI_REGION}
    82            tenancy: ${OCI_TENANCY_ID}
    83            compartment: ${OCI_COMPARTMENT_ID}
    84            user: ${OCI_USER_ID}
    85            key: "${OCI_CREDENTIALS_KEY}"
    86            fingerprint: ${OCI_CREDENTIALS_FINGERPRINT}
    87            key_passphrase:
    88          vcn: ${OCI_VCN_ID}
    89          loadBalancer:
    90            subnet1: ${OCI_SUBNET_ID}
    91            securityListManagementMode: All
    92            disableSecurityListManagement: false
    93          useInstancePrincipals: false
    94          # compartment configures Compartment within which the cluster resides.
    95          compartment: ${OCI_COMPARTMENT_ID}
    96          # Optional rate limit controls for accessing OCI API
    97          rateLimiter:
    98            rateLimitQPSRead: 20.0
    99            rateLimitBucketRead: 5
   100            rateLimitQPSWrite: 20.0
   101            rateLimitBucketWrite: 5
   102  kind: Secret
   103  type: addons.cluster.x-k8s.io/resource-set
   104  metadata:
   105    annotations:
   106      note: generated
   107    labels:
   108      type: generated
   109    name: ${CLUSTER_NAME}-oci-csi
   110    namespace: ${CLUSTER_NAMESPACE}
   111  ---
   112  apiVersion: v1
   113  data:
   114    ccm-module.yaml: |
   115      apiVersion: platform.verrazzano.io/v1alpha1
   116      kind: Module
   117      metadata:
   118        name: oci-ccm
   119        namespace: default
   120      spec:
   121        moduleName: oci-ccm
   122        targetNamespace: kube-system
   123  kind: ConfigMap
   124  metadata:
   125    annotations:
   126      note: generated
   127    labels:
   128      type: generated
   129    name: ${CLUSTER_NAME}-ccm-module-cr
   130    namespace: ${CLUSTER_NAMESPACE}
   131  ---
   132  apiVersion: v1
   133  data:
   134    calico.yaml: |
   135      apiVersion: platform.verrazzano.io/v1alpha1
   136      kind: Module
   137      metadata:
   138        name: calico
   139        namespace: default
   140      spec:
   141        moduleName: calico
   142        targetNamespace: default
   143        values:
   144          tigeraOperator:
   145            version: ${TIGERA_TAG=v1.29.0}
   146          installation:
   147            cni:
   148              type: Calico
   149            calicoNetwork:
   150              bgp: Disabled
   151              ipPools:
   152                - cidr: ${POD_CIDR}
   153                  encapsulation: VXLAN
   154            registry: ${OCNE_IMAGE_REPOSITORY}
   155            imagePath: ${OCNE_IMAGE_PATH}
   156  kind: ConfigMap
   157  metadata:
   158    annotations:
   159      note: generated
   160    labels:
   161      type: generated
   162    name: ${CLUSTER_NAME}-calico-module-cr
   163    namespace: ${CLUSTER_NAMESPACE}
   164  ---
   165  apiVersion: v1
   166  data:
   167    test-overrides-configmap.yaml: |
   168      apiVersion: v1
   169      data:
   170        test-overrides-configmap.yaml: |-
   171          # Copyright (c) 2022, Oracle and/or its affiliates.
   172          # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
   173  
   174          prometheusOperator:
   175            podLabels:
   176              override: "true"
   177      kind: ConfigMap
   178      metadata:
   179        name: test-overrides
   180        namespace: default
   181  kind: ConfigMap
   182  metadata:
   183    annotations:
   184      note: generated
   185    labels:
   186      type: generated
   187    name: ${CLUSTER_NAME}-vpo-cm-test-overrides
   188    namespace: ${CLUSTER_NAMESPACE}
   189  ---
   190  apiVersion: v1
   191  stringData:
   192    test-overrides-secret.yaml: |
   193      apiVersion: v1
   194      stringData:
   195        test-overrides-secret.yaml: |-
   196          # Copyright (c) 2022, Oracle and/or its affiliates.
   197          # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
   198  
   199          prometheusOperator:
   200            podAnnotations:
   201              override: "true"
   202      kind: Secret
   203      metadata:
   204        name: test-overrides
   205        namespace: default
   206      type: Opaque
   207  kind: Secret
   208  type: addons.cluster.x-k8s.io/resource-set
   209  metadata:
   210    annotations:
   211      note: generated
   212    labels:
   213      type: generated
   214    name: ${CLUSTER_NAME}-vpo-secret-test-overrides
   215    namespace: ${CLUSTER_NAMESPACE}