Skip to content

Commit 9b360c3

Browse files
committed
feat: fix refs, kudos to @olli-ai to keeping it afloat
1 parent 199abdc commit 9b360c3

6 files changed

Lines changed: 13 additions & 16 deletions

File tree

README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@
22

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

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

78
## Deployment
89

910
### From helm repository
10-
11-
```bash
12-
helm repo add olli-ai https://olli-ai.github.io/helm-charts/
13-
helm upgrade --install exposecontroller olli-ai/exposecontroller
14-
```
11+
TODO
1512

1613
### Using Helm
1714

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

2421
```bash
2522
# Create roles and service accounts
26-
kubectl apply -f https://raw.githubusercontent.com/olli-ai/exposecontroller/master/deploy/rbac.yaml
23+
kubectl apply -f https://raw.githubusercontent.com/devopscare/exposecontroller/master/deploy/rbac.yaml
2724
# Create actual deployment
28-
kubectl apply -f https://raw.githubusercontent.com/olli-ai/exposecontroller/master/deploy/deployment.yaml
25+
kubectl apply -f https://raw.githubusercontent.com/devopscare/exposecontroller/master/deploy/deployment.yaml
2926
```
3027

3128
### In Jenkins-X environments
@@ -34,7 +31,7 @@ kubectl apply -f https://raw.githubusercontent.com/olli-ai/exposecontroller/mast
3431
export VERSION=latest
3532
# set the repository and version
3633
sed '/\(- \| \)name: exposecontroller/{n;N;d}' -i env/requirements.yaml
37-
sed "s#\( *\)\(- \| \)name: exposecontroller#\0\n\1 repository: https://olli-ai.github.io/helm-charts/\n\1 version: $VERSION#" \
34+
sed "s#\( *\)\(- \| \)name: exposecontroller#\0\n\1 repository: https://devopscare.github.io/helm-charts/\n\1 version: $VERSION#" \
3835
-i env/requirements.yaml
3936
# add a name prefix for the ingress
4037
sed -i 's/^\( *\)urltemplate:.*/\0\n\1namePrefix: exposed-/' env/values.yaml
@@ -46,7 +43,7 @@ sed -i 's/^\( *\)urltemplate:.*/\0\n\1namePrefix: exposed-/' env/values.yaml
4643
export VERSION=latest
4744
# set the repository and version
4845
sed '/\(- \| \)name: exposecontroller/{n;N;d}' -i charts/preview/requirements.yaml
49-
sed "s#\( *\)\(- \| \)name: exposecontroller#\0\n\1 repository: https://olli-ai.github.io/helm-charts/\n\1 version: $VERSION#" \
46+
sed "s#\( *\)\(- \| \)name: exposecontroller#\0\n\1 repository: https://devopscare.github.io/helm-charts/\n\1 version: $VERSION#" \
5047
-i charts/preview/requirements.yaml
5148
# add a name prefix for the ingress
5249
sed -i 's/^\( *\)urltemplate:.*/\0\n\1namePrefix: exposed-/' charts/preview/values.yaml

controller/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"k8s.io/client-go/kubernetes"
2121
"k8s.io/client-go/tools/cache"
2222

23-
"github.com/olli-ai/exposecontroller/exposestrategy"
23+
"github.com/devopscare/exposecontroller/exposestrategy"
2424
)
2525

2626
const (

controller/controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"k8s.io/apimachinery/pkg/runtime"
1212
"k8s.io/client-go/kubernetes/fake"
1313

14-
"github.com/olli-ai/exposecontroller/exposestrategy"
14+
"github.com/devopscare/exposecontroller/exposestrategy"
1515

1616
"github.com/stretchr/testify/assert"
1717
"github.com/stretchr/testify/require"

exposecontroller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ import (
1212
"strings"
1313
"time"
1414

15-
"github.com/olli-ai/exposecontroller/controller"
16-
"github.com/olli-ai/exposecontroller/exposestrategy"
15+
"github.com/devopscare/exposecontroller/controller"
16+
"github.com/devopscare/exposecontroller/exposestrategy"
1717
"k8s.io/klog"
1818

1919
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

exposestrategy/auto.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func getAutoDefaultDomain(ctx context.Context, c kubernetes.Interface) (string,
104104
}
105105
}
106106
}
107-
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")
107+
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")
108108
}
109109

110110
// copied from k8s.io/kubernetes/pkg/master/master.go

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/olli-ai/exposecontroller
1+
module github.com/devopscare/exposecontroller
22

33
go 1.13
44

0 commit comments

Comments
 (0)