apis

module
v1.15.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2026 License: Apache-2.0

README

⚠️ This is a staged repository that is automatically synced to volcano-sh/apis.

Contributions, including issues and pull requests, should be made to the main Volcano repository: https://github.com/volcano-sh/volcano.

The volcano-sh/apis repository is read-only and used for importing only.

Introduction

volcano-sh/apis provides CRD types, informers, listers, and clientsets for Volcano custom resources.

For Users

To use Volcano APIs in your project:

import (
    vcbatch "volcano.sh/apis/pkg/apis/batch/v1alpha1"
    vcscheduling "volcano.sh/apis/pkg/apis/scheduling/v1beta1"
    vcclient "volcano.sh/apis/pkg/client/clientset/versioned"
)

For Developers

Making API Changes

  1. Clone the main Volcano repository:

    git clone https://github.com/volcano-sh/volcano.git
    
  2. Make changes in staging/src/volcano.sh/apis/

  3. Regenerate code if needed:

    cd staging/src/volcano.sh/apis
    bash ./hack/update-codegen.sh
    
  4. Submit a PR to the main Volcano repository

  5. After merge, changes will be automatically synced to volcano-sh/apis

Repository Structure

This staging directory contains only the API code. Repository-specific files are maintained separately:

  • Maintained in staging (synced to apis repo):

    • pkg/ - API definitions and generated code
    • hack/ - Code generation scripts
    • go.mod, go.sum - Go module files
    • README.md - Basic documentation
    • Community files: code_of_conduct.md, community-membership.md, contribute.md
  • Maintained only in volcano-sh/apis repo:

    • .github/ - GitHub workflows, issue templates
    • .gitignore - Repository-specific ignore patterns
    • GOVERNANCE.md - Governance documentation
    • OWNERS - Maintainer list
    • SECURITY.md - Security policy
    • LICENSE - License file

This separation ensures that repository governance and configuration remain independent between the main Volcano repository and the standalone APIs repository.

Directories

Path Synopsis
pkg
apis/batch/v1alpha1
Package v1alpha1 contains API Schema definitions for the batch v1alpha1 API group +kubebuilder:object:generate=true +groupName=batch.volcano.sh +k8s:deepcopy-gen=package +k8s:openapi-gen=true
Package v1alpha1 contains API Schema definitions for the batch v1alpha1 API group +kubebuilder:object:generate=true +groupName=batch.volcano.sh +k8s:deepcopy-gen=package +k8s:openapi-gen=true
apis/bus/v1alpha1
Package v1alpha1 contains API Schema definitions for the bus v1alpha1 API group +kubebuilder:object:generate=true +groupName=bus.volcano.sh +k8s:deepcopy-gen=package
Package v1alpha1 contains API Schema definitions for the bus v1alpha1 API group +kubebuilder:object:generate=true +groupName=bus.volcano.sh +k8s:deepcopy-gen=package
apis/config/v1alpha1
Package v1alpha1 contains API Schema definitions for the config v1alpha1 API group
Package v1alpha1 contains API Schema definitions for the config v1alpha1 API group
apis/datadependency/v1alpha1
Package v1alpha1 contains API Schema definitions for the datadependency v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=datadependency.volcano.sh
Package v1alpha1 contains API Schema definitions for the datadependency v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=datadependency.volcano.sh
apis/flow/v1alpha1
Package v1alpha1 contains API Schema definitions for the batch v1alpha1 API group +kubebuilder:object:generate=true +groupName=flow.volcano.sh +k8s:deepcopy-gen=package
Package v1alpha1 contains API Schema definitions for the batch v1alpha1 API group +kubebuilder:object:generate=true +groupName=flow.volcano.sh +k8s:deepcopy-gen=package
apis/nodeinfo/v1alpha1
Package v1alpha1 is the internal version of the API.
Package v1alpha1 is the internal version of the API.
apis/scheduling
Package scheduling is the internal version of the API.
Package scheduling is the internal version of the API.
apis/shard/v1alpha1
Package v1alpha1 is the v1alpha1 version of the NodeShard API.
Package v1alpha1 is the v1alpha1 version of the NodeShard API.
apis/topology/v1alpha1
+k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=topology.volcano.sh
+k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=topology.volcano.sh
apis/training/v1alpha1
Package v1alpha1 contains API Schema definitions for the training v1alpha1 API group +kubebuilder:object:generate=true +groupName=training.volcano.sh +k8s:deepcopy-gen=package +k8s:openapi-gen=true
Package v1alpha1 contains API Schema definitions for the training v1alpha1 API group +kubebuilder:object:generate=true +groupName=training.volcano.sh +k8s:deepcopy-gen=package +k8s:openapi-gen=true
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/batch/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/batch/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
client/clientset/versioned/typed/bus/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/bus/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
client/clientset/versioned/typed/config/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/config/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
client/clientset/versioned/typed/datadependency/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/datadependency/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
client/clientset/versioned/typed/flow/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/flow/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
client/clientset/versioned/typed/nodeinfo/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/nodeinfo/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
client/clientset/versioned/typed/scheduling/v1beta1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/scheduling/v1beta1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
client/clientset/versioned/typed/shard/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/shard/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
client/clientset/versioned/typed/topology/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/topology/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
client/clientset/versioned/typed/training/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/training/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL