Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create HPP Direct CRDs always #1206

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 0 additions & 6 deletions provision/acc_provision/templates/aci-containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1208,7 +1208,6 @@ spec:
type: object
---
{% endif %} #}
{% if config.kube_config.enable_hpp_direct %}
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
Expand Down Expand Up @@ -1371,7 +1370,6 @@ spec:
value:
type: string
---
{% endif %}
{% if config.kube_config.proactive_conf %}
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
Expand Down Expand Up @@ -3379,7 +3377,6 @@ and aci-containers-operator images for istio.io/istio package
- update
- patch
{% endif %}
{% if config.kube_config.enable_hpp_direct %}
- apiGroups:
- "aci.hpp"
resources:
Expand All @@ -3392,7 +3389,6 @@ and aci-containers-operator images for istio.io/istio package
- create
- update
- delete
{% endif %}
{% if config.kube_config.proactive_conf %}
- apiGroups:
- "aci.pc"
Expand Down Expand Up @@ -3584,7 +3580,6 @@ rules:
- list
- watch
{% endif %}
{% if config.kube_config.enable_hpp_direct %}
- apiGroups:
- "aci.hpp"
resources:
Expand All @@ -3594,7 +3589,6 @@ rules:
- list
- watch
- get
{% endif %}
{% if config.kube_config.proactive_conf %}
- apiGroups:
- "aci.pc"
Expand Down
171 changes: 170 additions & 1 deletion provision/testdata/acc_provision_operator_exclude.kube.yaml

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

171 changes: 170 additions & 1 deletion provision/testdata/base_case.kube.yaml

Large diffs are not rendered by default.

171 changes: 170 additions & 1 deletion provision/testdata/base_case_ipv6.kube.yaml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion provision/testdata/base_case_operator_cr.kube.yaml

Large diffs are not rendered by default.

171 changes: 170 additions & 1 deletion provision/testdata/base_case_operator_mode.kube.yaml

Large diffs are not rendered by default.

171 changes: 170 additions & 1 deletion provision/testdata/base_case_snat.kube.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: hostprotpols.aci.hpp
spec:
group: aci.hpp
names:
kind: HostprotPol
listKind: HostprotPolList
plural: hostprotpols
singular: hostprotpol
scope: Namespaced
versions:
- name: v1
schema:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object.Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
hostprotSubj:
items:
properties:
hostprotRule:
items:
properties:
connTrack:
description: ConnTrack
type: string
direction:
description: Direction
type: string
ethertype:
description: Ethertype
type: string
fromPort:
description: FromPort
type: string
hostprotFilterContainer:
properties:
hostprotFilter:
items:
properties:
key:
type: string
operator:
type: string
values:
items:
type: string
type: array
type: object
type: array
type: object
hostprotServiceRemoteIps:
items:
type: string
type: array
name:
type: string
protocol:
description: Protocol
type: string
rsRemoteIpContainer:
items:
type: string
type: array
toPort:
description: ToPort
type: string
type: object
type: array
name:
type: string
type: object
type: array
name:
type: string
networkPolicies:
items:
type: string
type: array
type: object
type: object
served: true
storage: true
subresources:
status: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: hostprotremoteipcontainers.aci.hpp
spec:
group: aci.hpp
names:
kind: HostprotRemoteIpContainer
listKind: HostprotRemoteIpContainerList
plural: hostprotremoteipcontainers
singular: hostprotremoteipcontainer
scope: Namespaced
versions:
- name: v1
schema:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
properties:
hostprotRemoteIp:
items:
properties:
addr:
type: string
hppEpLabel:
items:
properties:
key:
type: string
value:
type: string
type: object
type: array
type: object
type: array
name:
type: string
type: object
type: object
served: true
storage: true
subresources:
status: {}

Large diffs are not rendered by default.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,15 @@ rules:
- create
- update
- delete
- apiGroups:
- aci.hpp
resources:
- hostprotpols
- hostprotremoteipcontainers
verbs:
- list
- watch
- get
- create
- update
- delete
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,6 @@ rules:
- watch
- get
- delete
- apiGroups:
- config.openshift.io
resources:
- infrastructures
verbs:
- get
- apiGroups:
- discovery.k8s.io
resources:
Expand All @@ -123,3 +117,12 @@ rules:
- nodepodifs
verbs:
- '*'
- apiGroups:
- aci.hpp
resources:
- hostprotpols
- hostprotremoteipcontainers
verbs:
- list
- watch
- get
Loading