Skip to content

Commit 98bfa50

Browse files
authored
Merge pull request #77 from marklogic/main
Merge main back to develop
2 parents df2958c + 53bbed4 commit 98bfa50

File tree

93 files changed

+33957
-29282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+33957
-29282
lines changed

.github/workflows/release.yaml

Lines changed: 7 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
name: Release Charts
2-
3-
concurrency: release-helm
4-
52
on:
63
push:
74
branches:
85
- main
9-
106
jobs:
117
release:
128
permissions:
@@ -16,41 +12,15 @@ jobs:
1612
- name: Checkout
1713
uses: actions/checkout@v3
1814
with:
19-
path: 'src'
20-
ref: 'main'
2115
fetch-depth: 0
22-
23-
- name: Checkout
24-
uses: actions/checkout@v3
25-
with:
26-
path: 'dest'
27-
ref: 'gh-pages'
28-
fetch-depth: 0
29-
3016
- name: Configure Git
3117
run: |
32-
cd dest
3318
git config user.name "$GITHUB_ACTOR"
3419
git config user.email "[email protected]"
35-
36-
- name: Install Helm
37-
uses: azure/setup-helm@v4
38-
39-
- name: Package Helm Charts
40-
shell: bash
41-
run: |
42-
find src/charts/ -type f -name 'Chart.yaml' | sed -r 's|/[^/]+$||' | sort | uniq | xargs -L 1 helm dep up
43-
for d in src/charts/*/ ; do
44-
echo "$d"
45-
helm package "$d" -u -d dest
46-
done
47-
48-
- name: Push New Files
49-
shell: bash
50-
working-directory: dest
51-
run: |
52-
helm repo index . --url https://raw.githubusercontent.com/marklogic/marklogic-kubernetes-operator/gh-pages/
53-
git add $(git ls-files -o --exclude-standard)
54-
git add index.yaml
55-
git commit -m "Updated from ref: $GITHUB_SHA"
56-
git push
20+
- name: Run chart-releaser
21+
uses: helm/[email protected]
22+
with:
23+
charts_dir: 'charts'
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to MarkLogic-kubernetes-operator
1+
# Contributing to marklogic-operator-kubernetes
22

33
Thank you for your interest in contributing to this project! We welcome contributions from the community to make this project better.
44

@@ -38,4 +38,4 @@ The MarkLogic kubernetes operator team will use the PRs for "inspiration" but no
3838

3939
**Important:** Please open an issue in the [Issue Tracker][] and get your proposed changes pre-approved by at least one of the project maintainers before you start coding. Nothing is more frustrating than seeing your hard work go to waste because your vision does not align with that of the project maintainers.
4040

41-
[Issue Tracker]: https://github.com/marklogic/marklogic-kubernetes-operator/issues
41+
[Issue Tracker]: https://github.com/marklogic/marklogic-operator-kubernetes/issues

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM golang:1.23.5 AS builder
2+
FROM golang:1.23.6 AS builder
33
ARG TARGETOS
44
ARG TARGETARCH
55

LICENSE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Copyright © 2024-2025 MarkLogic Corporation.
2+
13
Apache License
24
Version 2.0, January 2004
35
http://www.apache.org/licenses/

Makefile

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# To re-generate a bundle for another specific version without changing the standard setup, you can:
44
# - use the VERSION as arg of the bundle target (e.g make bundle VERSION=0.0.2)
55
# - use environment variables to overwrite this value (e.g export VERSION=0.0.2)
6-
VERSION ?= 0.0.1
6+
VERSION ?= 1.0.0
77

88
# VERIFY_HUGE_PAGES defines if hugepages test is enabled or not for e2e test
99
VERIFY_HUGE_PAGES ?= false
@@ -41,8 +41,8 @@ BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL)
4141
# This variable is used to construct full image tags for bundle and catalog images.
4242
#
4343
# For example, running 'make bundle-build bundle-push catalog-build catalog-push' will build and push both
44-
# marklogic.com/marklogic-kubernetes-operator-bundle:$VERSION and marklogic.com/marklogic-kubernetes-operator-catalog:$VERSION.
45-
IMAGE_TAG_BASE ?= ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/ml-marklogic-operator-dev/marklogic-kubernetes-operator
44+
# marklogic.com/marklogic-operator-kubernetes-bundle:$VERSION and marklogic.com/marklogic-operator-kubernetes-catalog:$VERSION.
45+
IMAGE_TAG_BASE ?= ml-docker-db-dev-tierpoint.bed-artifactory.bedford.progress.com/ml-marklogic-operator-dev/marklogic-operator-kubernetes
4646

4747
# BUNDLE_IMG defines the image:tag used for the bundle.
4848
# You can use it as an arg. (E.g make bundle-build BUNDLE_IMG=<some-registry>/<project-name-bundle>:<tag>)
@@ -64,7 +64,8 @@ endif
6464
OPERATOR_SDK_VERSION ?= v1.34.2
6565

6666
# Image URL to use all building/pushing image targets
67-
IMG ?= ml-marklogic-operator-dev.bed-artifactory.bedford.progress.com/marklogic-kubernetes-operator:1.0.0-ea2
67+
# Image for dev: ml-marklogic-operator-dev.bed-artifactory.bedford.progress.com/marklogic-operator-kubernetes
68+
IMG ?= progressofficial/marklogic-operator-kubernetes:$(VERSION)
6869

6970

7071
# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
@@ -109,7 +110,7 @@ help: ## Display this help.
109110

110111
.PHONY: manifests
111112
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
112-
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
113+
$(CONTROLLER_GEN) rbac:roleName=manager-role crd:generateEmbeddedObjectMeta=true webhook paths="./..." output:crd:artifacts:config=config/crd/bases
113114

114115
.PHONY: generate
115116
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
@@ -362,7 +363,7 @@ $(HELMIFY): $(LOCALBIN)
362363
test -s $(LOCALBIN)/helmify || GOBIN=$(LOCALBIN) go install github.com/arttor/helmify/cmd/helmify@latest
363364

364365
helm: manifests kustomize helmify
365-
$(KUSTOMIZE) build config/default | $(HELMIFY) -image-pull-secrets charts/marklogic-operator
366+
$(KUSTOMIZE) build config/default | $(HELMIFY) -image-pull-secrets -original-name charts/marklogic-operator-kubernetes
366367

367368
.PHONY: image-scan
368369
image-scan: docker-build

NOTICE.txt

Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
MarkLogic® Operator for Kubernetes
2+
3+
Copyright © 2024-2025 MarkLogic Corporation. MarkLogic and MarkLogic logo are trademarks or registered trademarks of MarkLogic Corporation in the United States and other countries. All other trademarks are the property of their respective owners.
4+
5+
This project is licensed under the Apache License, Version 2.0 (the "License"); you may not use this project except in compliance with the License. You may obtain a copy of the License at
6+
7+
http://www.apache.org/licenses/LICENSE-2.0
8+
9+
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
10+
11+
To the extent required by the applicable open-source license, a complete machine-readable copy of the source code corresponding to such code is available upon request. This offer is valid to anyone in receipt of this information and shall expire three years following the date of the final distribution of this product version by MarkLogic Corporation. To obtain such source code, send an email to [email protected]. Please specify the product and version for which you are requesting source code.
12+
13+
This document provides notice information for the third-party components used by MarkLogic® Operator for Kubernetes.
14+
15+
Third Party Components
16+
17+
18+
api v0.32.1 (Apache-2.0)
19+
apimachinery v0.32.1 (Apache-2.0)
20+
client-go v0.32.1 (Apache-2.0)
21+
controller-runtime v0.20.1 (Apache-2.0)
22+
k8s-objectmatcher v1.10.0 (Apache-2.0)
23+
logr v1.4.2 (Apache-2.0
24+
25+
26+
Common Licenses
27+
28+
Apache License 2.0 (Apache-2.0)
29+
30+
-------------------------------------------------------------------------
31+
32+
The following software may be included in this project (last updated February 11, 2025):
33+
34+
Api v0.32.1 (Apache-2.0)
35+
36+
https://github.com/kubernetes/api/tree/v0.32.1
37+
38+
For the full text of the Apache-2.0 license, see Apache License 2.0 (Apache-2.0)
39+
40+
Apimachinery v0.32.1 (Apache-2.0)
41+
42+
https://github.com/kubernetes/apimachinery/tree/v0.32.1
43+
44+
For the full text of the Apache-2.0 license, see Apache License 2.0 (Apache-2.0)
45+
46+
client-go v0.32.1 (Apache-2.0)
47+
48+
https://github.com/kubernetes/client-go/tree/v0.32.1
49+
50+
For the full text of the Apache-2.0 license, see Apache License 2.0 (Apache-2.0)
51+
52+
Controller-runtime v0.20.1 (Apache-2.0)
53+
54+
https://github.com/kubernetes-sigs/controller-runtime/tree/v0.20.1
55+
56+
For the full text of the Apache-2.0 license, see Apache License 2.0 (Apache-2.0)
57+
58+
59+
60+
k8s-objectmatcher v1.10.0 (Apache-2.0)
61+
62+
https://github.com/cisco-open/k8s-objectmatcher/tree/v1.10.0
63+
64+
Copyright © 2019 Banzai Cloud
65+
66+
Portions of this software were developed in the Kubernetes project: https://github.com/kubernetes/kubernetes
67+
68+
The source file patch/annotation.go is based on https://github.com/kubernetes/kubernetes/blob/3d0c961d57bb90c112a0ee2f5ccdcb5c8570ad32/pkg/kubectl/apply.go
69+
The source file patch/deletenull.go is based on https://github.com/kubernetes/kubernetes/blob/433b448e8d42da70df5d50f4ce667bcb36aeeec2/staging/src/k8s.io/apimachinery/pkg/util/jsonmergepatch/patch.go
70+
71+
For the full text of the Apache-2.0 license, see Apache License 2.0 (Apache-2.0)
72+
73+
Logr v1.4.2 (Apache-2.0)
74+
75+
https://github.com/go-logr/logr/tree/v1.4.2
76+
77+
For the full text of the Apache-2.0 license, see Apache License 2.0 (Apache-2.0)
78+
79+
80+
81+
-----------------------------------------
82+
Common Licenses
83+
84+
This section shows the text of common third-party licenses used by MarkLogic® Operator for Kubernetes:
85+
86+
Apache License 2.0 (Apache-2.0)
87+
https://spdx.org/licenses/Apache-2.0.html
88+
89+
Apache License
90+
Version 2.0, January 2004
91+
http://www.apache.org/licenses/
92+
93+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
94+
95+
1. Definitions.
96+
97+
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
98+
99+
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
100+
101+
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
102+
103+
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
104+
105+
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
106+
107+
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
108+
109+
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
110+
111+
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
112+
113+
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
114+
115+
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
116+
117+
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
118+
119+
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
120+
121+
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
122+
123+
(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
124+
125+
(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
126+
127+
(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
128+
129+
(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
130+
131+
You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
132+
133+
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
134+
135+
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
136+
137+
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
138+
139+
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
140+
141+
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
142+
143+
END OF TERMS AND CONDITIONS
144+
145+
APPENDIX: How to apply the Apache License to your work.
146+
147+
To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
148+
149+
Copyright [yyyy] [name of copyright owner]
150+
151+
Licensed under the Apache License, Version 2.0 (the "License");
152+
you may not use this file except in compliance with the License.
153+
You may obtain a copy of the License at
154+
155+
http://www.apache.org/licenses/LICENSE-2.0
156+
157+
Unless required by applicable law or agreed to in writing, software
158+
distributed under the License is distributed on an "AS IS" BASIS,
159+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
160+
See the License for the specific language governing permissions and
161+
limitations under the License.

0 commit comments

Comments
 (0)