Skip to content

Commit

Permalink
chore: Added Package CR with Resource Limit configuration overlay (#267)
Browse files Browse the repository at this point in the history
Signed-off-by: Rashed Kamal <krashed@vmware.com>
  • Loading branch information
rashedkvm committed Mar 11, 2024
1 parent 6e89504 commit af06007
Show file tree
Hide file tree
Showing 2 changed files with 47 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 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
13 changes: 13 additions & 0 deletions dist/schema.yaml
Original file line number Diff line number Diff line change
@@ -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: {}

0 comments on commit af06007

Please sign in to comment.