From af06007578677a1e66edaac1e624d863fbe273e7 Mon Sep 17 00:00:00 2001 From: Rashed K <89036140+rashedkvm@users.noreply.github.com> Date: Mon, 11 Mar 2024 13:07:53 -0400 Subject: [PATCH] chore: Added Package CR with Resource Limit configuration overlay (#267) Signed-off-by: Rashed Kamal --- dist/resource-overlay.yaml | 34 ++++++++++++++++++++++++++++++++++ dist/schema.yaml | 13 +++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 dist/resource-overlay.yaml create mode 100644 dist/schema.yaml diff --git a/dist/resource-overlay.yaml b/dist/resource-overlay.yaml new file mode 100644 index 0000000..9f1f416 --- /dev/null +++ b/dist/resource-overlay.yaml @@ -0,0 +1,34 @@ +#! Copyright 2024 VMware Inc. +#! +#! 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. + +#@ load("@ytt:overlay", "overlay") +#@ load("@ytt:data", "data") + +#@ def sourec-controller_deployment(): +kind: Deployment +metadata: + name: source-controller-manager + namespace: source-system +#@ end + +#@overlay/match by=overlay.subset(sourec-controller_deployment()), expects="0+" +--- +spec: + template: + spec: + containers: + #@overlay/match by="name" + - name: manager + #@overlay/match missing_ok=True + resources: #@ data.values.resources \ No newline at end of file diff --git a/dist/schema.yaml b/dist/schema.yaml new file mode 100644 index 0000000..d6d750b --- /dev/null +++ b/dist/schema.yaml @@ -0,0 +1,13 @@ +#@data/values-schema +#@schema/desc "OpenAPIv3 Schema for Cartographer Conventions" + +--- +#@schema/desc "Optional: PEM Encoded certificate data for image registries with private CA." + ca_cert_data: "" + +#@schema/desc "Optional: Arn role that has access to pull images from ECR container registry" + aws_iam_role_arn: "" + +#@schema/desc "Optional: Tanzu Source Controller resource limit configuration" +#@schema/type any=True + resources: {} \ No newline at end of file