diff --git a/Dockerfile b/Dockerfile index 1659e64..e6df3e0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + # Build the manager binary FROM golang:1.23.6 AS builder ARG TARGETOS diff --git a/Jenkinsfile b/Jenkinsfile index 6e4ef4f..25e9b5e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + /* groovylint-disable CompileStatic, LineLength, VariableTypeRequired */ // This Jenkinsfile defines internal MarkLogic build pipeline. diff --git a/LICENSE b/LICENSE index e44c7bc..9eb906e 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright © 2024-2025 MarkLogic Corporation. +Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. Apache License Version 2.0, January 2004 diff --git a/Makefile b/Makefile old mode 100644 new mode 100755 index 6267307..78de635 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + # VERSION defines the project version for the bundle. # Update this value when you upgrade the version of your project. # To re-generate a bundle for another specific version without changing the standard setup, you can: diff --git a/NOTICE.txt b/NOTICE.txt index a0f2296..37b8b65 100644 --- a/NOTICE.txt +++ b/NOTICE.txt @@ -1,6 +1,6 @@ MarkLogic® Operator for Kubernetes -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. +Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. 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 diff --git a/PROJECT b/PROJECT index 9c278be..0375832 100644 --- a/PROJECT +++ b/PROJECT @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + # Code generated by tool. DO NOT EDIT. # This file is used to track the info used to scaffold your project # and allow the plugins properly work. diff --git a/api/v1/common_types.go b/api/v1/common_types.go index c0a1831..db19d80 100644 --- a/api/v1/common_types.go +++ b/api/v1/common_types.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package v1 import ( diff --git a/api/v1/groupversion_info.go b/api/v1/groupversion_info.go index 47de075..755f447 100644 --- a/api/v1/groupversion_info.go +++ b/api/v1/groupversion_info.go @@ -1,5 +1,5 @@ /* -Copyright 2024. +Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/api/v1/marklogiccluster_types.go b/api/v1/marklogiccluster_types.go index 23103e1..5f817f4 100644 --- a/api/v1/marklogiccluster_types.go +++ b/api/v1/marklogiccluster_types.go @@ -1,5 +1,5 @@ /* -Copyright 2024. +Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/api/v1/marklogicgroup_types.go b/api/v1/marklogicgroup_types.go index 8eb432b..249a7ad 100644 --- a/api/v1/marklogicgroup_types.go +++ b/api/v1/marklogicgroup_types.go @@ -1,5 +1,5 @@ /* -Copyright 2024. +Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/api/v1/zz_generated.deepcopy.go b/api/v1/zz_generated.deepcopy.go index 14dc6ce..d4cb8b2 100644 --- a/api/v1/zz_generated.deepcopy.go +++ b/api/v1/zz_generated.deepcopy.go @@ -1,7 +1,7 @@ //go:build !ignore_autogenerated /* -Copyright 2024. +Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/bundle.Dockerfile b/bundle.Dockerfile index 6fde06c..7115708 100644 --- a/bundle.Dockerfile +++ b/bundle.Dockerfile @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + FROM scratch # Core bundle labels. diff --git a/cmd/main.go b/cmd/main.go index 5591e3e..fc6e155 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -1,5 +1,5 @@ /* -Copyright 2024. +Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/config/crd/bases/database.marklogic.com_marklogicclusters.yaml b/config/crd/bases/database.marklogic.com_marklogicclusters.yaml index c4df8cb..e9e4e36 100644 --- a/config/crd/bases/database.marklogic.com_marklogicclusters.yaml +++ b/config/crd/bases/database.marklogic.com_marklogicclusters.yaml @@ -1,3 +1,4 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/bases/database.marklogic.com_marklogicgroups.yaml b/config/crd/bases/database.marklogic.com_marklogicgroups.yaml index 20a3631..224f43b 100644 --- a/config/crd/bases/database.marklogic.com_marklogicgroups.yaml +++ b/config/crd/bases/database.marklogic.com_marklogicgroups.yaml @@ -1,3 +1,4 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/bases/marklogic.progress.com_marklogicclusters.yaml b/config/crd/bases/marklogic.progress.com_marklogicclusters.yaml index 795b0af..546bbe3 100644 --- a/config/crd/bases/marklogic.progress.com_marklogicclusters.yaml +++ b/config/crd/bases/marklogic.progress.com_marklogicclusters.yaml @@ -1,3 +1,4 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/bases/marklogic.progress.com_marklogicgroups.yaml b/config/crd/bases/marklogic.progress.com_marklogicgroups.yaml index 9e95819..5127ede 100644 --- a/config/crd/bases/marklogic.progress.com_marklogicgroups.yaml +++ b/config/crd/bases/marklogic.progress.com_marklogicgroups.yaml @@ -1,3 +1,4 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. --- apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition diff --git a/config/crd/kustomization.yaml b/config/crd/kustomization.yaml index 7eee86e..57314f9 100644 --- a/config/crd/kustomization.yaml +++ b/config/crd/kustomization.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + # This kustomization.yaml is not intended to be run by itself, # since it depends on service name and namespace that are out of this kustomize package. # It should be run by config/default diff --git a/config/crd/kustomizeconfig.yaml b/config/crd/kustomizeconfig.yaml index ec5c150..fdd9895 100644 --- a/config/crd/kustomizeconfig.yaml +++ b/config/crd/kustomizeconfig.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + # This file is for teaching kustomize how to substitute name and namespace reference in CRD nameReference: - kind: Service diff --git a/config/default/kustomization.yaml b/config/default/kustomization.yaml index bc44562..5214329 100644 --- a/config/default/kustomization.yaml +++ b/config/default/kustomization.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + # Adds namespace to all resources. namespace: marklogic-operator-system diff --git a/config/default/manager_auth_proxy_patch.yaml b/config/default/manager_auth_proxy_patch.yaml index 70c3437..9bcfb34 100644 --- a/config/default/manager_auth_proxy_patch.yaml +++ b/config/default/manager_auth_proxy_patch.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + # This patch inject a sidecar container which is a HTTP proxy for the # controller manager, it performs RBAC authorization against the Kubernetes API using SubjectAccessReviews. apiVersion: apps/v1 diff --git a/config/default/manager_config_patch.yaml b/config/default/manager_config_patch.yaml index f6f5891..0e4cc07 100644 --- a/config/default/manager_config_patch.yaml +++ b/config/default/manager_config_patch.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + apiVersion: apps/v1 kind: Deployment metadata: diff --git a/config/manager/kustomization.yaml b/config/manager/kustomization.yaml index a8803b5..8497504 100644 --- a/config/manager/kustomization.yaml +++ b/config/manager/kustomization.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + resources: - manager.yaml apiVersion: kustomize.config.k8s.io/v1beta1 diff --git a/config/manager/manager.yaml b/config/manager/manager.yaml index 2bfb5c2..2ce1b46 100644 --- a/config/manager/manager.yaml +++ b/config/manager/manager.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + apiVersion: v1 kind: Namespace metadata: diff --git a/config/manifests/bases/marklogic-kubernetes-operator.clusterserviceversion.yaml b/config/manifests/bases/marklogic-kubernetes-operator.clusterserviceversion.yaml index 939c78c..f87c500 100644 --- a/config/manifests/bases/marklogic-kubernetes-operator.clusterserviceversion.yaml +++ b/config/manifests/bases/marklogic-kubernetes-operator.clusterserviceversion.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + apiVersion: operators.coreos.com/v1alpha1 kind: ClusterServiceVersion metadata: diff --git a/config/manifests/kustomization.yaml b/config/manifests/kustomization.yaml index 8c17331..335ab38 100644 --- a/config/manifests/kustomization.yaml +++ b/config/manifests/kustomization.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + # These resources constitute the fully configured set of manifests # used to generate the 'manifests/' directory in a bundle. resources: diff --git a/config/prometheus/kustomization.yaml b/config/prometheus/kustomization.yaml index ed13716..6e648d8 100644 --- a/config/prometheus/kustomization.yaml +++ b/config/prometheus/kustomization.yaml @@ -1,2 +1,4 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + resources: - monitor.yaml diff --git a/config/prometheus/monitor.yaml b/config/prometheus/monitor.yaml index 4071102..3117aad 100644 --- a/config/prometheus/monitor.yaml +++ b/config/prometheus/monitor.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + # Prometheus Monitor Service (Metrics) apiVersion: monitoring.coreos.com/v1 kind: ServiceMonitor diff --git a/config/rbac/auth_proxy_client_clusterrole.yaml b/config/rbac/auth_proxy_client_clusterrole.yaml index 4cfe006..dff7dcf 100644 --- a/config/rbac/auth_proxy_client_clusterrole.yaml +++ b/config/rbac/auth_proxy_client_clusterrole.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/config/rbac/auth_proxy_role.yaml b/config/rbac/auth_proxy_role.yaml index e373827..22d748e 100644 --- a/config/rbac/auth_proxy_role.yaml +++ b/config/rbac/auth_proxy_role.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: diff --git a/config/rbac/auth_proxy_role_binding.yaml b/config/rbac/auth_proxy_role_binding.yaml index 0baec70..ba5e11e 100644 --- a/config/rbac/auth_proxy_role_binding.yaml +++ b/config/rbac/auth_proxy_role_binding.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/config/rbac/auth_proxy_service.yaml b/config/rbac/auth_proxy_service.yaml index bb01726..043c664 100644 --- a/config/rbac/auth_proxy_service.yaml +++ b/config/rbac/auth_proxy_service.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + apiVersion: v1 kind: Service metadata: diff --git a/config/rbac/kustomization.yaml b/config/rbac/kustomization.yaml index 731832a..ef72b22 100644 --- a/config/rbac/kustomization.yaml +++ b/config/rbac/kustomization.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + resources: # All RBAC will be applied under this service account in # the deployment namespace. You may comment out this resource diff --git a/config/rbac/leader_election_role.yaml b/config/rbac/leader_election_role.yaml index bc4c5e4..9e8a129 100644 --- a/config/rbac/leader_election_role.yaml +++ b/config/rbac/leader_election_role.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + # permissions to do leader election. apiVersion: rbac.authorization.k8s.io/v1 kind: Role diff --git a/config/rbac/leader_election_role_binding.yaml b/config/rbac/leader_election_role_binding.yaml index 40800ac..896053b 100644 --- a/config/rbac/leader_election_role_binding.yaml +++ b/config/rbac/leader_election_role_binding.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: diff --git a/config/rbac/marklogiccluster_editor_role.yaml b/config/rbac/marklogiccluster_editor_role.yaml index f4e0f24..aab68f8 100644 --- a/config/rbac/marklogiccluster_editor_role.yaml +++ b/config/rbac/marklogiccluster_editor_role.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + # permissions for end users to edit marklogicclusters. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/marklogiccluster_viewer_role.yaml b/config/rbac/marklogiccluster_viewer_role.yaml index e5fbaf8..0876687 100644 --- a/config/rbac/marklogiccluster_viewer_role.yaml +++ b/config/rbac/marklogiccluster_viewer_role.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + # permissions for end users to view marklogicclusters. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/marklogicgroup_editor_role.yaml b/config/rbac/marklogicgroup_editor_role.yaml index f8a970d..0c2aa43 100644 --- a/config/rbac/marklogicgroup_editor_role.yaml +++ b/config/rbac/marklogicgroup_editor_role.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + # permissions for end users to edit marklogicgroups. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/marklogicgroup_viewer_role.yaml b/config/rbac/marklogicgroup_viewer_role.yaml index 7fa5eac..b8ffaf5 100644 --- a/config/rbac/marklogicgroup_viewer_role.yaml +++ b/config/rbac/marklogicgroup_viewer_role.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + # permissions for end users to view marklogicgroups. apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index c84ced7..66afd09 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -1,3 +1,4 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole diff --git a/config/rbac/role_binding.yaml b/config/rbac/role_binding.yaml index 66fcb32..fc5cd6b 100644 --- a/config/rbac/role_binding.yaml +++ b/config/rbac/role_binding.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: diff --git a/config/rbac/service_account.yaml b/config/rbac/service_account.yaml index ef8ebc7..71ea5cf 100644 --- a/config/rbac/service_account.yaml +++ b/config/rbac/service_account.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + apiVersion: v1 kind: ServiceAccount metadata: diff --git a/config/samples/complete.yaml b/config/samples/complete.yaml index 35015ee..30d5aa2 100644 --- a/config/samples/complete.yaml +++ b/config/samples/complete.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + apiVersion: marklogic.progress.com/v1 kind: MarklogicCluster metadata: diff --git a/config/samples/kustomization.yaml b/config/samples/kustomization.yaml index fc79bac..27e0e67 100644 --- a/config/samples/kustomization.yaml +++ b/config/samples/kustomization.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + ## Append samples of your project ## resources: - quick-start.yaml diff --git a/config/samples/minimal-production.yaml b/config/samples/minimal-production.yaml index 64cdd38..f43f546 100644 --- a/config/samples/minimal-production.yaml +++ b/config/samples/minimal-production.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + apiVersion: marklogic.progress.com/v1 kind: MarklogicCluster metadata: diff --git a/config/samples/quick-start.yaml b/config/samples/quick-start.yaml index b509203..2f037e0 100644 --- a/config/samples/quick-start.yaml +++ b/config/samples/quick-start.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + apiVersion: marklogic.progress.com/v1 kind: MarklogicCluster metadata: diff --git a/config/scorecard/bases/config.yaml b/config/scorecard/bases/config.yaml index c770478..c9a2818 100644 --- a/config/scorecard/bases/config.yaml +++ b/config/scorecard/bases/config.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + apiVersion: scorecard.operatorframework.io/v1alpha3 kind: Configuration metadata: diff --git a/config/scorecard/kustomization.yaml b/config/scorecard/kustomization.yaml index 50cd2d0..ae05e0e 100644 --- a/config/scorecard/kustomization.yaml +++ b/config/scorecard/kustomization.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + resources: - bases/config.yaml patchesJson6902: diff --git a/config/scorecard/patches/basic.config.yaml b/config/scorecard/patches/basic.config.yaml index 0da8e36..6b6f01e 100644 --- a/config/scorecard/patches/basic.config.yaml +++ b/config/scorecard/patches/basic.config.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + - op: add path: /stages/0/tests/- value: diff --git a/config/scorecard/patches/olm.config.yaml b/config/scorecard/patches/olm.config.yaml index 6797ad8..c1113ea 100644 --- a/config/scorecard/patches/olm.config.yaml +++ b/config/scorecard/patches/olm.config.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + - op: add path: /stages/0/tests/- value: diff --git a/hack/boilerplate.go.txt b/hack/boilerplate.go.txt index ff72ff2..13d8e87 100644 --- a/hack/boilerplate.go.txt +++ b/hack/boilerplate.go.txt @@ -1,5 +1,5 @@ /* -Copyright 2024. +Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/internal/controller/marklogiccluster_controller.go b/internal/controller/marklogiccluster_controller.go index 2766e77..38fe42b 100644 --- a/internal/controller/marklogiccluster_controller.go +++ b/internal/controller/marklogiccluster_controller.go @@ -1,5 +1,5 @@ /* -Copyright 2024. +Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -28,10 +28,11 @@ import ( "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/log" + "reflect" + "github.com/go-logr/logr" marklogicv1 "github.com/marklogic/marklogic-operator-kubernetes/api/v1" "github.com/marklogic/marklogic-operator-kubernetes/pkg/k8sutil" - "reflect" "sigs.k8s.io/controller-runtime/pkg/event" "sigs.k8s.io/controller-runtime/pkg/predicate" ) diff --git a/internal/controller/marklogiccluster_controller_test.go b/internal/controller/marklogiccluster_controller_test.go index 1853eab..6837f86 100644 --- a/internal/controller/marklogiccluster_controller_test.go +++ b/internal/controller/marklogiccluster_controller_test.go @@ -1,5 +1,5 @@ /* -Copyright 2024. +Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/internal/controller/marklogicgroup_controller.go b/internal/controller/marklogicgroup_controller.go index 0c02ba8..369dab7 100644 --- a/internal/controller/marklogicgroup_controller.go +++ b/internal/controller/marklogicgroup_controller.go @@ -1,5 +1,5 @@ /* -Copyright 2024. +Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -18,6 +18,7 @@ package controller import ( "context" + "reflect" "github.com/go-logr/logr" marklogicv1 "github.com/marklogic/marklogic-operator-kubernetes/api/v1" @@ -27,7 +28,6 @@ import ( "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/runtime" "k8s.io/client-go/tools/record" - "reflect" ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" "sigs.k8s.io/controller-runtime/pkg/event" diff --git a/internal/controller/marklogicgroup_controller_test.go b/internal/controller/marklogicgroup_controller_test.go index 2b6221d..9e1371d 100644 --- a/internal/controller/marklogicgroup_controller_test.go +++ b/internal/controller/marklogicgroup_controller_test.go @@ -1,5 +1,5 @@ /* -Copyright 2024. +Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/internal/controller/suite_test.go b/internal/controller/suite_test.go index 7d7c89e..aadffb1 100644 --- a/internal/controller/suite_test.go +++ b/internal/controller/suite_test.go @@ -1,5 +1,5 @@ /* -Copyright 2024. +Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/pkg/k8sutil/client.go b/pkg/k8sutil/client.go index 68a6d05..2253843 100644 --- a/pkg/k8sutil/client.go +++ b/pkg/k8sutil/client.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package k8sutil import ( diff --git a/pkg/k8sutil/common.go b/pkg/k8sutil/common.go index 85dda24..0beedf4 100644 --- a/pkg/k8sutil/common.go +++ b/pkg/k8sutil/common.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package k8sutil import ( diff --git a/pkg/k8sutil/configmap.go b/pkg/k8sutil/configmap.go index a33329d..532d8a8 100644 --- a/pkg/k8sutil/configmap.go +++ b/pkg/k8sutil/configmap.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package k8sutil import ( diff --git a/pkg/k8sutil/context.go b/pkg/k8sutil/context.go old mode 100644 new mode 100755 index 710a549..a364c8e --- a/pkg/k8sutil/context.go +++ b/pkg/k8sutil/context.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package k8sutil import ( diff --git a/pkg/k8sutil/haProxy.go b/pkg/k8sutil/haProxy.go index e848bc4..cd8db11 100644 --- a/pkg/k8sutil/haProxy.go +++ b/pkg/k8sutil/haProxy.go @@ -1,11 +1,13 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package k8sutil import ( "crypto/sha256" "encoding/hex" "sort" - "context" + "github.com/cisco-open/k8s-objectmatcher/patch" marklogicv1 "github.com/marklogic/marklogic-operator-kubernetes/api/v1" "github.com/marklogic/marklogic-operator-kubernetes/pkg/result" diff --git a/pkg/k8sutil/haProxyHelper.go b/pkg/k8sutil/haProxyHelper.go index 6ede799..c7ffcb0 100644 --- a/pkg/k8sutil/haProxyHelper.go +++ b/pkg/k8sutil/haProxyHelper.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package k8sutil import ( diff --git a/pkg/k8sutil/handler.go b/pkg/k8sutil/handler.go index 0faeff5..6883a7a 100644 --- a/pkg/k8sutil/handler.go +++ b/pkg/k8sutil/handler.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package k8sutil import ( diff --git a/pkg/k8sutil/ingress.go b/pkg/k8sutil/ingress.go index df2d34a..e55beac 100644 --- a/pkg/k8sutil/ingress.go +++ b/pkg/k8sutil/ingress.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package k8sutil import ( diff --git a/pkg/k8sutil/marklogicServer.go b/pkg/k8sutil/marklogicServer.go index 838fec5..0171ef8 100644 --- a/pkg/k8sutil/marklogicServer.go +++ b/pkg/k8sutil/marklogicServer.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package k8sutil import ( diff --git a/pkg/k8sutil/networkPolicy.go b/pkg/k8sutil/networkPolicy.go index 56578da..1d69b2b 100644 --- a/pkg/k8sutil/networkPolicy.go +++ b/pkg/k8sutil/networkPolicy.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package k8sutil import ( diff --git a/pkg/k8sutil/scripts/copy-certs.sh b/pkg/k8sutil/scripts/copy-certs.sh index 939fee3..00301c6 100644 --- a/pkg/k8sutil/scripts/copy-certs.sh +++ b/pkg/k8sutil/scripts/copy-certs.sh @@ -1,4 +1,5 @@ #!/bin/bash +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. MARKLOGIC_ADMIN_USERNAME="$(< /run/secrets/ml-secrets/username)" MARKLOGIC_ADMIN_PASSWORD="$(< /run/secrets/ml-secrets/password)" diff --git a/pkg/k8sutil/scripts/poststart-hook.sh b/pkg/k8sutil/scripts/poststart-hook.sh index 3abedba..7febcbc 100644 --- a/pkg/k8sutil/scripts/poststart-hook.sh +++ b/pkg/k8sutil/scripts/poststart-hook.sh @@ -1,4 +1,6 @@ -#! /bin/bash +#! /bin/bash +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + # Refer to https://docs.marklogic.com/guide/admin-api/cluster#id_10889 for cluster joining process N_RETRY=10 diff --git a/pkg/k8sutil/scripts/prestop-hook.sh b/pkg/k8sutil/scripts/prestop-hook.sh index 67220fd..f3f828f 100644 --- a/pkg/k8sutil/scripts/prestop-hook.sh +++ b/pkg/k8sutil/scripts/prestop-hook.sh @@ -1,4 +1,5 @@ #!/bin/bash +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. MARKLOGIC_ADMIN_USERNAME="$(< /run/secrets/ml-secrets/username)" MARKLOGIC_ADMIN_PASSWORD="$(< /run/secrets/ml-secrets/password)" diff --git a/pkg/k8sutil/secret.go b/pkg/k8sutil/secret.go index 720cc7b..f9e5b4e 100644 --- a/pkg/k8sutil/secret.go +++ b/pkg/k8sutil/secret.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package k8sutil import ( diff --git a/pkg/k8sutil/service.go b/pkg/k8sutil/service.go index 1a1569d..495942f 100644 --- a/pkg/k8sutil/service.go +++ b/pkg/k8sutil/service.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package k8sutil import ( diff --git a/pkg/k8sutil/serviceaccount.go b/pkg/k8sutil/serviceaccount.go index 521c819..c048c4c 100644 --- a/pkg/k8sutil/serviceaccount.go +++ b/pkg/k8sutil/serviceaccount.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package k8sutil import ( diff --git a/pkg/k8sutil/statefulset.go b/pkg/k8sutil/statefulset.go index 29d57c2..283a8ce 100644 --- a/pkg/k8sutil/statefulset.go +++ b/pkg/k8sutil/statefulset.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package k8sutil import ( diff --git a/pkg/result/result_helper.go b/pkg/result/result_helper.go index 7218543..9f1fb20 100644 --- a/pkg/result/result_helper.go +++ b/pkg/result/result_helper.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package result import ( diff --git a/test/e2e/1_operator_ready_test.go b/test/e2e/1_operator_ready_test.go index 2eb7fc3..6458394 100644 --- a/test/e2e/1_operator_ready_test.go +++ b/test/e2e/1_operator_ready_test.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package e2e import ( diff --git a/test/e2e/2_marklogic_cluster_test.go b/test/e2e/2_marklogic_cluster_test.go index f021866..39bde25 100644 --- a/test/e2e/2_marklogic_cluster_test.go +++ b/test/e2e/2_marklogic_cluster_test.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package e2e import ( diff --git a/test/e2e/3_ml_cluster_ednode_test.go b/test/e2e/3_ml_cluster_ednode_test.go index 5e872f5..57df27a 100644 --- a/test/e2e/3_ml_cluster_ednode_test.go +++ b/test/e2e/3_ml_cluster_ednode_test.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package e2e import ( diff --git a/test/e2e/4_tls_test.go b/test/e2e/4_tls_test.go index b1c564e..86efd6d 100644 --- a/test/e2e/4_tls_test.go +++ b/test/e2e/4_tls_test.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package e2e import ( diff --git a/test/e2e/5_haproxy_test.go b/test/e2e/5_haproxy_test.go index 7db0505..86cd0d3 100644 --- a/test/e2e/5_haproxy_test.go +++ b/test/e2e/5_haproxy_test.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package e2e import ( diff --git a/test/e2e/data/loki.yaml b/test/e2e/data/loki.yaml index fbab5f9..aea7a16 100644 --- a/test/e2e/data/loki.yaml +++ b/test/e2e/data/loki.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + deploymentMode: SingleBinary loki: auth_enabled: false diff --git a/test/e2e/kind-config.yaml b/test/e2e/kind-config.yaml index 583886c..d7c42e0 100644 --- a/test/e2e/kind-config.yaml +++ b/test/e2e/kind-config.yaml @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + kind: Cluster apiVersion: kind.x-k8s.io/v1alpha4 nodes: diff --git a/test/e2e/main_test.go b/test/e2e/main_test.go index 29be6b7..f30031e 100644 --- a/test/e2e/main_test.go +++ b/test/e2e/main_test.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package e2e import ( diff --git a/test/test_data/ca_cert/server.cnf b/test/test_data/ca_cert/server.cnf index 6f5a17a..8a87553 100644 --- a/test/test_data/ca_cert/server.cnf +++ b/test/test_data/ca_cert/server.cnf @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + [req] default_md = sha256 prompt = no diff --git a/test/test_data/dnode_zero_certs/server.cnf b/test/test_data/dnode_zero_certs/server.cnf index f901755..ff00946 100644 --- a/test/test_data/dnode_zero_certs/server.cnf +++ b/test/test_data/dnode_zero_certs/server.cnf @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + [req] default_md = sha256 prompt = no diff --git a/test/test_data/enode_zero_certs/server.cnf b/test/test_data/enode_zero_certs/server.cnf index 2586e92..9970de7 100644 --- a/test/test_data/enode_zero_certs/server.cnf +++ b/test/test_data/enode_zero_certs/server.cnf @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + [req] default_md = sha256 prompt = no diff --git a/test/test_data/pod_one_certs/server.cnf b/test/test_data/pod_one_certs/server.cnf index 20ff8c9..b840b23 100644 --- a/test/test_data/pod_one_certs/server.cnf +++ b/test/test_data/pod_one_certs/server.cnf @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + [req] default_md = sha256 prompt = no diff --git a/test/test_data/pod_zero_certs/server.cnf b/test/test_data/pod_zero_certs/server.cnf index 998ee2d..22f2832 100644 --- a/test/test_data/pod_zero_certs/server.cnf +++ b/test/test_data/pod_zero_certs/server.cnf @@ -1,3 +1,5 @@ +# Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + [req] default_md = sha256 prompt = no diff --git a/test/utils/certs.go b/test/utils/certs.go index 81d7df5..2b5e5d1 100644 --- a/test/utils/certs.go +++ b/test/utils/certs.go @@ -1,3 +1,5 @@ +// Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. + package utils import ( diff --git a/test/utils/utils.go b/test/utils/utils.go index 04b63ca..f6b188a 100644 --- a/test/utils/utils.go +++ b/test/utils/utils.go @@ -1,5 +1,5 @@ /* -Copyright 2024. +Copyright (c) 2024-2025 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.