You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit transplants the documentation for the recent redpanda helm chart
update to their relevant place in the Redpanda CRD. In addition, it adds a
configuration for crd-doc-ref to allow developers to review how documentation
changes will be presented in our public docs ahead of merging.
This commit also proactively changes instances of markdown URLs to asciidoc
compatible links and adds a linter to prevent regressions.
Copy file name to clipboardExpand all lines: operator/api/redpanda/v1alpha2/redpanda_clusterspec_types.go
+23-4Lines changed: 23 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -497,7 +497,27 @@ type UsageStats struct {
497
497
ClusterID*string`json:"clusterId,omitempty"`
498
498
}
499
499
500
-
// Resources configures resource allocation. The default values are for a development environment. Production-level values and other considerations are documented, where those values are different from the default.
500
+
// RedpandaResources encapsulates the calculation of the redpanda container's
require.JSONEq(t, string(original), string(through), "%s (%T) should have serialized to %s (%T)", through, to, original, from)
278
280
}
281
+
282
+
funcTestNoMarkdownLinks(t*testing.T) {
283
+
data, err:=os.ReadFile("testdata/crd-docs.adoc")
284
+
require.NoError(t, err)
285
+
286
+
re:=regexp.MustCompile(`\[(.+)\]\((.+)\)`)
287
+
288
+
matches:=re.FindAllSubmatch(data, -1)
289
+
for_, match:=rangematches {
290
+
t.Errorf("public CRD docs use Ascii doc but found markdown link: %s\nDid you mean: %s[%s]\n(Or do you need to run task generate?)", match[0], match[2], match[1])
0 commit comments