From 4971fb2c069ad3680a9e4485927af3432895def8 Mon Sep 17 00:00:00 2001 From: Derek Hudson <dhudsons@amazon.com> Date: Wed, 25 Oct 2023 13:35:49 +0000 Subject: [PATCH] Added license to AWS files without one. --- app/tests/aws/__init__.py | 14 ++++++++++++++ app/tests/aws/aws_jwt_client.py | 14 ++++++++++++++ app/tests/aws/run-integration-tests.sh | 15 +++++++++++++++ build/aws/build-aws/Dockerfile | 14 ++++++++++++++ devops/aws/bootstrap.yaml | 14 ++++++++++++++ devops/aws/chart/.helmignore | 14 ++++++++++++++ devops/aws/chart/Chart.yaml | 14 ++++++++++++++ devops/aws/chart/templates/NOTES.txt | 13 +++++++++++++ .../aws/chart/templates/authorizationpolicy.yaml | 15 ++++++++++++++- devops/aws/chart/templates/deployment.yaml | 15 ++++++++++++++- devops/aws/chart/templates/destinationrule.yaml | 15 ++++++++++++++- devops/aws/chart/templates/scaledobject.yaml | 15 ++++++++++++++- devops/aws/chart/templates/service.yaml | 15 ++++++++++++++- devops/aws/chart/templates/serviceaccount.yaml | 15 ++++++++++++++- devops/aws/chart/templates/virtualservice.yaml | 15 ++++++++++++++- devops/aws/chart/values.yaml | 14 ++++++++++++++ devops/aws/opa/.helmignore | 14 ++++++++++++++ devops/aws/opa/Chart.yaml | 14 ++++++++++++++ devops/aws/opa/templates/NOTES.txt | 13 +++++++++++++ devops/aws/opa/templates/configmap.yaml | 15 ++++++++++++++- devops/aws/opa/templates/deployment.yaml | 15 ++++++++++++++- devops/aws/opa/templates/scaledobject.yaml | 15 ++++++++++++++- devops/aws/opa/templates/service.yaml | 15 ++++++++++++++- devops/aws/opa/templates/serviceaccount.yaml | 15 ++++++++++++++- devops/aws/opa/values.yaml | 14 ++++++++++++++ devops/aws/override-stages.yaml | 14 ++++++++++++++ 26 files changed, 363 insertions(+), 12 deletions(-) diff --git a/app/tests/aws/__init__.py b/app/tests/aws/__init__.py index e69de29b..41ff2bc5 100644 --- a/app/tests/aws/__init__.py +++ b/app/tests/aws/__init__.py @@ -0,0 +1,14 @@ +# Copyright © 2020 Amazon Web Services +# +# 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. + diff --git a/app/tests/aws/aws_jwt_client.py b/app/tests/aws/aws_jwt_client.py index a23b5ee1..f7c32258 100644 --- a/app/tests/aws/aws_jwt_client.py +++ b/app/tests/aws/aws_jwt_client.py @@ -1,3 +1,17 @@ +# Copyright © 2020 Amazon Web Services +# +# 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. + import os; import boto3; import jwt; diff --git a/app/tests/aws/run-integration-tests.sh b/app/tests/aws/run-integration-tests.sh index f3bdffa7..2b4db643 100644 --- a/app/tests/aws/run-integration-tests.sh +++ b/app/tests/aws/run-integration-tests.sh @@ -1,4 +1,19 @@ #!/usr/bin/env bash + +# Copyright © 2020 Amazon Web Services +# +# 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. + # from tests/aws/ goes up to the tests dir. cd ../../ diff --git a/build/aws/build-aws/Dockerfile b/build/aws/build-aws/Dockerfile index 315fb9ee..779ec0f0 100644 --- a/build/aws/build-aws/Dockerfile +++ b/build/aws/build-aws/Dockerfile @@ -1,3 +1,17 @@ +# Copyright © 2020 Amazon Web Services +# +# 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. + # This Dockerfile assumes you used "make build" to convert the AdminUI to static files in frontend/adminui/dist/policyservice FROM public.ecr.aws/docker/library/python:3.9-slim-buster diff --git a/devops/aws/bootstrap.yaml b/devops/aws/bootstrap.yaml index e8cad6eb..9afbce62 100644 --- a/devops/aws/bootstrap.yaml +++ b/devops/aws/bootstrap.yaml @@ -1,3 +1,17 @@ +# Copyright © 2020 Amazon Web Services +# +# 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. + aws_bootstrap: stage: bootstrap image: $CI_REGISTRY/osdu/platform/deployment-and-operations/base-containers-aws/aws-python/aws-python:v1.0-py3.8 diff --git a/devops/aws/chart/.helmignore b/devops/aws/chart/.helmignore index 6e238cb1..95d3192e 100644 --- a/devops/aws/chart/.helmignore +++ b/devops/aws/chart/.helmignore @@ -1,3 +1,17 @@ +# Copyright © 2020 Amazon Web Services +# +# 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. + # Patterns to ignore when building packages. # This supports shell glob matching, relative path matching, and # negation (prefixed with !). Only one pattern per line. diff --git a/devops/aws/chart/Chart.yaml b/devops/aws/chart/Chart.yaml index ef349acb..1c512288 100644 --- a/devops/aws/chart/Chart.yaml +++ b/devops/aws/chart/Chart.yaml @@ -1,3 +1,17 @@ +# Copyright © 2020 Amazon Web Services +# +# 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. + apiVersion: v2 name: "os-policy" version: __CHART_VERSION__ diff --git a/devops/aws/chart/templates/NOTES.txt b/devops/aws/chart/templates/NOTES.txt index f15afa91..d23eb419 100644 --- a/devops/aws/chart/templates/NOTES.txt +++ b/devops/aws/chart/templates/NOTES.txt @@ -1,3 +1,16 @@ +# Copyright Amazon.com, Inc. or its 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. +# 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. + {{ .Chart.Name }} deployed to {{ .Release.Namespace }} namespace {{- if (.Values.service).apiPath }} Application URL available at path {{ .Values.service.apiPath }} diff --git a/devops/aws/chart/templates/authorizationpolicy.yaml b/devops/aws/chart/templates/authorizationpolicy.yaml index 71945841..b00bcbb2 100644 --- a/devops/aws/chart/templates/authorizationpolicy.yaml +++ b/devops/aws/chart/templates/authorizationpolicy.yaml @@ -1,4 +1,17 @@ -{{- template "common.authzpolicy" (list . "os-policy.authzpolicy") -}} +# Copyright Amazon.com, Inc. or its 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. +# 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. + +{{ template "common.authzpolicy" (list . "os-policy.authzpolicy") -}} {{- define "os-policy.authzpolicy" -}} ## Define overrides for the service authorization policy resource here {{- end -}} diff --git a/devops/aws/chart/templates/deployment.yaml b/devops/aws/chart/templates/deployment.yaml index 854d1b54..2fca0caa 100644 --- a/devops/aws/chart/templates/deployment.yaml +++ b/devops/aws/chart/templates/deployment.yaml @@ -1,4 +1,17 @@ -{{- template "common.deployment" (list . "os-policy.deployment") -}} +# Copyright Amazon.com, Inc. or its 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. +# 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. + +{{ template "common.deployment" (list . "os-policy.deployment") -}} {{- define "os-policy.deployment" -}} ## Define overrides for the service deployment resource here {{- end -}} \ No newline at end of file diff --git a/devops/aws/chart/templates/destinationrule.yaml b/devops/aws/chart/templates/destinationrule.yaml index fc5e6d3a..57b0361d 100644 --- a/devops/aws/chart/templates/destinationrule.yaml +++ b/devops/aws/chart/templates/destinationrule.yaml @@ -1,4 +1,17 @@ -{{- template "common.destinationrule" (list . "os-policy.destinationrule") -}} +# Copyright Amazon.com, Inc. or its 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. +# 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. + +{{ template "common.destinationrule" (list . "os-policy.destinationrule") -}} {{- define "os-policy.destinationrule" -}} ## Define overrides for the service destination rule resource here {{- end -}} \ No newline at end of file diff --git a/devops/aws/chart/templates/scaledobject.yaml b/devops/aws/chart/templates/scaledobject.yaml index 7f60905b..bc0ed155 100644 --- a/devops/aws/chart/templates/scaledobject.yaml +++ b/devops/aws/chart/templates/scaledobject.yaml @@ -1,4 +1,17 @@ -{{- template "common.scaledobject" (list . "os-entitlements.scaledobject") -}} +# Copyright Amazon.com, Inc. or its 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. +# 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. + +{{ template "common.scaledobject" (list . "os-entitlements.scaledobject") -}} {{- define "os-entitlements.scaledobject" -}} ## Define overrides for the service's scaled object resource here {{- end -}} \ No newline at end of file diff --git a/devops/aws/chart/templates/service.yaml b/devops/aws/chart/templates/service.yaml index 2030a3f7..f675b0ed 100644 --- a/devops/aws/chart/templates/service.yaml +++ b/devops/aws/chart/templates/service.yaml @@ -1,4 +1,17 @@ -{{- template "common.service" (list . "os-policy.service") -}} +# Copyright Amazon.com, Inc. or its 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. +# 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. + +{{ template "common.service" (list . "os-policy.service") -}} {{- define "os-policy.service" -}} ## Define overrides for the service resource here {{- end -}} \ No newline at end of file diff --git a/devops/aws/chart/templates/serviceaccount.yaml b/devops/aws/chart/templates/serviceaccount.yaml index 9e12ecef..fa226b93 100644 --- a/devops/aws/chart/templates/serviceaccount.yaml +++ b/devops/aws/chart/templates/serviceaccount.yaml @@ -1,4 +1,17 @@ -{{- template "common.serviceaccount" (list . "os-policy.serviceaccount") -}} +# Copyright Amazon.com, Inc. or its 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. +# 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. + +{{ template "common.serviceaccount" (list . "os-policy.serviceaccount") -}} {{- define "os-policy.serviceaccount" -}} ## Define overrides for the service's service account resource here {{- end -}} \ No newline at end of file diff --git a/devops/aws/chart/templates/virtualservice.yaml b/devops/aws/chart/templates/virtualservice.yaml index 5e9d805d..d5d6d98a 100644 --- a/devops/aws/chart/templates/virtualservice.yaml +++ b/devops/aws/chart/templates/virtualservice.yaml @@ -1,4 +1,17 @@ -{{- template "common.virtualservice" (list . "os-partition.virtualservice") -}} +# Copyright Amazon.com, Inc. or its 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. +# 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. + +{{ template "common.virtualservice" (list . "os-partition.virtualservice") -}} {{- define "os-partition.virtualservice" -}} ## Define overrides for the service's virtual service resource here {{- end -}} \ No newline at end of file diff --git a/devops/aws/chart/values.yaml b/devops/aws/chart/values.yaml index 2db1c01d..d9d65c94 100644 --- a/devops/aws/chart/values.yaml +++ b/devops/aws/chart/values.yaml @@ -1 +1,15 @@ +# Copyright © 2020 Amazon Web Services +# +# 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. + image: __CONTAINER__ \ No newline at end of file diff --git a/devops/aws/opa/.helmignore b/devops/aws/opa/.helmignore index 6e238cb1..95d3192e 100644 --- a/devops/aws/opa/.helmignore +++ b/devops/aws/opa/.helmignore @@ -1,3 +1,17 @@ +# Copyright © 2020 Amazon Web Services +# +# 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. + # Patterns to ignore when building packages. # This supports shell glob matching, relative path matching, and # negation (prefixed with !). Only one pattern per line. diff --git a/devops/aws/opa/Chart.yaml b/devops/aws/opa/Chart.yaml index 1c7860d7..11bbbe78 100644 --- a/devops/aws/opa/Chart.yaml +++ b/devops/aws/opa/Chart.yaml @@ -1,3 +1,17 @@ +# Copyright © 2020 Amazon Web Services +# +# 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. + apiVersion: v2 name: "opa-agent" version: __CHART_VERSION__ diff --git a/devops/aws/opa/templates/NOTES.txt b/devops/aws/opa/templates/NOTES.txt index f15afa91..d23eb419 100644 --- a/devops/aws/opa/templates/NOTES.txt +++ b/devops/aws/opa/templates/NOTES.txt @@ -1,3 +1,16 @@ +# Copyright Amazon.com, Inc. or its 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. +# 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. + {{ .Chart.Name }} deployed to {{ .Release.Namespace }} namespace {{- if (.Values.service).apiPath }} Application URL available at path {{ .Values.service.apiPath }} diff --git a/devops/aws/opa/templates/configmap.yaml b/devops/aws/opa/templates/configmap.yaml index 565da9ce..36e9e372 100644 --- a/devops/aws/opa/templates/configmap.yaml +++ b/devops/aws/opa/templates/configmap.yaml @@ -1,4 +1,17 @@ -{{- template "common.configmap" (list . "opa-agent.configmap") -}} +# Copyright Amazon.com, Inc. or its 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. +# 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. + +{{ template "common.configmap" (list . "opa-agent.configmap") -}} {{- define "opa-agent.configmap" -}} {{- $policyBucket := .Values.policyBucket -}} {{- $minDelay := .Values.minPollingDelaySeconds -}} diff --git a/devops/aws/opa/templates/deployment.yaml b/devops/aws/opa/templates/deployment.yaml index cf71c8c8..302e93e5 100644 --- a/devops/aws/opa/templates/deployment.yaml +++ b/devops/aws/opa/templates/deployment.yaml @@ -1,4 +1,17 @@ -{{- template "common.deployment" (list . "opa-agent.deployment") -}} +# Copyright Amazon.com, Inc. or its 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. +# 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. + +{{ template "common.deployment" (list . "opa-agent.deployment") -}} {{- define "opa-agent.deployment" -}} spec: template: diff --git a/devops/aws/opa/templates/scaledobject.yaml b/devops/aws/opa/templates/scaledobject.yaml index e71a7308..0abc06c6 100644 --- a/devops/aws/opa/templates/scaledobject.yaml +++ b/devops/aws/opa/templates/scaledobject.yaml @@ -1,4 +1,17 @@ -{{- template "common.scaledobject" (list . "opa-agent.scaledobject") -}} +# Copyright Amazon.com, Inc. or its 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. +# 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. + +{{ template "common.scaledobject" (list . "opa-agent.scaledobject") -}} {{- define "opa-agent.scaledobject" -}} ## Define overrides for the service's scaled object resource here {{- end -}} \ No newline at end of file diff --git a/devops/aws/opa/templates/service.yaml b/devops/aws/opa/templates/service.yaml index 892c5c03..e6d77f5a 100644 --- a/devops/aws/opa/templates/service.yaml +++ b/devops/aws/opa/templates/service.yaml @@ -1,4 +1,17 @@ -{{- template "common.service" (list . "opa-agent.service") -}} +# Copyright Amazon.com, Inc. or its 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. +# 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. + +{{ template "common.service" (list . "opa-agent.service") -}} {{- define "opa-agent.service" -}} spec: ports: diff --git a/devops/aws/opa/templates/serviceaccount.yaml b/devops/aws/opa/templates/serviceaccount.yaml index e8d90ad5..60c4937d 100644 --- a/devops/aws/opa/templates/serviceaccount.yaml +++ b/devops/aws/opa/templates/serviceaccount.yaml @@ -1,4 +1,17 @@ -{{- template "common.serviceaccount" (list . "opa-agent.serviceaccount") -}} +# Copyright Amazon.com, Inc. or its 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. +# 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. + +{{ template "common.serviceaccount" (list . "opa-agent.serviceaccount") -}} {{- define "opa-agent.serviceaccount" -}} ## Define overrides for the service's service account resource here {{- end -}} \ No newline at end of file diff --git a/devops/aws/opa/values.yaml b/devops/aws/opa/values.yaml index a0fca10b..58b8aede 100644 --- a/devops/aws/opa/values.yaml +++ b/devops/aws/opa/values.yaml @@ -1 +1,15 @@ +# Copyright © 2020 Amazon Web Services +# +# 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. + image: openpolicyagent/opa:0.54.0 \ No newline at end of file diff --git a/devops/aws/override-stages.yaml b/devops/aws/override-stages.yaml index 2ae8a82c..9a12a645 100644 --- a/devops/aws/override-stages.yaml +++ b/devops/aws/override-stages.yaml @@ -1,3 +1,17 @@ +# Copyright © 2020 Amazon Web Services +# +# 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. + aws-containerize: before_script: - cd app -- GitLab