You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently a user is required to supply the region field as part of the spec for the Policy configuration. This should be not required.
If the user does not explicitly set a region, the default value of US should be used.
Current behavior
When executing kubectl apply -f ./my-alert-policy.yaml, the operation appears to have succeeded, however the policy is not created and an error occurs under the hood.
Note: The command should also fail to execute which has been reported as a bug in issue #45.
Steps To Reproduce
Steps to reproduce the behavior:
Ensure the operator is installed and ready
Use the following yaml to configure a minimal Alert Policy (my-alert-policy.yaml)
apiVersion: nr.k8s.newrelic.com/v1kind: Policymetadata:
name: my-policyspec:
api_key: <your API key>name: "alert policy created with k8s"
Note: Adding region: "US" to the spec will allow a successful apply.
Tail the logs of your controller node - first get the node's full name, then tail those logs
Open a new terminal in the current working directory and run the follow command.
kubectl apply -f ./my-alert-policy.yaml
The command "succeeds" with an output of policy.nr.k8s.newrelic.com/my-policy created, however an error occurred and the policy does not exist in New Relic.
See error - kubernetes will continue to attempt to provision the resource over and over due to the error: "error":"unknown region"
Description
Currently a user is required to supply the
region
field as part of thespec
for thePolicy
configuration. This should be not required.If the user does not explicitly set a
region
, the default value ofUS
should be used.Current behavior
When executing
kubectl apply -f ./my-alert-policy.yaml
, the operation appears to have succeeded, however the policy is not created and an error occurs under the hood.Steps To Reproduce
Steps to reproduce the behavior:
yaml
to configure a minimal Alert Policy (my-alert-policy.yaml
)kubectl describe nodes -n newrelic-kubernetes-operator-system | grep controller-manager
policy.nr.k8s.newrelic.com/my-policy created
, however an error occurred and the policy does not exist in New Relic."error":"unknown region"
Debug Output (if applicable)
The text was updated successfully, but these errors were encountered: