generated from amazon-archives/__template_Apache-2.0
-
Notifications
You must be signed in to change notification settings - Fork 272
Closed
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.
Description
Describe the bug
The AdoptedResource CRD does not work for ApplicationAutoscaling Service Controller since the ScalingPolicy
and ScalableTarget
Describe APIs require more than one field to work.
Steps to reproduce
- Create an endpoint in SageMaker and enable applicationAutoscaling using the AWS Console.
- Check using awscli to ensure that the ScalingPolicy resource exists
aws application-autoscaling describe-scaling-policies --service-namespace SageMaker --region us-west-2
. - Update ApplicationAutoscaling to v0.1.1 runtime and latest code-gen. Verify that you have the AdoptedResource CRD.
- Now try to adopt the resource into Kubernetes using a spec file as follows -
apiVersion: services.k8s.aws/v1alpha1
kind: AdoptedResource
metadata:
name: adoptedscalingpolicy
spec:
aws:
nameOrID: "endpoint/ep-name/variant/AllTraffic"
kubernetes:
group: applicationautoscaling.services.k8s.aws
kind: ScalingPolicy
metadata:
name: adopted_scaling_policy
- check that the resource was adopted using
kubectl get scalingpolicies.applicationautoscaling.services.k8s.aws
Expected outcome
Resource should have been adopted into k8s
Actual Outcome
The following error in the pod logs -
2021-05-11T10:24:55.574Z ERROR controller-runtime.controller Reconciler error {"controller": "adoptedresource", "request": "default/adoptedscalingpolicy", "error": "InvalidParameter: 1 validation error(s) found.\n- missing required field, DescribeScalingPoliciesInput.ServiceNamespace.\n"}
Environment
Tested using a Kind Cluster
- Kubernetes version: 16.*
- Using EKS (yes/no), if so version?: no
- AWS service targeted (S3, RDS, etc.): ApplicationAutoscaling
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes issue or PR as related to a bug.Categorizes issue or PR as related to a bug.