Skip to content

Commit 4d20659

Browse files
committed
Add copyright header to each relevant file
Refs #63
1 parent 051f2ec commit 4d20659

34 files changed

+546
-1
lines changed

crate/operator/__init__.py

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.

crate/operator/backup.py

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117
import logging
218
from typing import Any, Awaitable, Dict, List, Optional, Tuple, Union
319

crate/operator/bootstrap.py

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117
import asyncio
218
import logging
319
from typing import Any, Dict, List, Optional

crate/operator/config.py

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117
import logging
218
import os
319
from typing import List, Optional

crate/operator/constants.py

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117
import enum
218

319
API_GROUP = "cloud.crate.io"

crate/operator/cratedb.py

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117
import asyncio
218
import functools
319
import logging

crate/operator/create.py

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117
import logging
218
import math
319
import pkgutil

crate/operator/exceptions.py

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
17+
118
class ConfigurationError(ValueError):
219
"""
320
Exception raised when there are configuration issues with the operator.

crate/operator/kube_auth.py

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117
import logging
218
from typing import Any, Optional, Sequence, Union
319

crate/operator/main.py

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117
import asyncio
218
import enum
319
import logging

crate/operator/operations.py

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117
import asyncio
218
import functools
319
import logging

crate/operator/scale.py

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117
import asyncio
218
import logging
319
import sys

crate/operator/upgrade.py

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117
import asyncio
218

319
import kopf

crate/operator/utils/__init__.py

+17
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
17+
118
def quorum(n: int) -> int:
219
"""
320
Calculate the quorum for a given set of nodes.

crate/operator/utils/formatting.py

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117
import base64
218
import functools
319
from typing import Callable

crate/operator/utils/kubeapi.py

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117
import asyncio
218
import logging
319
from typing import Awaitable, Callable, Optional

crate/operator/utils/secrets.py

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117
import secrets
218
import string
319

crate/operator/utils/typing.py

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117
from typing import Dict, TypedDict, TypeVar
218

319
from kubernetes_asyncio.client.models import (

crate/operator/webhooks.py

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117
import enum
218
import logging
319
from typing import List, Optional, TypedDict

deploy/manifests/00-crd-cratedb.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# CrateDB Kubernetes Operator
2+
# Copyright (C) 2020 Crate.io AT GmbH
3+
#
4+
# This program is free software: you can redistribute it and/or modify
5+
# it under the terms of the GNU Affero General Public License as published by
6+
# the Free Software Foundation, either version 3 of the License, or
7+
# (at your option) any later version.
8+
#
9+
# This program is distributed in the hope that it will be useful,
10+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12+
# GNU Affero General Public License for more details.
13+
#
14+
# You should have received a copy of the GNU Affero General Public License
15+
# along with this program. If not, see <https://www.gnu.org/licenses/>.
16+
117
---
218
apiVersion: apiextensions.k8s.io/v1beta1
319
kind: CustomResourceDefinition

0 commit comments

Comments
 (0)