Loading video player...
Are you still telling your teammates to "just download this script and chmod +x it"? It’s time to stop the manual madness. In this video, we build a professional-grade Internal Plugin Distribution System using GitLab CI/CD and a Custom Krew Index. We don't just show you the "happy path"—we dive deep into the real-world bugs that stop most DevOps engineers in their tracks. From invisible Windows line endings breaking your Linux containers to GitLab API authentication hurdles, we fix it all. What You’ll Learn: 🛠️ Scripting for Krew: How to wrap Bash scripts into professional kubectl plugins. 📦 GitLab Package Registry: Automating .tar.gz uploads with GitLab CI/CD pipelines. 📂 Multi-Plugin Management: Handling multiple tools (like kubectl-hello and kubectl-demo) in a single repo using smart tagging. 🔍 Custom Krew Index: Hosting your own "Plugin Store" so your team can use kubectl krew install. 🐞 The "No Such File" Ghost: Identifying and fixing the CRLF vs. LF line-ending issue that kills most scripts. The "Pro" Workflow We Built: Code: Write a Bash tool. Tag: Push a tag like demo-v1.1.0. Automate: GitLab CI/CD cleans the version, packages the binary, and uploads it to the Registry. Distribute: Update the Krew manifest and your team is one krew upgrade away from the latest version. Resources & Links: 📁 Project Repo: https://gitlab.com/karaminejad/team-plugins.git 📄 Krew Manifest Docs: https://gitlab.com/karaminejad/krew-index.git If this helped you automate your team's workflow, don't forget to LIKE and SUBSCRIBE for more deep-dive DevOps content! #Kubernetes #DevOps #GitLab #Krew #Kubectl #Automation #CloudNative #BEDEVOPS