Skip to content
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

AICoE-CI integration #27

Closed
goern opened this issue Jun 30, 2020 · 18 comments
Closed

AICoE-CI integration #27

goern opened this issue Jun 30, 2020 · 18 comments
Labels
kind/question Categorizes issue or PR as a support question. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.

Comments

@goern
Copy link
Member

goern commented Jun 30, 2020

Hey @ALL, please think about jobs you want the AICoE CI to run on this repo, yamllinting? What else?

Cc: @durandom

@goern goern added the question label Jun 30, 2020
@tumido
Copy link
Member

tumido commented Jun 30, 2020

  1. Kustomization manifests are buildable
  2. Resulting Kubernetes resource validation (kubectl create --dry-run --validate or something)
  3. Kustomization files maintain the same standard:
  4. Markdown linting for runbooks (?)

@goern
Copy link
Member Author

goern commented Jun 30, 2020

@tumido
Copy link
Member

tumido commented Jun 30, 2020

@goern newer worked with OPA, so.. does it use any generic testsuite, you're referring to in your README? Or do you have any Thoth specific one that we can maybe take a look at? I couldn't find any...

I like the possibility to really test the manifests a lot!

@goern
Copy link
Member Author

goern commented Jun 30, 2020

Ja, there is https://github.com/thoth-station/thoth-application/tree/master/policy which contains the policies we want to enforce for the thoth-application. It is just testing around, I have had no deep thoughts on it...

@tumido
Copy link
Member

tumido commented Jun 30, 2020

I like that. That implements a good portion of my comment above. 🙂 👍

@anishasthana
Copy link
Contributor

I think @tumido hit a lot of the initial ones we'd want to be covering. ++ to what has been said so far.

@durandom
Copy link
Member

@HumairAK you looked into https://github.com/app-sre/qontract-validator before we went with argo-cd. Is this something we could do to validate a PR?

@HumairAK
Copy link
Contributor

@durandom -- It's been some time, but my guess is no, as its probably coupled with their qontract-server and not generalized. From their description in the ReadME:

This project contains the tools necessary to bundle data into the format used by qontract-server and to JSON validate it's schema.

Schema Validation would actually be something useful for the aicoe-cd repository, and I think it's worth looking into.

@HumairAK
Copy link
Contributor

+1 to ensuring Kustomizations build successfully on all overlays.

@tumido
Copy link
Member

tumido commented Jun 30, 2020

Another cool thing would be if the bots can diff the resources (after kustomize build) from before the PR and after and check if there are new CRDs or cluster wide resources added by the PR. This way we can know if we need to ticket PSI before merging the PR or not.

@HumairAK
Copy link
Contributor

+1 @tumido --- If this can be somehow adjustable to not only CRDs but other apigroups/kinds that we can add onto some sort of a list, that would be even better.

@tumido
Copy link
Member

tumido commented Jul 1, 2020

And what about we can take it one step further. If such clusterwide resources are found and approved, can we automate opening of a Service Now ticket to PSI?

@goern
Copy link
Member Author

goern commented Jul 2, 2020

Yes we can :)

We just need some coding power to help us with that... First of all I'll turn this into a card...

@tumido
Copy link
Member

tumido commented Jul 3, 2020

Btw, I've started using the https://github.com/Agilicus/yaml_filter suggested in kubernetes-sigs/kustomize#821 (comment) and It's so easy to populate the psi ticket attachments now. 😄

kustomize build applications/argo/overlays/dh-dev-argo | yaml_filter -i CustomResourceDefinition,ClusterRole > psi_ticket.yaml
kustomize build applications/argo-events/overlays/dh-dev-argo | yaml_filter -i CustomResourceDefinition,ClusterRole >> psi_ticket.yaml

the yaml_filter is a pretty short yet clever script, can we integrate some variation of it (that may be reading the included and excluded resources from a config file instead of args?

@sesheta sesheta added kind/question Categorizes issue or PR as a support question. and removed question labels Feb 9, 2021
@sesheta
Copy link

sesheta commented Jul 3, 2021

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@sesheta sesheta added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 3, 2021
@sesheta
Copy link

sesheta commented Oct 14, 2021

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

/lifecycle rotten

@sesheta sesheta added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Oct 14, 2021
@sesheta
Copy link

sesheta commented Nov 13, 2021

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

/close

@sesheta sesheta closed this as completed Nov 13, 2021
@sesheta
Copy link

sesheta commented Nov 13, 2021

@sesheta: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Categorizes issue or PR as a support question. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed.
Projects
None yet
Development

No branches or pull requests

6 participants