Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ We as members, contributors, and leaders pledge to make participation in our com

## Licensing

Copyright 2025 SAP SE or an SAP affiliate company and cap-operator-lifecycle contributors. Please see our [LICENSE](LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/SAP/cap-operator-lifecycle).
Copyright 2026 SAP SE or an SAP affiliate company and cap-operator-lifecycle contributors. Please see our [LICENSE](LICENSE) for copyright and license information. Detailed information including third-party components and their licensing/copyright information is available [via the REUSE tool](https://api.reuse.software/info/github.com/SAP/cap-operator-lifecycle).

2 changes: 1 addition & 1 deletion REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ SPDX-PackageComment = "The code in this project may include calls to APIs (\"API
[[annotations]]
path = "**"
precedence = "aggregate"
SPDX-FileCopyrightText = "2025 SAP SE or an SAP affiliate company and cap-operator-lifecycle contributors"
SPDX-FileCopyrightText = "2026 SAP SE or an SAP affiliate company and cap-operator-lifecycle contributors"
SPDX-License-Identifier = "Apache-2.0"
2 changes: 1 addition & 1 deletion api/v1alpha1/capoperator_types.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-License-Identifier: Apache-2.0
*/

Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/groupversion_info.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-License-Identifier: Apache-2.0
*/

Expand Down
2 changes: 1 addition & 1 deletion api/v1alpha1/zz_generated.deepcopy.go

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

2 changes: 1 addition & 1 deletion hack/boilerplate.go.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and cap-operator-lifecycle contributors
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and cap-operator-lifecycle contributors
SPDX-License-Identifier: Apache-2.0
*/
2 changes: 1 addition & 1 deletion internal/transformer/object_transformer.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-License-Identifier: Apache-2.0
*/

Expand Down
2 changes: 1 addition & 1 deletion internal/transformer/object_transformer_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-License-Identifier: Apache-2.0
*/

Expand Down
2 changes: 1 addition & 1 deletion internal/transformer/parameter_transformer.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-License-Identifier: Apache-2.0
*/

Expand Down
2 changes: 1 addition & 1 deletion internal/transformer/parameter_transformer_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-License-Identifier: Apache-2.0
*/

Expand Down
2 changes: 1 addition & 1 deletion internal/util/util.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-License-Identifier: Apache-2.0
*/

Expand Down
2 changes: 1 addition & 1 deletion internal/util/util_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-License-Identifier: Apache-2.0
*/

Expand Down
50 changes: 2 additions & 48 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-License-Identifier: Apache-2.0
*/

Expand Down Expand Up @@ -51,23 +51,13 @@ func init() {
}

func main() {
var metricsAddr string
var probeAddr string
// Uncomment the following lines to enable webhooks.
// var webhookAddr string
// var webhookCertDir string
var metricsAddr, probeAddr, chartDir string
var enableLeaderElection bool
var chartDir string

flag.StringVar(&metricsAddr, "metrics-bind-address", ":8080",
"The address the metric endpoint binds to.")
flag.StringVar(&probeAddr, "health-probe-bind-address", ":8081",
"The address the probe endpoint binds to.")
// Uncomment the following lines to enable webhooks.
// flag.StringVar(&webhookAddr, "webhook-bind-address", ":2443",
// "The address the webhooks endpoint binds to.")
// flag.StringVar(&webhookCertDir, "webhook-tls-directory", "",
// "The directory containing tls server key and certificate, as tls.key and tls.crt; defaults to $TMPDIR/k8s-webhook-server/serving-certs")
flag.BoolVar(&enableLeaderElection, "leader-elect", false,
"Enable leader election for controller manager. Enabling this will ensure there is only one active controller manager.")
flag.StringVar(&chartDir, "manifest-directory", "./chart",
Expand All @@ -90,13 +80,6 @@ func main() {
os.Exit(1)
}

// Uncomment the following lines to enable webhooks.
// webhookHost, webhookPort, err := parseAddress(webhookAddr)
// if err != nil {
// setupLog.Error(err, "error parsing webhook address")
// os.Exit(1)
// }

mgr, err := ctrl.NewManager(ctrl.GetConfigOrDie(), ctrl.Options{
Scheme: scheme,
Client: client.Options{
Expand All @@ -107,12 +90,6 @@ func main() {
LeaderElection: enableLeaderElection,
LeaderElectionID: operator.GetName(),
LeaderElectionReleaseOnCancel: true,
// Uncomment the following lines to enable webhooks.
// WebhookServer: webhook.NewServer(webhook.Options{
// Host: webhookHost,
// Port: webhookPort,
// CertDir: webhookCertDir,
// }),
Metrics: metricsserver.Options{
BindAddress: metricsAddr,
},
Expand All @@ -123,16 +100,6 @@ func main() {
os.Exit(1)
}

// Uncomment to enable conversion webhook (in case additional api versions are added in ./api).
// Note: to make conversion work, additional changes are necessary:
// - additional api versions have to be added to InitScheme() in pkg/operator/operator.go
// - one of the api versions has to marked as Hub, all other versions need to implement the
// conversion.Convertible interface (see https://book.kubebuilder.io/multiversion-tutorial/conversion.html)
// - one of the api versions has to be marked as storage version (+kubebuilder:storageversion)
// - the crd resource has to be enhanced with a conversion section, telling the Kubernetes API server how to
// connect to the conversion endpoint.
// mgr.GetWebhookServer().Register("/convert", conversion.NewWebhookHandler(mgr.GetScheme()))

if err := operator.Setup(mgr); err != nil {
setupLog.Error(err, "error registering controller with manager")
os.Exit(1)
Expand All @@ -153,16 +120,3 @@ func main() {
os.Exit(1)
}
}

// Uncomment the following lines to enable webhooks.
// func parseAddress(address string) (string, int, error) {
// host, p, err := net.SplitHostPort(address)
// if err != nil {
// return "", -1, err
// }
// port, err := strconv.Atoi(p)
// if err != nil {
// return "", -1, err
// }
// return host, port, nil
// }
2 changes: 1 addition & 1 deletion pkg/operator/operator.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
SPDX-FileCopyrightText: 2025 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-FileCopyrightText: 2026 SAP SE or an SAP affiliate company and cap-operator contributors
SPDX-License-Identifier: Apache-2.0
*/

Expand Down
Loading