4465c2062a
This commit implements NP driver actions for creating/updating SG and SG rules. It also creates KuryrNetPolicy as a CRD so we don't have to rely on the slow neutron API for time-costly operations such as listing SG and so. Security group rules and label matching will be handled in a follow-up patch, as well as storing CRD object_id in a network policy annotation. Unit tests will also be added after some more functionality is added with the remaining patch series. Partially-Implements: bp/k8s-network-policies Change-Id: I6d45a462e812b24073b529144fc0843e8725a06e
15 lines
304 B
YAML
15 lines
304 B
YAML
apiVersion: apiextensions.k8s.io/v1beta1
|
|
kind: CustomResourceDefinition
|
|
metadata:
|
|
name: kuryrnetpolicies.openstack.org
|
|
spec:
|
|
group: openstack.org
|
|
version: v1
|
|
scope: Namespaced
|
|
names:
|
|
plural: kuryrnetpolicies
|
|
singular: kuryrnetpolicy
|
|
kind: KuryrNetPolicy
|
|
shortNames:
|
|
- knp
|