Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languageyml
apiVersion: bpa.akraino.org/v1alpha1
kind: Provisioningsoftware
metadata:
  name: provisioningsoftware-sample
  labels:
    cluster: cluster-abc
    owner: c1
spec:
  mastersmaster:
   - mastersoftwareFrom:
      mac-address configMapRef: 00:c6:14:04:61:b2
  workers
         name: master-configmap
  worker:
     softwareFrom:
      - workerconfigMapRef:
       mac-address: 00:c6:14:04:61:b2  name: worker-configmap

Cluster CRD

The cluster CRD will have the Cluster name and contain the provisioning CR and/or the software CR for the specified cluster

...

Code Block
languageyml
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
  name: cluster.bpa.akraino.org
spec:
  group: bpa.akraino.org
  names:
    kind: cluster
    listKind: clusterList
    plural: clusters
    singular: cluster
    shortNames:
    - cl
  scope: Namespaced
  subresources:
    status: {}
  validation:
    openAPIV3Schema:
      properties:
        apiVersion:
          description: 
          type: string
        kind:
          description: 
          type: string
        metadata:
          type: object
        spec:
          type: object
        status:
          type: object
  version: v1alpha1
  versions:
  - name: v1alpha1
    served: true
    storage: true

 Sample Cluster CR YAML files


Code Block
languageyml
apiVersion: bpa.akraino.org/v1alpha1
kind: cluster
metadata:
  name: cluster-sample
  labels:
    cluster: cluster-abc
    owner: c1
spec:
   provisioningCR: "provisioning-sample"
   softwareCR: "software-sample"

Open Questions

  1. How does the BPA operator get the SSH information of the compute hosts ?

...