apiVersion: core.oam.dev/v1beta1
kind: Application
metadata:
  name: app-ID
  namespace: load-test-SHARD
  labels:
    controller.core.oam.dev/scheduled-shard-id: shard-SHARD
spec:
  components:
    - name: app-ID-vVERSION-c1
      type: webservice
      properties:
        image: nginx
      traits:
        - type: scaler
          properties:
            replicas: 0
    - name: app-ID-vVERSION-c2
      type: webservice
      properties:
        image: nginx
      traits:
        - type: scaler
          properties:
            replicas: 0
    - name: app-ID-vVERSION-c3
      type: worker
      properties:
        image: nginx
      traits:
        - type: scaler
          properties:
            replicas: 0
    - name: secret-ID
      type: k8s-objects
      properties:
        objects:
          - apiVersion: v1
            kind: Secret
            metadata:
              name: secret-ID-s1
            stringData:
              id: "ID"
              shard: "SHARD"
          - apiVersion: v1
            kind: Secret
            metadata:
              name: secret-ID-s2
            stringData:
              id: "ID"
              shard: "SHARD"
          - apiVersion: v1
            kind: Secret
            metadata:
              name: secret-ID-s3
            stringData:
              id: "ID"
              shard: "SHARD"
          - apiVersion: v1
            kind: ConfigMap
            metadata:
              name: cm-ID-c1
            data:
              id: "ID"
              shard: "SHARD"
              version: "VERSION"
          - apiVersion: v1
            kind: ConfigMap
            metadata:
              name: cm-ID-c2
            data:
              id: "ID"
              shard: "SHARD"
              version: "VERSION"
          - apiVersion: v1
            kind: ConfigMap
            metadata:
              name: cm-ID-c3
            data:
              id: "ID"
              shard: "SHARD"
              version: "VERSION"
          - apiVersion: v1
            kind: ConfigMap
            metadata:
              name: cm-ID-c4
            data:
              id: "ID"
              shard: "SHARD"
              version: "VERSION"