Skip to content

Commit

Permalink
Fix api description
Browse files Browse the repository at this point in the history
  • Loading branch information
roivaz committed Mar 22, 2024
1 parent a595607 commit 08e421e
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 11 deletions.
3 changes: 2 additions & 1 deletion apis/marin3r/v1alpha1/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ type Resource struct {
// +operator-sdk:csv:customresourcedefinitions:type=spec
// +optional
GenerateFromTlsSecret *string `json:"generateFromTlsSecret,omitempty"`
// The name of a Kubernetes Secret of type "kubernetes.io/tls"
// The name of a Kubernetes Secret of type "Opaque". It will generate an
// envoy "generic secret" proto.
// +operator-sdk:csv:customresourcedefinitions:type=spec
// +optional
GenerateFromOpaqueSecret *SecretKeySelector `json:"generateFromOpaqueSecret,omitempty"`
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion bundle/manifests/marin3r.3scale.net_envoyconfigs.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions bundle/manifests/marin3r.clusterserviceversion.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,8 @@ spec:
- targetPort
type: object
generateFromOpaqueSecret:
description: The name of a Kubernetes Secret of type "kubernetes.io/tls"
description: The name of a Kubernetes Secret of type "Opaque".
It will generate an envoy "generic secret" proto.
properties:
alias:
description: A unique name to refer to the name:key combination
Expand Down
3 changes: 2 additions & 1 deletion config/crd/bases/marin3r.3scale.net_envoyconfigs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,8 @@ spec:
- targetPort
type: object
generateFromOpaqueSecret:
description: The name of a Kubernetes Secret of type "kubernetes.io/tls"
description: The name of a Kubernetes Secret of type "Opaque".
It will generate an envoy "generic secret" proto.
properties:
alias:
description: A unique name to refer to the name:key combination
Expand Down
6 changes: 4 additions & 2 deletions config/manifests/bases/marin3r.clusterserviceversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,8 @@ spec:
be used to generate the endpoint resource
displayName: Generate From Endpoint Slices
path: resources[0].generateFromEndpointSlices
- description: The name of a Kubernetes Secret of type "kubernetes.io/tls"
- description: The name of a Kubernetes Secret of type "Opaque". It will generate
an envoy "generic secret" proto.
displayName: Generate From Opaque Secret
path: resources[0].generateFromOpaqueSecret
- description: The name of a Kubernetes Secret of type "kubernetes.io/tls"
Expand Down Expand Up @@ -544,7 +545,8 @@ spec:
be used to generate the endpoint resource
displayName: Generate From Endpoint Slices
path: resources[0].generateFromEndpointSlices
- description: The name of a Kubernetes Secret of type "kubernetes.io/tls"
- description: The name of a Kubernetes Secret of type "Opaque". It will generate
an envoy "generic secret" proto.
displayName: Generate From Opaque Secret
path: resources[0].generateFromOpaqueSecret
- description: The name of a Kubernetes Secret of type "kubernetes.io/tls"
Expand Down
2 changes: 1 addition & 1 deletion docs/api-reference/reference.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ Resource holds serialized representation of an envoy resource
| *`type`* __Type__ | Type is the type url for the protobuf message
| *`value`* __RawExtension__ | Value is the protobufer message that configures the resource. The proto must match the envoy configuration API v3 specification for the given resource type (https://www.envoyproxy.io/docs/envoy/latest/api-docs/xds_protocol#resource-types)
| *`generateFromTlsSecret`* __string__ | The name of a Kubernetes Secret of type "kubernetes.io/tls"
| *`generateFromOpaqueSecret`* __xref:{anchor_prefix}-github-com-3scale-ops-marin3r-apis-marin3r-v1alpha1-secretkeyselector[$$SecretKeySelector$$]__ | The name of a Kubernetes Secret of type "kubernetes.io/tls"
| *`generateFromOpaqueSecret`* __xref:{anchor_prefix}-github-com-3scale-ops-marin3r-apis-marin3r-v1alpha1-secretkeyselector[$$SecretKeySelector$$]__ | The name of a Kubernetes Secret of type "Opaque". It will generate an envoy "generic secret" proto.
| *`generateFromEndpointSlices`* __xref:{anchor_prefix}-github-com-3scale-ops-marin3r-apis-marin3r-v1alpha1-generatefromendpointslices[$$GenerateFromEndpointSlices$$]__ | Specifies a label selector to watch for EndpointSlices that will be used to generate the endpoint resource
| *`blueprint`* __xref:{anchor_prefix}-github-com-3scale-ops-marin3r-apis-marin3r-v1alpha1-blueprint[$$Blueprint$$]__ | Blueprint specifies a template to generate a configuration proto. It is currently only supported to generate secret configuration resources from k8s Secrets
|===
Expand Down

0 comments on commit 08e421e

Please sign in to comment.