Skip to content

Commit

Permalink
Add mandatory Gateway API label to the AuthPolicy CRD (#279)
Browse files Browse the repository at this point in the history
Closes #278
  • Loading branch information
guicassolato committed Oct 20, 2023
1 parent 420b198 commit 00c644e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/v1beta2/authpolicy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ func (s *AuthPolicyStatus) Equals(other *AuthPolicyStatus, logger logr.Logger) b

// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:metadata:labels="gateway.networking.k8s.io/policy=inherited"
type AuthPolicy struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ metadata:
capabilities: Basic Install
categories: Integration & Delivery
containerImage: quay.io/kuadrant/kuadrant-operator:latest
createdAt: "2023-10-20T10:35:49Z"
createdAt: "2023-10-20T10:36:08Z"
operators.operatorframework.io/builder: operator-sdk-v1.28.1
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/Kuadrant/kuadrant-operator
Expand Down
1 change: 1 addition & 0 deletions bundle/manifests/kuadrant.io_authpolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
creationTimestamp: null
labels:
app: kuadrant
gateway.networking.k8s.io/policy: inherited
name: authpolicies.kuadrant.io
spec:
group: kuadrant.io
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/kuadrant.io_authpolicies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.13.0
labels:
gateway.networking.k8s.io/policy: inherited
name: authpolicies.kuadrant.io
spec:
group: kuadrant.io
Expand Down

0 comments on commit 00c644e

Please sign in to comment.