Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
ef33858
add sds-common-scheduler-extender template
krpsh123 Apr 24, 2025
0b56e6c
[sds-common-scheduler-extender] del src
krpsh123 Apr 24, 2025
dde5f4c
[sds-common-scheduler-extender] replace pkg name
krpsh123 Apr 24, 2025
93a0adb
add sds-common-scheduler-extender templates
krpsh123 Apr 24, 2025
4998668
[sds-common-scheduler-extender] templates are finished
krpsh123 Apr 24, 2025
415c269
[sds-common-scheduler-extender] fix configmap
krpsh123 Apr 24, 2025
03e0677
add hook: common-scheduler-extender-certs.go
krpsh123 Apr 25, 2025
96c860f
[sds-common-scheduler-extender] fix templates
krpsh123 Apr 25, 2025
bdf8b07
[sds-common-scheduler-extender] fix path to certs
krpsh123 Apr 25, 2025
cffadc2
add kube client to cache manager
MrTomSawyer Apr 25, 2025
225b1c6
minor cache manager fix
MrTomSawyer Apr 25, 2025
fd950da
[sds-common-scheduler-extender] del RoleBinding
krpsh123 Apr 25, 2025
0db1901
changed namespace const value
MrTomSawyer Apr 25, 2025
75053cb
change check duration
MrTomSawyer Apr 25, 2025
1000146
minor logic update
MrTomSawyer Apr 25, 2025
a89e3de
add /status route + fix routes' names
MrTomSawyer Apr 28, 2025
1cf79bb
minor routes names fix
MrTomSawyer Apr 28, 2025
1744f86
add rbac
MrTomSawyer Apr 28, 2025
a435c95
add more rbac
MrTomSawyer Apr 28, 2025
8df89c8
add mocks
MrTomSawyer Apr 28, 2025
d147afd
add LVGWatcherCacheCtrlName startup
MrTomSawyer Apr 28, 2025
9127eed
add configmap rbac
MrTomSawyer Apr 28, 2025
ac672e1
[sds-common-scheduler-extender] add checksum/ca to deploy
krpsh123 Apr 28, 2025
8af9fa8
add bebug
MrTomSawyer Apr 28, 2025
4b3f316
change log level
MrTomSawyer Apr 28, 2025
96dbed6
fix base_images.yml
krpsh123 Apr 28, 2025
04524d3
Revert "fix base_images.yml"
krpsh123 Apr 29, 2025
1f6c29b
return nodes without filtration
MrTomSawyer Apr 30, 2025
0876786
removed filter hardcode
MrTomSawyer Apr 30, 2025
a2f7155
added logging to filter and prioritize
MrTomSawyer Apr 30, 2025
5543241
hardcode log level
MrTomSawyer Apr 30, 2025
6319f4f
fix log
MrTomSawyer Apr 30, 2025
89649ff
werf fix
MrTomSawyer Apr 30, 2025
6fa4762
fix log
MrTomSawyer Apr 30, 2025
7c09308
major scheduler refactor
MrTomSawyer May 7, 2025
b5e263e
add middleware
MrTomSawyer May 13, 2025
5dd92cf
typo fix
MrTomSawyer May 13, 2025
ba9867d
add middleware
MrTomSawyer May 14, 2025
49ce992
fix middleware
MrTomSawyer May 14, 2025
f0300df
shouldProcess upd
MrTomSawyer May 14, 2025
7a05061
add logging
MrTomSawyer May 14, 2025
2bdb9fc
add more log
MrTomSawyer May 14, 2025
7209b7e
fix middleware again
MrTomSawyer May 14, 2025
ce7bfc9
add unmarshal middleware
MrTomSawyer May 14, 2025
478b79f
change handling logic
MrTomSawyer May 15, 2025
617d534
change middleware order
MrTomSawyer May 15, 2025
2e98693
add http.HandlerFunc(
MrTomSawyer May 15, 2025
0f1e722
middleware rework
MrTomSawyer May 16, 2025
d91b967
change middleware order
MrTomSawyer May 16, 2025
9d77764
remove logging, add new handler
MrTomSawyer May 16, 2025
6eda76b
add logging
MrTomSawyer May 16, 2025
4c4c956
add logging to collectLVGScoreInfo
MrTomSawyer May 16, 2025
c290b5b
add space reservation remocal
MrTomSawyer May 16, 2025
6e19515
add new consts
MrTomSawyer May 16, 2025
a262fa7
add logging
MrTomSawyer May 16, 2025
7ef9874
change LvmTypeParamKey name
MrTomSawyer May 19, 2025
5969b3d
minor bug fix
MrTomSawyer May 19, 2025
ab911bb
fix filterPVCsByProvisioner method
MrTomSawyer May 20, 2025
818392b
bug fix in method filterPVCsByProvisioner
MrTomSawyer May 20, 2025
f9325d0
add logging
MrTomSawyer May 20, 2025
92ea113
add new getDRBDNodesMap method logic
MrTomSawyer May 21, 2025
cd2fd6f
some improvements
MrTomSawyer May 21, 2025
2732f60
add local volume filtering
MrTomSawyer May 21, 2025
c1bc6af
add logging
MrTomSawyer May 22, 2025
de06e4d
minor refactor
MrTomSawyer May 23, 2025
5f56304
fix filter namaged pvcs bug
MrTomSawyer May 23, 2025
c845def
update ExtractLVGsFromSC method
MrTomSawyer May 26, 2025
118f22e
fix ExtractLVGsFromSC method
MrTomSawyer May 26, 2025
6858591
Fix in CI
duckhawk May 27, 2025
af2bf2d
Fix in CI
duckhawk May 27, 2025
1095bb1
Fix in CI
duckhawk May 27, 2025
a3668ed
Fix in CI
duckhawk May 27, 2025
95a0a9c
add local sc to cheme
MrTomSawyer May 27, 2025
0bba327
fix collectFilterInput method bug
MrTomSawyer May 27, 2025
e17f815
add rbac
MrTomSawyer May 28, 2025
7525faa
add rbac
MrTomSawyer May 28, 2025
57f0a97
add 0 points to node 2
MrTomSawyer May 28, 2025
8fe6cca
add cluster syncer
MrTomSawyer May 28, 2025
30f6433
add init containers to deployment
MrTomSawyer May 28, 2025
5c9e3a0
deployment fix
MrTomSawyer May 28, 2025
67e8b11
removed linstor client and its envs
MrTomSawyer May 28, 2025
95e0bca
Fix build
duckhawk May 28, 2025
5e0ba91
return nil
MrTomSawyer May 28, 2025
306dfb8
removed drbd syncer
MrTomSawyer May 28, 2025
48f7e37
add drbd cluster syncer
MrTomSawyer May 28, 2025
8223866
add new logic
MrTomSawyer May 30, 2025
51898e3
Signed-off-by: v.oleynikov <[email protected]>
duckhawk May 30, 2025
a681791
Fix module version choose
duckhawk May 30, 2025
498ee00
Fix module version choose
duckhawk May 30, 2025
506ae06
Fix module version choose
duckhawk May 30, 2025
85d17c3
Fix module version choose
duckhawk May 30, 2025
f0f415a
add score logic fix
MrTomSawyer Jun 4, 2025
ce45499
Fix values_ee.yaml
duckhawk Jun 4, 2025
fd0e7f5
Fix values_ee.yaml
duckhawk Jun 4, 2025
1a2ecf4
Fix values_ee.yaml
duckhawk Jun 4, 2025
339a010
removed drbd cluster syncer
MrTomSawyer Jun 4, 2025
1bebdf9
fix rbac
MrTomSawyer Jun 4, 2025
07f8e0c
minor dependency fix
MrTomSawyer Jun 5, 2025
da8ebc8
empty commit
MrTomSawyer Jun 5, 2025
d875930
empty commit
MrTomSawyer Jun 5, 2025
dd05a04
Merge branch 'main' into pkarp-common-scheduler-extender
MrTomSawyer Jun 5, 2025
575932e
add lapi to scheme
MrTomSawyer Jun 5, 2025
b52ef92
add srv v2
MrTomSawyer Jun 5, 2025
d7723d3
add rbac
MrTomSawyer Jun 5, 2025
21d1e75
empty commit
MrTomSawyer Jun 5, 2025
41c5275
fix
MrTomSawyer Jun 5, 2025
a092d9f
add logging
MrTomSawyer Jun 5, 2025
5cf0c66
add more logging
MrTomSawyer Jun 5, 2025
6082a2c
empry commit
MrTomSawyer Jun 5, 2025
683f74b
add logging
MrTomSawyer Jun 5, 2025
6087b7d
filterSingleNodeSRV method logic update
MrTomSawyer Jun 9, 2025
c9027fe
add LVGWatcherCacheController
MrTomSawyer Jun 10, 2025
d9bce15
fix LVGLayerResourceIDsWatcherName
MrTomSawyer Jun 10, 2025
626a61c
add rbac
MrTomSawyer Jun 10, 2025
75cacc2
fix name
astef Jun 11, 2025
12fa9a4
fix 2
astef Jun 11, 2025
c80617b
add kube-scheduler to deployment
astef Jun 11, 2025
7a0ab00
Revert "add kube-scheduler to deployment"
astef Jun 11, 2025
21385fa
remove quote
astef Jun 11, 2025
9b09adb
logging error fix
MrTomSawyer Jun 11, 2025
6bceaa4
add logging
MrTomSawyer Jun 17, 2025
850c4f4
fixes
NikolayDemchuk Jul 29, 2025
27ec8a3
fix
NikolayDemchuk Jul 29, 2025
d31108f
fix
NikolayDemchuk Jul 29, 2025
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
16 changes: 16 additions & 0 deletions .github/workflows/build_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,22 @@ jobs:
wget https://fox.flant.com/api/v4/projects/deckhouse%2Fbase-images/packages/generic/base_images/$BASE_IMAGES_VERSION/base_images.yml -O base_images.yml
cat base_images.yml

eval $(ssh-agent)
trap "kill -3 ${SSH_AGENT_PID}" ERR EXIT HUP INT QUIT TERM
ssh-add - <<< "$SOURCE_REPO_SSH_KEY"
export SSH_KNOWN_HOSTS=~/.ssh/known_hosts

HOST=$(grep -oP '(?<=@)[^/:]+' <<< $SOURCE_REPO)
mkdir -p ~/.ssh
touch ~/.ssh/known_hosts
HOST_KEYS=$(ssh-keyscan -H "$HOST" 2>/dev/null)
while IFS= read -r KEY_LINE; do
CONSTANT_PART=$(awk '{print $2, $3}' <<< "$KEY_LINE")
if ! grep -q "$CONSTANT_PART" ~/.ssh/known_hosts; then
echo "$KEY_LINE" >> ~/.ssh/known_hosts
fi
done <<< "$HOST_KEYS"

- uses: deckhouse/modules-actions/setup@v2
with:
registry: ${{ vars.PROD_REGISTRY }}
Expand Down
10 changes: 4 additions & 6 deletions .werf/choose-edition.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,13 @@ fromImage: builder/alt
fromCacheVersion: {{ div .Commit.Date.Unix (mul 60 60 24 30) }}

git:
- add: /
to: /
includePaths:
- openapi
- add: /openapi
to: /openapi
stageDependencies:
setup:
- openapi/values_*.yaml
- '**/*'
shell:
setup:
- cd /openapi
- if [[ {{ .MODULE_EDITION }} == "ce" ]]; then cp -v values_ce.yaml values.yaml; else cp -v values_ee.yaml values.yaml; fi
- if [[ {{ .MODULE_EDITION }} == "ce" ]]; then cp -fv values_ce.yaml values.yaml; fi
- rm -rf values_*.yaml
7 changes: 1 addition & 6 deletions .werf/consts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,4 @@
{{- $versions := dict }}
{{- $_ := set $versions "UTIL_LINUX" "v2.39.3" }}
{{- $_ := set $versions "LVM2" "d786a8f820d54ce87a919e6af5426c333c173b11" }}

{{- $_ := set $ "VERSIONS" $versions }}

# custom constants
{{- $_ := set $ "DECKHOUSE_UID_GID" "64535" }}
{{- $_ := set $ "ALT_CLEANUP_CMD" "rm -rf /var/lib/apt/lists/* /var/cache/apt/* && mkdir -p /var/lib/apt/lists/partial /var/cache/apt/archives/partial" }}
{{- $_ := set . "VERSIONS" $versions }}
60 changes: 60 additions & 0 deletions .werf/werf.inc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
image: {{ .ModuleNamePrefix }}{{ .ImageName }}-src-artifact
fromImage: builder/src
final: false

git:
- add: {{ .ModuleDir }}
to: /src
includePaths:
- api
- lib/go
- images/{{ $.ImageName }}
stageDependencies:
install:
- '**/*'
excludePaths:
- images/{{ $.ImageName }}/werf.yaml

shell:
install:
- echo "src artifact"

---
image: {{ .ModuleNamePrefix }}{{ .ImageName }}-golang-artifact
fromImage: builder/golang-alpine
final: false

import:
- image: {{ .ModuleNamePrefix }}{{ .ImageName }}-src-artifact
add: /src
to: /src
before: install

mount:
{{ include "mount points for golang builds" . }}

secrets:
- id: GOPROXY
value: {{ .GOPROXY }}

shell:
setup:
- cd /src/images/{{ $.ImageName }}/cmd
- GOPROXY=$(cat /run/secrets/GOPROXY) go mod download
- GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags="-s -w" -tags {{ .MODULE_EDITION }} -o /{{ $.ImageName }}
- chmod +x /{{ $.ImageName }}

---
image: {{ .ModuleNamePrefix }}{{ .ImageName }}
fromImage: base/distroless

import:
- image: {{ .ModuleNamePrefix }}{{ .ImageName }}-golang-artifact
add: /{{ $.ImageName }}
to: /{{ $.ImageName }}
before: install

imageSpec:
config:
entrypoint: ["/{{ $.ImageName }}"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/*
Copyright 2025 Flant JSC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

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.
*/

package hooks_common

import (
"fmt"

tlscertificate "github.com/deckhouse/module-sdk/common-hooks/tls-certificate"
consts "github.com/deckhouse/sds-node-configurator/hooks/go/consts"
)

var _ = tlscertificate.RegisterInternalTLSHookEM(tlscertificate.GenSelfSignedTLSHookConf{
CommonCACanonicalName: fmt.Sprintf("%s-%s", consts.ModulePluralName, consts.SdsCommonSchedulerExtenderCertCn),
CN: consts.SdsCommonSchedulerExtenderCertCn,
TLSSecretName: consts.CommonSchedulerExtenderSecretName,
Namespace: consts.ModuleNamespace,
SANs: tlscertificate.DefaultSANs([]string{
"localhost",
"127.0.0.1",
consts.SdsCommonSchedulerExtenderCertCn,
fmt.Sprintf("%s.%s", consts.SdsCommonSchedulerExtenderCertCn, consts.ModuleNamespace),
fmt.Sprintf("%s.%s.svc", consts.SdsCommonSchedulerExtenderCertCn, consts.ModuleNamespace),
// %CLUSTER_DOMAIN%:// is a special value to generate SAN like 'svc_name.svc_namespace.svc.cluster.local'
fmt.Sprintf("%%CLUSTER_DOMAIN%%://%s.%s.svc", consts.SdsCommonSchedulerExtenderCertCn, consts.ModuleNamespace),
}),
FullValuesPathPrefix: fmt.Sprintf("%s.internal.customSchedulerExtenderCert", consts.ModuleName),
})
10 changes: 6 additions & 4 deletions hooks/go/consts/consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ limitations under the License.
package consts

const (
ModuleName string = "sdsNodeConfigurator"
ModuleNamespace string = "d8-sds-node-configurator"
ModulePluralName string = "sds-node-configurator"
WebhookCertCn string = "webhooks"
ModuleName string = "sdsNodeConfigurator"
ModuleNamespace string = "d8-sds-node-configurator"
ModulePluralName string = "sds-node-configurator"
WebhookCertCn string = "webhooks"
SdsCommonSchedulerExtenderCertCn string = "sds-common-scheduler-extender"
CommonSchedulerExtenderSecretName string = "common-scheduler-extender-https-certs"
)
1 change: 1 addition & 0 deletions hooks/go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package main

import (
"github.com/deckhouse/module-sdk/pkg/app"
_ "github.com/deckhouse/sds-node-configurator/hooks/go/020-common-scheduler-extender-certs"
_ "github.com/deckhouse/sds-node-configurator/hooks/go/020-webhook-certs"
)

Expand Down
201 changes: 201 additions & 0 deletions images/sds-common-scheduler-extender/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"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.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"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.

"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).

"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.

"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."

"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.

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.

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.

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:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(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

(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.

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.

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.

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.

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.

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.

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.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

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.

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

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.
Loading
Loading