From a6fa760a6b853d71d7b964788b25c1161b7a6466 Mon Sep 17 00:00:00 2001 From: Grzegorz Piotrowski Date: Mon, 11 Dec 2023 14:39:50 +0000 Subject: [PATCH] Add descriptions and samples to CSV --- ...adrant-operator.clusterserviceversion.yaml | 95 +++++++++++++++++-- ...adrant-operator.clusterserviceversion.yaml | 25 +++++ .../kuadrant.io_v1alpha1_dnspolicy.yaml | 11 +++ .../kuadrant.io_v1alpha1_dnsrecord.yaml | 15 +++ .../kuadrant.io_v1alpha1_managedzone.yaml | 9 ++ .../kuadrant.io_v1alpha1_tlspolicy.yaml | 13 +++ config/samples/kustomization.yaml | 5 + 7 files changed, 167 insertions(+), 6 deletions(-) create mode 100644 config/samples/kuadrant.io_v1alpha1_dnspolicy.yaml create mode 100644 config/samples/kuadrant.io_v1alpha1_dnsrecord.yaml create mode 100644 config/samples/kuadrant.io_v1alpha1_managedzone.yaml create mode 100644 config/samples/kuadrant.io_v1alpha1_tlspolicy.yaml diff --git a/bundle/manifests/kuadrant-operator.clusterserviceversion.yaml b/bundle/manifests/kuadrant-operator.clusterserviceversion.yaml index b934f926a..ab5d48da5 100644 --- a/bundle/manifests/kuadrant-operator.clusterserviceversion.yaml +++ b/bundle/manifests/kuadrant-operator.clusterserviceversion.yaml @@ -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", @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/config/manifests/bases/kuadrant-operator.clusterserviceversion.yaml b/config/manifests/bases/kuadrant-operator.clusterserviceversion.yaml index f38ddf156..fa345f993 100644 --- a/config/manifests/bases/kuadrant-operator.clusterserviceversion.yaml +++ b/config/manifests/bases/kuadrant-operator.clusterserviceversion.yaml @@ -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: diff --git a/config/samples/kuadrant.io_v1alpha1_dnspolicy.yaml b/config/samples/kuadrant.io_v1alpha1_dnspolicy.yaml new file mode 100644 index 000000000..dde112107 --- /dev/null +++ b/config/samples/kuadrant.io_v1alpha1_dnspolicy.yaml @@ -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 + \ No newline at end of file diff --git a/config/samples/kuadrant.io_v1alpha1_dnsrecord.yaml b/config/samples/kuadrant.io_v1alpha1_dnsrecord.yaml new file mode 100644 index 000000000..915bcd5e8 --- /dev/null +++ b/config/samples/kuadrant.io_v1alpha1_dnsrecord.yaml @@ -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 diff --git a/config/samples/kuadrant.io_v1alpha1_managedzone.yaml b/config/samples/kuadrant.io_v1alpha1_managedzone.yaml new file mode 100644 index 000000000..02cc02786 --- /dev/null +++ b/config/samples/kuadrant.io_v1alpha1_managedzone.yaml @@ -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 diff --git a/config/samples/kuadrant.io_v1alpha1_tlspolicy.yaml b/config/samples/kuadrant.io_v1alpha1_tlspolicy.yaml new file mode 100644 index 000000000..1f2500f07 --- /dev/null +++ b/config/samples/kuadrant.io_v1alpha1_tlspolicy.yaml @@ -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 diff --git a/config/samples/kustomization.yaml b/config/samples/kustomization.yaml index 5202a04c9..dee460111 100644 --- a/config/samples/kustomization.yaml +++ b/config/samples/kustomization.yaml @@ -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