Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

License compliance updates #145

Merged
merged 1 commit into from
Nov 15, 2023
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
16 changes: 16 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/**
* Copyright 2023 Google LLC
*
* 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.
*/

module.exports = {
"parserOptions": {
"ecmaVersion": 8
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/linters.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2023 Google LLC
#
# 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.

name: markdownlint

on: [push, pull_request]
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/unit_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2023 Google LLC
#
# 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.

name: Node.js unit tests

on: [push, pull_request]
Expand Down
14 changes: 14 additions & 0 deletions .mdl.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2023 Google LLC
#
# 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.

# Enable all rules by default
all

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2020 Google LLC
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.
Expand Down
20 changes: 11 additions & 9 deletions src/scaler/scaler-core/state.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
/* Copyright 2020 Google LLC
/**
* Copyright 2023 Google LLC
*
* 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
*
Expand All @@ -9,7 +11,7 @@
* 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
* limitations under the License.
*/

/*
Expand All @@ -18,8 +20,8 @@
* By default, this implementation uses a Firestore instance in the same
* project as the Spanner instance. To use a different project, set the
* `stateProjectId` parameter in the Cloud Scheduler configuration.
*
* To use another database to save autoscaler state, set the
*
* To use another database to save autoscaler state, set the
* `stateDatabase.name` parameter in the Cloud Scheduler configuration.
* The default database is Firestore.
*/
Expand Down Expand Up @@ -66,11 +68,11 @@ module.exports = State;

/*
* Manages the Autoscaler persistent state in spanner.
*
*
* To manage the Autoscaler state in a spanner database,
* set the `stateDatabase.name` parameter to 'spanner' in the Cloud Scheduler configuration.
* The following is an example.
*
*
* {
* "stateDatabase": {
* "name": "spanner",
Expand Down Expand Up @@ -167,12 +169,12 @@ class StateSpanner {

/*
* Manages the Autoscaler persistent state in firestore.
*
*
* The default database for state management is firestore.
* It is also possible to manage with firestore
* It is also possible to manage with firestore
* by explicitly setting `stateDatabase.name` to 'firestore'.
* The following is an example.
*
*
* {
* "stateDatabase": {
* "name": "firestore"
Expand Down
2 changes: 1 addition & 1 deletion terraform/cloud-functions/distributed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,5 +411,5 @@ its configuration issues independently.
[cloud-console]: https://console.cloud.google.com
[cloud-shell]: https://console.cloud.google.com/?cloudshell=true&_ga=2.43377068.820133692.1587377411-71235912.1585654570&_gac=1.118947195.1584696876.Cj0KCQjw09HzBRDrARIsAG60GP9u6OBk_qQ02rkzBXpwpMd6YZ30A2D4gSl2Wwte1CqPW_sY6mH_xbIaAmIgEALw_wcB
[provider-issue]: https://github.com/hashicorp/terraform-provider-google/issues/6782
[logs-viewer]: https://pantheon.corp.google.com/logs/query
[logs-viewer]: https://console.cloud.google.com/logs/query
[firestore-native]: https://cloud.google.com/datastore/docs/firestore-or-datastore#in_native_mode
Loading