Skip to content

Commit

Permalink
feat: fix refs, kudos to @olli-ai to keeping it afloat
Browse files Browse the repository at this point in the history
  • Loading branch information
rfvermut committed Apr 8, 2023
1 parent 199abdc commit 9b360c3
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 16 deletions.
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@

Automatically expose services creating ingress rules or modifying services to use kubernetes nodePort or loadBalancer service types

This is a fork from the dead project https://github.com/jenkins-x/exposecontroller in order to solve many problems
This is a fork from the https://github.com/devopscare/exposecontroller,
updated to latest Kubernetes and `networkV1` Ingress objects.

## Deployment

### From helm repository

```bash
helm repo add olli-ai https://olli-ai.github.io/helm-charts/
helm upgrade --install exposecontroller olli-ai/exposecontroller
```
TODO

### Using Helm

Expand All @@ -23,9 +20,9 @@ helm upgrade --install exposecontroller ./deploy/helm-chart/exposecontroller

```bash
# Create roles and service accounts
kubectl apply -f https://raw.githubusercontent.com/olli-ai/exposecontroller/master/deploy/rbac.yaml
kubectl apply -f https://raw.githubusercontent.com/devopscare/exposecontroller/master/deploy/rbac.yaml
# Create actual deployment
kubectl apply -f https://raw.githubusercontent.com/olli-ai/exposecontroller/master/deploy/deployment.yaml
kubectl apply -f https://raw.githubusercontent.com/devopscare/exposecontroller/master/deploy/deployment.yaml
```

### In Jenkins-X environments
Expand All @@ -34,7 +31,7 @@ kubectl apply -f https://raw.githubusercontent.com/olli-ai/exposecontroller/mast
export VERSION=latest
# set the repository and version
sed '/\(- \| \)name: exposecontroller/{n;N;d}' -i env/requirements.yaml
sed "s#\( *\)\(- \| \)name: exposecontroller#\0\n\1 repository: https://olli-ai.github.io/helm-charts/\n\1 version: $VERSION#" \
sed "s#\( *\)\(- \| \)name: exposecontroller#\0\n\1 repository: https://devopscare.github.io/helm-charts/\n\1 version: $VERSION#" \
-i env/requirements.yaml
# add a name prefix for the ingress
sed -i 's/^\( *\)urltemplate:.*/\0\n\1namePrefix: exposed-/' env/values.yaml
Expand All @@ -46,7 +43,7 @@ sed -i 's/^\( *\)urltemplate:.*/\0\n\1namePrefix: exposed-/' env/values.yaml
export VERSION=latest
# set the repository and version
sed '/\(- \| \)name: exposecontroller/{n;N;d}' -i charts/preview/requirements.yaml
sed "s#\( *\)\(- \| \)name: exposecontroller#\0\n\1 repository: https://olli-ai.github.io/helm-charts/\n\1 version: $VERSION#" \
sed "s#\( *\)\(- \| \)name: exposecontroller#\0\n\1 repository: https://devopscare.github.io/helm-charts/\n\1 version: $VERSION#" \
-i charts/preview/requirements.yaml
# add a name prefix for the ingress
sed -i 's/^\( *\)urltemplate:.*/\0\n\1namePrefix: exposed-/' charts/preview/values.yaml
Expand Down
2 changes: 1 addition & 1 deletion controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"k8s.io/client-go/kubernetes"
"k8s.io/client-go/tools/cache"

"github.com/olli-ai/exposecontroller/exposestrategy"
"github.com/devopscare/exposecontroller/exposestrategy"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion controller/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/client-go/kubernetes/fake"

"github.com/olli-ai/exposecontroller/exposestrategy"
"github.com/devopscare/exposecontroller/exposestrategy"

"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
4 changes: 2 additions & 2 deletions exposecontroller.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"strings"
"time"

"github.com/olli-ai/exposecontroller/controller"
"github.com/olli-ai/exposecontroller/exposestrategy"
"github.com/devopscare/exposecontroller/controller"
"github.com/devopscare/exposecontroller/exposestrategy"
"k8s.io/klog"

metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
2 changes: 1 addition & 1 deletion exposestrategy/auto.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func getAutoDefaultDomain(ctx context.Context, c kubernetes.Interface) (string,
}
}
}
return "", errors.New("no known automatic ways to get an external ip to use with nip. Please configure exposecontroller configmap manually see https://github.com/olli-ai/exposecontroller#configuration")
return "", errors.New("no known automatic ways to get an external ip to use with nip. Please configure exposecontroller configmap manually see https://github.com/devopscare/exposecontroller#configuration")
}

// copied from k8s.io/kubernetes/pkg/master/master.go
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/olli-ai/exposecontroller
module github.com/devopscare/exposecontroller

go 1.13

Expand Down

0 comments on commit 9b360c3

Please sign in to comment.