Skip to content

Commit

Permalink
Add descriptions and samples to CSV
Browse files Browse the repository at this point in the history
  • Loading branch information
grzpiotrowski committed Dec 11, 2023
1 parent 13c75de commit a6fa760
Show file tree
Hide file tree
Showing 7 changed files with 167 additions and 6 deletions.
95 changes: 89 additions & 6 deletions bundle/manifests/kuadrant-operator.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,78 @@ metadata:
annotations:
alm-examples: |-
[
{
"apiVersion": "kuadrant.io/v1alpha1",
"kind": "DNSPolicy",
"metadata": {
"name": "dnspolicy-sample"
},
"spec": {
"routingStrategy": "simple",
"targetRef": {
"group": "gateway.networking.k8s.io",
"kind": "Gateway",
"name": "prod-web"
}
}
},
{
"apiVersion": "kuadrant.io/v1alpha1",
"kind": "DNSRecord",
"metadata": {
"name": "echo.apps.hcpapps.net",
"namespace": "gw-namespace"
},
"spec": {
"endpoints": [
{
"dnsName": "echo.apps.hcpapps.net",
"recordTTL": 60,
"recordType": "A",
"targets": [
"172.31.201.1",
"172.31.202.1"
]
}
],
"managedZone": {
"name": "apps.hcpapps.net"
}
}
},
{
"apiVersion": "kuadrant.io/v1alpha1",
"kind": "ManagedZone",
"metadata": {
"name": "managedzone-sample"
},
"spec": {
"description": "apps.hcpapps.net managed domain",
"dnsProviderSecretRef": {
"name": "my-aws-credentials"
},
"domainName": "apps.hcpapps.net"
}
},
{
"apiVersion": "kuadrant.io/v1alpha1",
"kind": "TLSPolicy",
"metadata": {
"name": "tlspolicy-sample"
},
"spec": {
"issuerRef": {
"group": "cert-manager.io",
"kind": "ClusterIssuer",
"name": "glbc-ca"
},
"targetRef": {
"group": "gateway.networking.k8s.io",
"kind": "Gateway",
"name": "prod-web"
}
}
},
{
"apiVersion": "kuadrant.io/v1beta1",
"kind": "Kuadrant",
Expand Down Expand Up @@ -69,7 +141,7 @@ metadata:
capabilities: Basic Install
categories: Integration & Delivery
containerImage: quay.io/kuadrant/kuadrant-operator:latest
createdAt: "2023-12-08T14:10:07Z"
createdAt: "2023-12-11T14:37:33Z"
operators.operatorframework.io/builder: operator-sdk-v1.32.0
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
repository: https://github.com/Kuadrant/kuadrant-operator
Expand All @@ -86,13 +158,20 @@ spec:
kind: AuthPolicy
name: authpolicies.kuadrant.io
version: v1beta2
- kind: DNSHealthCheckProbe
- description: DNSHealthCheckProbe is the Schema for the dnshealthcheckprobes
API
displayName: DNSHealthCheckProbe
kind: DNSHealthCheckProbe
name: dnshealthcheckprobes.kuadrant.io
version: v1alpha1
- kind: DNSPolicy
- description: DNSPolicy is the Schema for the dnspolicies API
displayName: DNSPolicy
kind: DNSPolicy
name: dnspolicies.kuadrant.io
version: v1alpha1
- kind: DNSRecord
- description: DNSRecord is the Schema for the dnsrecords API
displayName: DNSRecord
kind: DNSRecord
name: dnsrecords.kuadrant.io
version: v1alpha1
- description: Kuadrant configures installations of Kuadrant Service Protection
Expand All @@ -101,7 +180,9 @@ spec:
kind: Kuadrant
name: kuadrants.kuadrant.io
version: v1beta1
- kind: ManagedZone
- description: ManagedZone is the Schema for the managedzones API
displayName: ManagedZone
kind: ManagedZone
name: managedzones.kuadrant.io
version: v1alpha1
- description: RateLimitPolicy enables rate limiting for service workloads in
Expand All @@ -110,7 +191,9 @@ spec:
kind: RateLimitPolicy
name: ratelimitpolicies.kuadrant.io
version: v1beta2
- kind: TLSPolicy
- description: TLSPolicy is the Schema for the tlspolicies API
displayName: TLSPolicy
kind: TLSPolicy
name: tlspolicies.kuadrant.io
version: v1alpha1
description: A Kubernetes Operator to manage the lifecycle of the Kuadrant system
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,31 @@ spec:
kind: RateLimitPolicy
name: ratelimitpolicies.kuadrant.io
version: v1beta2
- description: DNSHealthCheckProbe is the Schema for the dnshealthcheckprobes API
displayName: DNSHealthCheckProbe
kind: DNSHealthCheckProbe
name: dnshealthcheckprobes.kuadrant.io
version: v1alpha1
- description: DNSPolicy is the Schema for the dnspolicies API
displayName: DNSPolicy
kind: DNSPolicy
name: dnspolicies.kuadrant.io
version: v1alpha1
- description: DNSRecord is the Schema for the dnsrecords API
displayName: DNSRecord
kind: DNSRecord
name: dnsrecords.kuadrant.io
version: v1alpha1
- description: ManagedZone is the Schema for the managedzones API
displayName: ManagedZone
kind: ManagedZone
name: managedzones.kuadrant.io
version: v1alpha1
- description: TLSPolicy is the Schema for the tlspolicies API
displayName: TLSPolicy
kind: TLSPolicy
name: tlspolicies.kuadrant.io
version: v1alpha1
description: A Kubernetes Operator to manage the lifecycle of the Kuadrant system
displayName: Kuadrant Operator
icon:
Expand Down
11 changes: 11 additions & 0 deletions config/samples/kuadrant.io_v1alpha1_dnspolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: kuadrant.io/v1alpha1
kind: DNSPolicy
metadata:
name: dnspolicy-sample
spec:
targetRef:
group: gateway.networking.k8s.io
kind: Gateway
name: prod-web
routingStrategy: simple

Check failure on line 11 in config/samples/kuadrant.io_v1alpha1_dnspolicy.yaml

View workflow job for this annotation

GitHub Actions / EOF Newline

[EOF Newline] config/samples/kuadrant.io_v1alpha1_dnspolicy.yaml#L11

Missing newline
Raw output
config/samples/kuadrant.io_v1alpha1_dnspolicy.yaml:11: Missing newline
15 changes: 15 additions & 0 deletions config/samples/kuadrant.io_v1alpha1_dnsrecord.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: kuadrant.io/v1alpha1
kind: DNSRecord
metadata:
name: echo.apps.hcpapps.net
namespace: gw-namespace
spec:
endpoints:
- dnsName: echo.apps.hcpapps.net
recordTTL: 60
recordType: A
targets:
- 172.31.201.1
- 172.31.202.1
managedZone:
name: apps.hcpapps.net
9 changes: 9 additions & 0 deletions config/samples/kuadrant.io_v1alpha1_managedzone.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: kuadrant.io/v1alpha1
kind: ManagedZone
metadata:
name: managedzone-sample
spec:
domainName: apps.hcpapps.net
description: "apps.hcpapps.net managed domain"
dnsProviderSecretRef:
name: my-aws-credentials
13 changes: 13 additions & 0 deletions config/samples/kuadrant.io_v1alpha1_tlspolicy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: kuadrant.io/v1alpha1
kind: TLSPolicy
metadata:
name: tlspolicy-sample
spec:
targetRef:
name: prod-web
group: gateway.networking.k8s.io
kind: Gateway
issuerRef:
group: cert-manager.io
kind: ClusterIssuer
name: glbc-ca
5 changes: 5 additions & 0 deletions config/samples/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,9 @@ resources:
- kuadrant_v1beta1_kuadrant.yaml
- kuadrant_v1beta2_authpolicy.yaml
- kuadrant_v1beta2_ratelimitpolicy.yaml
- kuadrant.io_v1alpha1_dnspolicy.yaml
- kuadrant.io_v1alpha1_dnsrecord.yaml
- kuadrant.io_v1alpha1_managedzone.yaml
- kuadrant.io_v1alpha1_tlspolicy.yaml

#+kubebuilder:scaffold:manifestskustomizesamples

0 comments on commit a6fa760

Please sign in to comment.