Skip to content

Commit

Permalink
chore: Added Package CR with Resource Limit configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Rashed Kamal <krashed@vmware.com>
  • Loading branch information
rashedkvm committed Feb 27, 2024
1 parent 8772987 commit 965ebd5
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
34 changes: 34 additions & 0 deletions dist/resource-overlay.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 4 additions & 0 deletions dist/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}

0 comments on commit 965ebd5

Please sign in to comment.