-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple scaling policies per scalable dimension #106
Changes from all commits
561d828
4380c44
983ae4a
a086607
dabf1c4
2eea8e5
21a1172
da94fe7
b6794b1
3aba628
ddac191
ab2e071
25f2fb3
89d083d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
ack_generate_info: | ||
build_date: "2023-05-15T22:45:51Z" | ||
build_hash: 8f3ba427974fd6e769926778d54834eaee3b81a3 | ||
go_version: go1.19 | ||
version: v0.26.1 | ||
build_date: "2023-08-07T18:42:42Z" | ||
build_hash: 7081d1c2e797bb7c8b1e4e6a298d1d85f25a07bb | ||
go_version: go1.20.1 | ||
version: v0.26.1-8-g7081d1c | ||
api_directory_checksum: 81d152c4602b014d435a9ba3d716ed5112273013 | ||
api_version: v1alpha1 | ||
aws_sdk_go_version: v1.44.93 | ||
generator_config_info: | ||
file_checksum: b2ac33cc79c75dfc65066ea3fca66ad781d4ae18 | ||
file_checksum: dd979bc999bfaa10546ce09b0bedecd039ea85c7 | ||
original_file_name: generator.yaml | ||
last_modification: | ||
reason: API generation |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,26 @@ deployment: | |
# Which priorityClassName to set? | ||
# See: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#pod-priority | ||
priorityClassName: "" | ||
extraVolumes: [] | ||
extraVolumeMounts: [] | ||
|
||
# Additional server container environment variables | ||
# | ||
# You specify this manually like you would a raw deployment manifest. | ||
# This means you can bind in environment variables from secrets. | ||
# | ||
# e.g. static environment variable: | ||
# - name: DEMO_GREETING | ||
# value: "Hello from the environment" | ||
# | ||
# e.g. secret environment variable: | ||
# - name: USERNAME | ||
# valueFrom: | ||
# secretKeyRef: | ||
# name: mysecret | ||
# key: username | ||
extraEnvVars: [] | ||
|
||
|
||
# If "installScope: cluster" then these labels will be applied to ClusterRole | ||
role: | ||
|
@@ -90,7 +110,7 @@ deletionPolicy: delete | |
# controller reconciliation configurations | ||
reconcile: | ||
# The default duration, in seconds, to wait before resyncing desired state of custom resources. | ||
defaultResyncPeriod: 0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reasoning for this ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. changed from latest code generator |
||
defaultResyncPeriod: 36000 # 10 Hours | ||
# An object representing the reconcile resync configuration for each specific resource. | ||
resourceResyncPeriods: {} | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
f6, f6ok := identifier.AdditionalKeys["policyName"] | ||
if f6ok { | ||
r.ko.Spec.PolicyName = &f6 | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
acktest @ git+https://github.com/aws-controllers-k8s/test-infra.git@a14cabd5be76c8367792e27357ff4e9e203d880c | ||
acktest @ git+https://github.com/aws-controllers-k8s/test-infra.git@96f7481047da87c4ebd97540b051b7b1dd664498 |
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: applicationautoscaling.services.k8s.aws/v1alpha1 | ||
kind: ScalingPolicy | ||
metadata: | ||
name: $SCALINGPOLICY_NAME | ||
spec: | ||
policyName: $SCALINGPOLICY_NAME | ||
policyType: TargetTrackingScaling | ||
resourceID: $RESOURCE_ID | ||
scalableDimension: "sagemaker:variant:DesiredInstanceCount" | ||
serviceNamespace: sagemaker | ||
targetTrackingScalingPolicyConfiguration: | ||
targetValue: 60 | ||
scaleInCooldown: 700 | ||
scaleOutCooldown: 300 | ||
customizedMetricSpecification: | ||
metricName: CPUUtilization | ||
namespace: /aws/sagemaker/Endpoints | ||
dimensions: | ||
- name: EndpointName | ||
value: $ENDPOINT_NAME | ||
- name: VariantName | ||
value: $VARIANT_NAME | ||
statistic: Average | ||
unit: Percent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these changes part of new code-gen or added personally?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed from latest code generator