/api

API, CRD's and Go client for Maistra definitions

Primary LanguageGoApache License 2.0Apache-2.0

Maistra API and Go client

This repository contains Go API, Kubernetes CRD's and a Go client for dealing with Maistra objects.

Documentation

Refer to the API documentation to learn more about the role of each resource.

Tree hierarchy

API

The API itself is contained in these directories, with a version (e.g. v1 or v2) as subdirs.

  • core/v1: Contains the following types:
    • ServiceMeshControlPlane
    • ServiceMeshExtension
    • ServiceMeshMember
    • ServiceMeshMemberRoll.
  • core/v1alpha1: Contains the following types:
    • ServiceMeshExtension
    • ServiceExports
    • MeshFederation.
  • core/v2: Contains the following types:
    • ServiceMeshControlPlane.

CRDs

  • manifests: Holds the CRD yaml files for Maistra types.

Go client

  • client/versioned: Clientset
  • client/listers: Listers
  • client/informers: informers

Examples

  • example: Full example of how to use the Go client and the API.

Vendor

  • Vendored dependencies

Development

Most of the files are autogenerated. After making changes to the relevant files, just run make (or make clean gen) and commit all the result.