https://github.com/tty47/htpasswd-crd-go
https://github.com/tty47/htpasswd-crd-go
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tty47/htpasswd-crd-go
- Owner: tty47
- Created: 2021-02-18T21:44:35.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-13T16:39:38.000Z (about 3 years ago)
- Last Synced: 2025-03-07T14:11:05.579Z (3 months ago)
- Language: Go
- Size: 51.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# htpasswd-crd-go
The following CRD/Operator is created with the purpose of create secrets objects with basic auth.You can use them, for instance to authenticate users in your Kubernetes Ingress(NginX).
Created with [kubebuilder](https://github.com/kubernetes-sigs/kubebuilder) framework.
## Example manifest
The has the following structure```yaml
apiVersion: security.htpasswd-crd-go/v1
kind: Htpasswd
metadata:
name: htpasswd-basic-auth
spec:
user: admin
password: admin123.
namespace: default
```## Get htpasswd
As CRD you can get them using kubectl and executing```kubectl
kubectl get htpasswd
```## Development
To install this CRD in your Kubernetes DEV cluster, just need to execute the following commands:
```make
make manifest; make generate; make install
```To run and check logs:
```make
make run
```## Installation
To install this CRD in your Kubernetes cluster, just need to execute the following commands:
```make
make run
```## Make useful commands
Building and deploying the Operator```make
make run:- Run the on the default Kubernetes cluster
make install:- Install the CRD into the cluster
make uninstall:- Uninstall the CRD
make deploy:- Deploy the Operator into the cluster
make manifests:- Generate the YAML files
make generate:- Generate source codes
make docker-build:- Build the docker image
make docker-push:- Push the docker image to the specified registry```
---
Jose Ramón Mañes