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

Unable to make exclusion work #37

Open
ssarbadh opened this issue Jan 11, 2024 · 1 comment
Open

Unable to make exclusion work #37

ssarbadh opened this issue Jan 11, 2024 · 1 comment

Comments

@ssarbadh
Copy link

I have 8 files in a directory

bash-5.1$ tree /Users/soham/workstation/workspace-1/ct-argo-k8s-prod-apps-manifests/microservices/devops/devops-release-tracker
/Users/soham/workstation/workspace-1/ct-argo-k8s-prod-apps-manifests/microservices/devops/devops-release-tracker
├── argoNotifiication.yaml
├── configmap.yaml
├── deployment.yaml
├── hpa.yaml
├── ingress.yaml
├── pdb.yaml
├── secret.yaml
└── service.yaml

apiVersion in hpa.yaml is outdated
apiVersion in secret.yaml is a CRD (SealedSecret) - I don't wish it to be checked or scanned

As I run the below command

./kubedd -d /Users/soham/workstation/workspace-1/ct-argo-k8s-prod-apps-manifests/microservices/devops/devops-release-tracker --source-kubernetes-version 1.26 --target-kubernetes-version 1.27 --ignored-filename-patterns ^secret\..*$

It fails with

Results for file /Users/soham/workstation/workspace-1/ct-argo-k8s-prod-apps-manifests/microservices/devops/devops-release-tracker/secret.yaml
-------------------------------------------
>>>> Removed API Version's <<<<
 Namespace   Name                            Kind           API Version (Current Available)   Replace With API Version (Latest Available)   Migration Status
 devops      devops-release-tracker-secret   SealedSecret   bitnami.com/v1alpha1                                                            Alert! cannot migrate kubernetes version

And if I try

./kubedd -d /Users/soham/workstation/workspace-1/ct-argo-k8s-prod-apps-manifests/microservices/devops/devops-release-tracker --source-kubernetes-version 1.26 --target-kubernetes-version 1.27 --ignore-kinds SealedSecret

Same issue

Results for file /Users/soham/workstation/workspace-1/ct-argo-k8s-prod-apps-manifests/microservices/devops/devops-release-tracker/secret.yaml
-------------------------------------------
>>>> Removed API Version's <<<<
 Namespace   Name                            Kind           API Version (Current Available)   Replace With API Version (Latest Available)   Migration Status
 devops      devops-release-tracker-secret   SealedSecret   bitnami.com/v1alpha1                                                            Alert! cannot migrate kubernetes version

How do I ignore secret.yaml or SealedSecret ?

Please help.

@ssarbadh
Copy link
Author

ssarbadh commented Jan 11, 2024

Update - this worked

./kubedd -d /Users/soham/workstation/workspace-1/ct-argo-k8s-prod-apps-manifests/microservices/devops/devops-release-tracker --source-kubernetes-version 1.26 --target-kubernetes-version 1.27  --ignored-filename-patterns 'secret\.yaml$'

But still would want to figure out why Kind did not work - Please suggest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant