-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
------------- BUG REPORT TEMPLATE --------------------
-
What
kopsversion are you running? The commandkops version, will display
this information.$ kops version Version 1.8.0 (git-5099bc5) -
What Kubernetes version are you running?
kubectl versionwill print the
version if a cluster is running or provide the Kubernetes version specified as
akopsflag.N/A
-
What cloud provider are you using?
AWS
-
What commands did you run? What is the simplest way to reproduce this issue?
Add the following broken hook spec to both a cluster (e.g. with
kops edit cluster) and an instancegroup (e.g. withkops edit instancegroup):hooks: - name: a-broken-hook -
What happened after the commands executed?
When attempting to add this broken hook spec to a cluster, you get a validation failure:
# error populating cluster spec: spec.hooks[0]: Required value: you must set either manifest or execContainer for a hookHowever, when adding it to an instancegroup, there is no validation failure.
-
What did you expect to happen?
Validation should fail when adding this hook spec to an instancegroup, as well as to a cluster.
-
Please provide your cluster manifest. Execute
kops get --name my.example.com -oyamlto display your cluster manifest.
You may want to remove your cluster name and other sensitive information.N/A
-
Please run the commands with most verbose logging by adding the
-v 10flag.
Paste the logs into this report, or in a gist and provide the gist link here.N/A
-
Anything else do we need to know?
The problem appears to be that the
validateHookSpecfunction which generates this error only runs during cluster validation, and not during instancegroup validation.