diff --git a/.gitignore b/.gitignore index 3b7b6d7..6217cd1 100644 --- a/.gitignore +++ b/.gitignore @@ -45,4 +45,7 @@ Thumbs.db # Helm chart dependencies -deploy/helm/dapr-trustbundle/charts/ \ No newline at end of file +deploy/helm/dapr-trustbundle/charts/ + +# Compiled binary +main \ No newline at end of file diff --git a/README.md b/README.md index 4d33f7e..e8cfc9d 100644 --- a/README.md +++ b/README.md @@ -60,12 +60,35 @@ helm install dapr-trustbundle deploy/helm/dapr-trustbundle ### Install with kubectl +**For a remote cluster** (image must be pushed to a registry accessible by the cluster): + ```bash -# Install the latest release -kubectl apply -f https://github.com/elenpay/dapr-trustbundle/releases/latest/download/install.yaml +# Build and push the operator image to your registry +make docker-build docker-push IMG= + +# Deploy using Helm, overriding the image to use your registry +helm upgrade --install dapr-trustbundle deploy/helm/dapr-trustbundle \ + --set image.repository= \ + --set image.tag= -# Or use the installation script -curl -sSL https://raw.githubusercontent.com/elenpay/dapr-trustbundle/main/scripts/install.sh | bash +# Alternatively, download the release manifest, update the image field, +# and apply it to your cluster: +kubectl apply -f .yaml +``` + +> Note: The `make build-installer` flow is intended for local KIND-style development. +> It applies the `config/default/manager_image_pull_policy_patch.yaml` patch, which +> sets `imagePullPolicy: Never` and prevents a remote cluster from pulling the image +> from your registry. + +**For a local Kind cluster** (no registry needed): + +```bash +# Build and load the image into the Kind cluster +make kind-load IMG= + +# Deploy the operator +make deploy IMG= ``` ### Verify Installation @@ -195,16 +218,6 @@ kubectl apply -f https://github.com/elenpay/dapr-trustbundle/releases/latest/dow kubectl apply -f https://raw.githubusercontent.com/elenpay/dapr-trustbundle/main/deploy/install.yaml ``` -### Installation Script - -```bash -# Quick install -curl -sSL https://raw.githubusercontent.com/elenpay/dapr-trustbundle/main/scripts/install.sh | bash - -# Install and test -curl -sSL https://raw.githubusercontent.com/elenpay/dapr-trustbundle/main/scripts/install.sh | bash -s -- --test -``` - ## Usage Examples ### Basic Usage with cert-manager @@ -350,12 +363,10 @@ This project includes GitHub Actions workflows for automated building and releas │ ├── default/ # Default deployment │ ├── rbac/ # RBAC permissions │ └── manager/ # Manager deployment -├── deploy/ # Distribution artifacts -│ ├── install.yaml # Complete installation manifest +├── deploy/ # Helm-based distribution artifacts │ ├── helm/dapr-trustbundle/ # Helm chart │ └── helm-packages/ # Packaged charts ├── examples/ # Usage examples -├── scripts/install.sh # Installation script └── .github/workflows/ # CI/CD pipelines ``` diff --git a/main b/main deleted file mode 100755 index 467d2b1..0000000 Binary files a/main and /dev/null differ