Calico API
Go to file
Daniel Fox 759a4c3213
Merge pull request #86 from danudey/dfox-update-add-labels-master
Add labels to github PR
2025-03-26 12:39:36 -07:00
.github Start building Calico API repo 2021-06-08 10:24:31 +01:00
.semaphore Update to ubuntu 22.04 CI image 2025-03-26 10:19:52 -07:00
build Automatic API update from projectcalico/calico master 2024-11-06 09:26:48 -08:00
examples/list-gnp Automatic API update from projectcalico/calico master 2024-11-06 09:26:48 -08:00
hack Pull in changes from projectcalico/calico 2022-01-28 14:16:39 -08:00
pkg Update API files while we're at it 2025-03-26 10:23:03 -07:00
.gitignore add wireguard prometheus stats feature flag 2021-06-23 14:38:09 +01:00
LICENSE Start building Calico API repo 2021-06-08 10:24:31 +01:00
Makefile Update API files while we're at it 2025-03-26 10:23:03 -07:00
Makefile.local Add labels to github PR 2025-03-26 10:15:15 -07:00
README.md Update API to match v3.26.0 2023-06-02 10:07:44 +02:00
go.mod Update API files while we're at it 2025-03-26 10:23:03 -07:00
go.sum Update API files while we're at it 2025-03-26 10:23:03 -07:00
lib.Makefile Update API files while we're at it 2025-03-26 10:23:03 -07:00
metadata.mk Update API files while we're at it 2025-03-26 10:23:03 -07:00

README.md

projectcalico/api

This is canonical source for API definitions of Projectcalico.

How to use

One way is to import the clientset directly and use it. See examples/list-gnp/main.go for some example code.

Adding new APIs

  1. Create a .go file which contains the new type to pkg/apis/<apigroup>/<version>

  2. Add the new type to pkg/apis/<apigroup>/<version>/register.go

  3. Update generated code, including clients, informers, etc.

    make build