Skip to content

Commit 2136397

Browse files
authored
[Docs] Update References (#1812)
1 parent 216f73e commit 2136397

10 files changed

+82
-23
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## [master](https://github.com/arangodb/kube-arangodb/tree/master) (N/A)
44
- (Feature) (Platform) Inventory as Proto
5+
- (Docs) Update Refs
56

67
## [1.2.44](https://github.com/arangodb/kube-arangodb/tree/1.2.44) (2025-02-03)
78
- (Maintenance) Kubernetes 1.31.1 libraries

Makefile

+14-4
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,12 @@ YAML_EXCLUDE_FILES :=
281281
YAML_QUERY := find ./ -type f -name '*.yaml' $(foreach EXCLUDE_DIR,$(YAML_EXCLUDE_DIRS), ! -path "*/$(EXCLUDE_DIR)/*") $(foreach EXCLUDE_FILE,$(YAML_EXCLUDE_FILES), ! -path "*/$(EXCLUDE_FILE)")
282282
YAMLS := $(shell $(YAML_QUERY))
283283

284+
285+
DOCS_EXCLUDE_DIRS :=
286+
DOCS_EXCLUDE_FILES :=
287+
DOCS_QUERY := find ./docs/ -type f -name '*.md' $(foreach EXCLUDE_DIR,$(DOCS_EXCLUDE_DIRS), ! -path "*/$(EXCLUDE_DIR)/*") $(foreach EXCLUDE_FILE,$(DOCS_EXCLUDE_FILES), ! -path "*/$(EXCLUDE_FILE)")
288+
DOCS := $(shell $(DOCS_QUERY))
289+
284290
DASHBOARDSOURCES := $(shell find $(DASHBOARDDIR)/src -name '*.js') $(DASHBOARDDIR)/package.json
285291
LINT_EXCLUDES:=
286292
ifeq ($(RELEASE_MODE),enterprise)
@@ -745,18 +751,22 @@ run-unit-tests: $(SOURCES)
745751

746752
.PHONY: patch-readme
747753
patch-readme:
748-
$(ROOTDIR)/scripts/patch_readme.sh $(VERSION_MAJOR_MINOR_PATCH)
754+
@$(ROOTDIR)/scripts/patch_readme.sh $(VERSION_MAJOR_MINOR_PATCH)
749755

750756
.PHONY: patch-examples
751757
patch-examples:
752-
$(ROOTDIR)/scripts/patch_examples.sh $(VERSION_MAJOR_MINOR_PATCH)
758+
@$(ROOTDIR)/scripts/patch_examples.sh $(VERSION_MAJOR_MINOR_PATCH)
759+
760+
.PHONY: patch-docs
761+
patch-docs:
762+
@$(ROOTDIR)/scripts/patch_docs.sh $(VERSION_MAJOR_MINOR_PATCH) $(DOCS)
753763

754764
.PHONY: patch-release
755765
patch-release: patch-readme patch-examples patch-chart
756766

757767
.PHONY: patch-chart
758768
patch-chart:
759-
$(ROOTDIR)/scripts/patch_chart.sh $(VERSION_MAJOR_MINOR_PATCH)
769+
@$(ROOTDIR)/scripts/patch_chart.sh $(VERSION_MAJOR_MINOR_PATCH)
760770

761771
.PHONY: patch
762772
patch: patch-chart patch-release patch-examples patch-readme
@@ -955,6 +965,6 @@ sync-charts:
955965
sync: sync-charts
956966

957967
ci-check:
958-
@$(MAKE) tidy vendor generate update-generated synchronize-v2alpha1-with-v1 sync fmt yamlfmt license protolint
968+
@$(MAKE) tidy vendor patch generate update-generated synchronize-v2alpha1-with-v1 sync fmt yamlfmt license protolint
959969
@git checkout -- go.sum # ignore changes in go.sum
960970
@if [ ! -z "$$(git status --porcelain)" ]; then echo "There are uncommited changes!"; git status; exit 1; fi

docs/integration-sidecar.md

+17-5
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ metadata:
119119
integration.profiles.arangodb.com/<< integration name >>: << integration version >>
120120
```
121121

122-
#### [Authentication V1](/docs/integration/authentication.v1.md)
122+
#### [Authentication V1](./integration/authentication.v1.md)
123123

124124
Authentication Integration Sidecar
125125

@@ -131,7 +131,7 @@ metadata:
131131
integration.profiles.arangodb.com/authn: v1
132132
```
133133

134-
#### [Authorization V0](/docs/integration/authorization.v0.md)
134+
#### [Authorization V0](./integration/authorization.v0.md)
135135

136136
Authorization Integration Sidecar
137137

@@ -143,7 +143,7 @@ metadata:
143143
integration.profiles.arangodb.com/authz: v0
144144
```
145145

146-
#### [Scheduler V2](/docs/integration/scheduler.v2.md)
146+
#### [Scheduler V2](./integration/scheduler.v2.md)
147147

148148
Scheduler Integration Sidecar
149149

@@ -155,7 +155,19 @@ metadata:
155155
integration.profiles.arangodb.com/sched: v2
156156
```
157157

158-
#### [Storage V2](/docs/integration/storage.v2.md)
158+
#### [Storage V1](./integration/storage.v1.md)
159+
160+
Storage Integration Sidecar (legacy)
161+
162+
To enable:
163+
164+
```yaml
165+
metadata:
166+
labels:
167+
integration.profiles.arangodb.com/storage: v1
168+
```
169+
170+
#### [Storage V2](./integration/storage.v2.md)
159171

160172
Storage Integration Sidecar
161173

@@ -167,7 +179,7 @@ metadata:
167179
integration.profiles.arangodb.com/storage: v2
168180
```
169181

170-
#### [Shutdown V1](/docs/integration/shutdown.v1.md)
182+
#### [Shutdown V1](./integration/shutdown.v1.md)
171183

172184
Shutdown Integration Sidecar
173185

docs/integration/authentication.v1.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
layout: page
33
title: Authentication V1
4-
parent: ArangoDBPlatform
4+
parent: Integration Sidecars
55
---
66

77
# Authentication V1
88

99
Definitions:
1010

11-
- [Service](../../integrations/authentication/v1/definition/definition.proto)
11+
- [Service](https://github.com/arangodb/kube-arangodb/blob/1.2.44/integrations/authentication/v1/definition/definition.proto)

docs/integration/authorization.v0.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
layout: page
3-
title: Authentication V1
4-
parent: ArangoDBPlatform
3+
title: Authorization V0
4+
parent: Integration Sidecars
55
---
66

77
# Authorization V0
88

99
Definitions:
1010

11-
- [Service](../../integrations/authorization/v0/definition/definition.proto)
11+
- [Service](https://github.com/arangodb/kube-arangodb/blob/1.2.44/integrations/authorization/v0/definition/definition.proto)
1212

docs/integration/scheduler.v1.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
layout: page
3+
title: Scheduler V1
4+
parent: Integration Sidecars
5+
---
6+
7+
# Scheduler V1
8+
9+
Definitions:
10+
11+
- [Service](https://github.com/arangodb/kube-arangodb/blob/1.2.44/integrations/scheduler/v1/definition/definition.proto)
12+

docs/integration/scheduler.v2.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
layout: page
3-
title: Authentication V1
4-
parent: ArangoDBPlatform
3+
title: Scheduler V2
4+
parent: Integration Sidecars
55
---
66

77
# Scheduler V2
88

99
Definitions:
1010

11-
- [Service](../../integrations/scheduler/v2/definition/definition.proto)
11+
- [Service](https://github.com/arangodb/kube-arangodb/blob/1.2.44/integrations/scheduler/v2/definition/definition.proto)
1212

docs/integration/shutdown.v1.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
22
layout: page
3-
title: Authentication V1
4-
parent: ArangoDBPlatform
3+
title: Shutdown V1
4+
parent: Integration Sidecars
55
---
66

77
# Shutdown V1
88

99
Definitions:
1010

11-
- [Service](../../integrations/shutdown/v1/definition/definition.proto)
11+
- [Service](https://github.com/arangodb/kube-arangodb/blob/1.2.44/integrations/shutdown/v1/definition/shutdown.proto)
1212

1313
Operator will send shutdown request once all containers marked with annotation are stopped.
1414

docs/integration/storage.v2.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
layout: page
3-
title: Authentication V1
4-
parent: ArangoDBPlatform
3+
title: Storage V2
4+
parent: Integration Sidecars
55
---
66

77
# Storage V2
88

99
Definitions:
1010

11-
- [Service](./definition.proto)
11+
- [Service](https://github.com/arangodb/kube-arangodb/blob/1.2.44/integrations/storage/v2/definition/storage.proto)
1212

scripts/patch_docs.sh

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
# Updates the installation instructions in README.md to reflect the current
4+
# version.
5+
6+
VERSION=$1
7+
8+
if [ -z $VERSION ]; then
9+
echo "Specify a version argument"
10+
exit 1
11+
fi
12+
13+
function replaceInFile {
14+
local EXPR=$1
15+
local FILE=$2
16+
sed -E -i --expression "${EXPR}" ${FILE}
17+
}
18+
19+
20+
shift 1
21+
22+
for f in "$@"; do
23+
replaceInFile "s@https://github.com/arangodb/kube-arangodb/blob/[0-9]+\.[0-9]+\.[0-9]+/@https://github.com/arangodb/kube-arangodb/blob/${VERSION}/@g" ${f}
24+
done

0 commit comments

Comments
 (0)