-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat(eks): option to disable manifest validation #12012
Conversation
For kubctl logs:
|
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.
Instead of changing the api for addManifest, would it be sufficient to specify this option at the cluster level (same as prune)?
That would set the flag for the complete cluster. What about the case when you only want to skip validation for one particular manifest that you added through |
Do you think that's a very common use case? You can still just use |
I am not sure how we can add a manifest intialized via |
See docs |
Oh understood it now (missed that I will go ahead and make the changes accordingly to keep it only on |
@ayush987goyal I think its ok to only expose |
@iliapolo So I am trying to add an integ tests for this by initilializing private assertManifestWithoutValidation() {
// apply a kubernetes manifest
new eks.KubernetesManifest(this, 'HelloAppWithoutValidation', {
cluster: this.cluster,
manifest: [{
apiVersion: 'v1',
kind: 'Service',
metadata: { name: 'hello-kubernetes-without-validation' },
spec: {
type: 'LoadBalancer',
ports: [{ port: 80, targetPort: 8080 }],
selector: { app: 'hello-kubernetes-without-validation' },
},
}],
validate: false,
});
} I am getting the following cfn error:
I am thinking if this is related to the scope in which the manifest is created (the context of cluster v/s stack) but not too sure. Do you have any clue on what might be wrong with this? |
@ayush987goyal Yes, we broke our integration tests in this commit :) You can build an earlier commit to see your logic works, but probably better just to hold off until the fix is merged since you'll need to re-run the tests. |
Hi @iliapolo , could you please take a look at this now? |
packages/@aws-cdk/aws-eks/lib/kubectl-handler/apply/__init__.py
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-eks/lib/kubectl-handler/apply/__init__.py
Outdated
Show resolved
Hide resolved
@ayush987goyal Also notice there is a conflict now... :\ |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
@iliapolo Fixed both! :) |
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.
@ayush987goyal Thanks :)
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Closes aws#11763 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Closes #11763
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license