diff --git a/dist/resource-overlay.yaml b/dist/resource-overlay.yaml new file mode 100644 index 00000000..6bf54ad8 --- /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 conventions_deployment(): +kind: Deployment +metadata: + name: cartographer-conventions-controller-manager + namespace: conventions-system +#@ end + +#@overlay/match by=overlay.subset(conventions_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 index f7d44bc4..4afe5115 100644 --- a/dist/schema.yaml +++ b/dist/schema.yaml @@ -7,3 +7,7 @@ #@schema/desc "Optional: Arn role that has access to pull images from ECR container registry" aws_iam_role_arn: "" + +#@schema/desc "Optional: Cartographer Conventions controller resource limit configuration" +#@schema/type any=True + resources: {} \ No newline at end of file