Skip to content

Commit 535ddd7

Browse files
author
Steve Scaffidi
committed
Renaming all the things for public release
1 parent d5e0b81 commit 535ddd7

33 files changed

+103
-101
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ BUNDLE_METADATA_OPTS ?= $(BUNDLE_CHANNELS) $(BUNDLE_DEFAULT_CHANNEL)
2828
# This variable is used to construct full image tags for bundle and catalog images.
2929
#
3030
# For example, running 'make bundle-build bundle-push catalog-build catalog-push' will build and push both
31-
# cloudera.com/istio-proxy-update-controller-bundle:$VERSION and cloudera.com/istio-proxy-update-controller-catalog:$VERSION.
32-
IMAGE_TAG_BASE ?= docker-sandbox.infra.cloudera.com/sscaffidi/istio-proxy-update-controller
31+
# sscaffidi/istio-fortsa-bundle:$VERSION and sscaffidi/istio-fortsa-catalog:$VERSION.
32+
IMAGE_TAG_BASE ?= sscaffidi/istio-fortsa
3333

3434
# BUNDLE_IMG defines the image:tag used for the bundle.
3535
# You can use it as an arg. (E.g make bundle-build BUNDLE_IMG=<some-registry>/<project-name-bundle>:<tag>)

PROJECT

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
# This file is used to track the info used to scaffold your project
33
# and allow the plugins properly work.
44
# More info: https://book.kubebuilder.io/reference/project-config.html
5-
domain: cloudera.com
5+
domain: example.com
66
layout:
77
- go.kubebuilder.io/v4
88
plugins:
99
manifests.sdk.operatorframework.io/v2: {}
1010
scorecard.sdk.operatorframework.io/v2: {}
11-
projectName: istio-proxy-update-controller
12-
repo: github.infra.cloudera.com/sscaffidi/istio-proxy-update-controller
11+
projectName: istio-fortsa
12+
repo: github.com/hercynium/istio-fortsa
1313
resources:
1414
- controller: true
1515
group: core

README.md

+11-7
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
# istio-proxy-update-controller
1+
# istio-fortsa
22

33
An SRE's dream: Keep Istio's data-plane up-to-date without toil.
44

5+
## Name
6+
7+
The name comes from the Greek phrase "Όρτσα τα πανιά!" meaning roughly "Full Sail Ahead"
8+
59
## Description
610

711
When updating Istio, one particular task is pretty much impossible to do with a GitOps-style
@@ -19,7 +23,7 @@ Istio's default envoy-based proxy.
1923

2024
## Inspiration
2125

22-
This project was inspired by our experience with the toil of keeping the istio data-plane
26+
This project was inspired by my experience with the toil of keeping the istio data-plane
2327
up-to-date and then discovering the solution Google had come up with, described in this
2428
YouTube video: https://youtu.be/R86ZsYH7Ka4
2529

@@ -29,13 +33,13 @@ YouTube video: https://youtu.be/R86ZsYH7Ka4
2933
- go version v1.21.0+
3034
- docker version 17.03+.
3135
- kubectl version v1.11.3+.
32-
- Access to a Kubernetes v1.11.3+ cluster.
36+
- Access to a Kubernetes v1.11.3+ cluster running Istio
3337

3438
### To Deploy on the cluster
3539
**Build and push your image to the location specified by `IMG`:**
3640

3741
```sh
38-
make docker-buildx IMG=<some-registry>/istio-proxy-update-controller:tag
42+
make docker-buildx IMG=sscaffidi/istio-fortsa:tag
3943
```
4044

4145
**NOTE:** This image ought to be published in the personal registry you specified.
@@ -51,7 +55,7 @@ make install
5155
**Deploy the Manager to the cluster with the image specified by `IMG`:**
5256

5357
```sh
54-
make deploy IMG=<some-registry>/istio-proxy-update-controller:tag
58+
make deploy IMG=sscaffidi/istio-fortsa:tag
5559
```
5660

5761
> **NOTE**: If you encounter RBAC errors, you may need to grant yourself cluster-admin
@@ -92,7 +96,7 @@ Following are the steps to build the installer and distribute this project to us
9296
1. Build the installer for the image built and published in the registry:
9397

9498
```sh
95-
make build-installer IMG=<some-registry>/istio-proxy-update-controller:tag
99+
make build-installer IMG=sscaffidi/istio-fortsa:tag
96100
```
97101

98102
NOTE: The makefile target mentioned above generates an 'install.yaml'
@@ -105,7 +109,7 @@ its dependencies.
105109
Users can just run kubectl apply -f <URL for YAML BUNDLE> to install the project, i.e.:
106110

107111
```sh
108-
kubectl apply -f https://raw.githubusercontent.com/<org>/istio-proxy-update-controller/<tag or branch>/dist/install.yaml
112+
kubectl apply -f https://raw.githubusercontent.com/hercynium/istio-fortsa/<tag or branch>/dist/install.yaml
109113
```
110114

111115
## TODO

bundle.Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM scratch
44
LABEL operators.operatorframework.io.bundle.mediatype.v1=registry+v1
55
LABEL operators.operatorframework.io.bundle.manifests.v1=manifests/
66
LABEL operators.operatorframework.io.bundle.metadata.v1=metadata/
7-
LABEL operators.operatorframework.io.bundle.package.v1=istio-proxy-update-controller
7+
LABEL operators.operatorframework.io.bundle.package.v1=istio-fortsa
88
LABEL operators.operatorframework.io.bundle.channels.v1=alpha
99
LABEL operators.operatorframework.io.metrics.builder=operator-sdk-v1.36.1
1010
LABEL operators.operatorframework.io.metrics.mediatype.v1=metrics+v1

bundle/manifests/istio-proxy-update-controller.clusterserviceversion.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ metadata:
77
createdAt: "2024-09-11T20:41:36Z"
88
operators.operatorframework.io/builder: operator-sdk-v1.36.1
99
operators.operatorframework.io/project_layout: go.kubebuilder.io/v4
10-
name: istio-proxy-update-controller.v0.0.1
10+
name: istio-fortsa.v0.0.1
1111
namespace: placeholder
1212
spec:
1313
apiservicedefinitions: {}
1414
customresourcedefinitions: {}
1515
description: Restarts Outdated Istio-Proxied Pods
16-
displayName: istio-proxy-update-controller
16+
displayName: istio-fortsa
1717
icon:
1818
- base64data: ""
1919
mediatype: ""
@@ -36,7 +36,7 @@ spec:
3636
- operations
3737
links:
3838
- name: Istio Proxy Update Controller
39-
url: https://istio-proxy-update-controller.domain
39+
url: https://istio-fortsa.domain
4040
maintainers:
4141
- email: sscaffidi@cloudera.com
4242
name: Steve Scaffidi

bundle/metadata/annotations.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ annotations:
33
operators.operatorframework.io.bundle.mediatype.v1: registry+v1
44
operators.operatorframework.io.bundle.manifests.v1: manifests/
55
operators.operatorframework.io.bundle.metadata.v1: metadata/
6-
operators.operatorframework.io.bundle.package.v1: istio-proxy-update-controller
6+
operators.operatorframework.io.bundle.package.v1: istio-fortsa
77
operators.operatorframework.io.bundle.channels.v1: alpha
88
operators.operatorframework.io.metrics.builder: operator-sdk-v1.36.1
99
operators.operatorframework.io.metrics.mediatype.v1: metrics+v1

cmd/main.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ import (
3636
metricsserver "sigs.k8s.io/controller-runtime/pkg/metrics/server"
3737
"sigs.k8s.io/controller-runtime/pkg/webhook"
3838

39-
"github.infra.cloudera.com/sscaffidi/istio-proxy-update-controller/internal/controller"
40-
"github.infra.cloudera.com/sscaffidi/istio-proxy-update-controller/internal/util/istiodata"
39+
"github.com/hercynium/istio-fortsa/internal/controller"
40+
"github.com/hercynium/istio-fortsa/internal/util/istiodata"
4141
//+kubebuilder:scaffold:imports
4242
)
4343

@@ -106,7 +106,7 @@ func main() {
106106
WebhookServer: webhookServer,
107107
HealthProbeBindAddress: probeAddr,
108108
LeaderElection: enableLeaderElection,
109-
LeaderElectionID: "5f4ac6c8.cloudera.com",
109+
LeaderElectionID: "5f4ac6c8.example.com",
110110
// LeaderElectionReleaseOnCancel defines if the leader should step down voluntarily
111111
// when the Manager ends. This requires the binary to immediately end when the
112112
// Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
@@ -134,7 +134,7 @@ func main() {
134134
Scheme: mgr.GetScheme(),
135135
KubeClient: kubeClient,
136136
IstioData: &istioData, // pointer because multiple controllers share the data
137-
Recorder: mgr.GetEventRecorderFor("istio-proxy-update-controller/webhook-reconciler"),
137+
Recorder: mgr.GetEventRecorderFor("istio-fortsa/webhook-reconciler"),
138138
}).SetupWithManager(mgr); err != nil {
139139
setupLog.Error(err, "unable to create controller", "controller", "MutatingWebhookConfiguration")
140140
os.Exit(1)
@@ -144,7 +144,7 @@ func main() {
144144
Scheme: mgr.GetScheme(),
145145
KubeClient: kubeClient,
146146
IstioData: &istioData, // pointer because multiple controllers share the data
147-
Recorder: mgr.GetEventRecorderFor("istio-proxy-update-controller/namespace-reconciler"),
147+
Recorder: mgr.GetEventRecorderFor("istio-fortsa/namespace-reconciler"),
148148
}).SetupWithManager(mgr); err != nil {
149149
setupLog.Error(err, "unable to create controller", "controller", "Namespace")
150150
os.Exit(1)
@@ -154,7 +154,7 @@ func main() {
154154
Scheme: mgr.GetScheme(),
155155
KubeClient: kubeClient,
156156
IstioData: &istioData, // pointer because multiple controllers share the data
157-
Recorder: mgr.GetEventRecorderFor("istio-proxy-update-controller/pod-reconciler"),
157+
Recorder: mgr.GetEventRecorderFor("istio-fortsa/pod-reconciler"),
158158
}).SetupWithManager(mgr); err != nil {
159159
setupLog.Error(err, "unable to create controller", "controller", "Pod")
160160
os.Exit(1)

config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@ minNamespcaeAge: 10m
2424
minPodAge: 10m
2525

2626
# when a pod is deemed outdated, set this label with a timestamp in nanoseconds-since-epoch
27-
oudatedPodLabelName: ipuc.cloudera.com/outdatedAt
27+
oudatedPodLabelName: fortsa.example.com/outdatedAt
2828

2929
# when we trigger a rollout restart, do so by adding this annotation to the
3030
# pod spec of the controller resource, with a timestamp value.
31-
restartAnnotationName: ipuc.cloudera.com/restartedAt
31+
restartAnnotationName: fortsa.example.com/restartedAt
3232

3333
# these probably shouldn't be configurable. TODO: They should come from the Istio libraries
3434
# we're pulling in, but maybe this would be useful for testing?

config/default/kustomization.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# Adds namespace to all resources.
2-
namespace: istio-proxy-update-controller-system
2+
namespace: istio-fortsa-system
33

44
# Value of this field is prepended to the
55
# names of all resources, e.g. a deployment named
66
# "wordpress" becomes "alices-wordpress".
77
# Note that it should also match with the prefix (text before '-') of the namespace
88
# field above.
9-
namePrefix: istio-proxy-update-controller-
9+
namePrefix: istio-fortsa-
1010

1111
# Labels to add to all resources and selectors.
1212
#labels:

config/manager/kustomization.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ apiVersion: kustomize.config.k8s.io/v1beta1
44
kind: Kustomization
55
images:
66
- name: controller
7-
newName: docker-sandbox.infra.cloudera.com/sscaffidi/istio-proxy-update-controller
7+
newName: docker-sandbox.infra.cloudera.com/sscaffidi/istio-fortsa
88
newTag: 0.0.3

config/manager/manager.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: Namespace
33
metadata:
44
labels:
55
control-plane: controller-manager
6-
app.kubernetes.io/name: istio-proxy-update-controller
6+
app.kubernetes.io/name: istio-fortsa
77
app.kubernetes.io/managed-by: kustomize
88
name: system
99
---
@@ -14,7 +14,7 @@ metadata:
1414
namespace: system
1515
labels:
1616
control-plane: controller-manager
17-
app.kubernetes.io/name: istio-proxy-update-controller
17+
app.kubernetes.io/name: istio-fortsa
1818
app.kubernetes.io/managed-by: kustomize
1919
spec:
2020
selector:

config/manifests/bases/istio-proxy-update-controller.clusterserviceversion.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ metadata:
44
annotations:
55
alm-examples: '[]'
66
capabilities: Basic Install
7-
name: istio-proxy-update-controller.v0.0.0
7+
name: istio-fortsa.v0.0.0
88
namespace: placeholder
99
spec:
1010
apiservicedefinitions: {}
1111
customresourcedefinitions: {}
1212
description: Restarts Outdated Istio-Proxied Pods
13-
displayName: istio-proxy-update-controller
13+
displayName: istio-fortsa
1414
icon:
1515
- base64data: ""
1616
mediatype: ""
@@ -33,7 +33,7 @@ spec:
3333
- operations
3434
links:
3535
- name: Istio Proxy Update Controller
36-
url: https://istio-proxy-update-controller.domain
36+
url: https://istio-fortsa.domain
3737
maintainers:
3838
- email: sscaffidi@cloudera.com
3939
name: Steve Scaffidi

config/manifests/kustomization.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# These resources constitute the fully configured set of manifests
22
# used to generate the 'manifests/' directory in a bundle.
33
resources:
4-
- bases/istio-proxy-update-controller.clusterserviceversion.yaml
4+
- bases/istio-fortsa.clusterserviceversion.yaml
55
- ../default
66
- ../samples
77
- ../scorecard

config/prometheus/monitor.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: ServiceMonitor
44
metadata:
55
labels:
66
control-plane: controller-manager
7-
app.kubernetes.io/name: istio-proxy-update-controller
7+
app.kubernetes.io/name: istio-fortsa
88
app.kubernetes.io/managed-by: kustomize
99
name: controller-manager-metrics-monitor
1010
namespace: system

config/rbac/auth_proxy_client_clusterrole.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1
22
kind: ClusterRole
33
metadata:
44
labels:
5-
app.kubernetes.io/name: istio-proxy-update-controller
5+
app.kubernetes.io/name: istio-fortsa
66
app.kubernetes.io/managed-by: kustomize
77
name: metrics-reader
88
rules:

config/rbac/auth_proxy_role.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1
22
kind: ClusterRole
33
metadata:
44
labels:
5-
app.kubernetes.io/name: istio-proxy-update-controller
5+
app.kubernetes.io/name: istio-fortsa
66
app.kubernetes.io/managed-by: kustomize
77
name: proxy-role
88
rules:

config/rbac/auth_proxy_role_binding.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1
22
kind: ClusterRoleBinding
33
metadata:
44
labels:
5-
app.kubernetes.io/name: istio-proxy-update-controller
5+
app.kubernetes.io/name: istio-fortsa
66
app.kubernetes.io/managed-by: kustomize
77
name: proxy-rolebinding
88
roleRef:

config/rbac/auth_proxy_service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ kind: Service
33
metadata:
44
labels:
55
control-plane: controller-manager
6-
app.kubernetes.io/name: istio-proxy-update-controller
6+
app.kubernetes.io/name: istio-fortsa
77
app.kubernetes.io/managed-by: kustomize
88
name: cm-metrics-svc
99
namespace: system

config/rbac/leader_election_role.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ apiVersion: rbac.authorization.k8s.io/v1
33
kind: Role
44
metadata:
55
labels:
6-
app.kubernetes.io/name: istio-proxy-update-controller
6+
app.kubernetes.io/name: istio-fortsa
77
app.kubernetes.io/managed-by: kustomize
88
name: leader-election-role
99
rules:

config/rbac/leader_election_role_binding.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1
22
kind: RoleBinding
33
metadata:
44
labels:
5-
app.kubernetes.io/name: istio-proxy-update-controller
5+
app.kubernetes.io/name: istio-fortsa
66
app.kubernetes.io/managed-by: kustomize
77
name: leader-election-rolebinding
88
roleRef:

config/rbac/role_binding.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1
22
kind: ClusterRoleBinding
33
metadata:
44
labels:
5-
app.kubernetes.io/name: istio-proxy-update-controller
5+
app.kubernetes.io/name: istio-fortsa
66
app.kubernetes.io/managed-by: kustomize
77
name: manager-rolebinding
88
roleRef:

config/rbac/service_account.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v1
22
kind: ServiceAccount
33
metadata:
44
labels:
5-
app.kubernetes.io/name: istio-proxy-update-controller
5+
app.kubernetes.io/name: istio-fortsa
66
app.kubernetes.io/managed-by: kustomize
77
name: controller-manager
88
namespace: system

demo/README.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
# Demo Program
22

3-
The code in this dir is intended to demonstrate the basic pieces of functionality behind the
4-
Istio Proxy Update Controller
5-
3+
The code in this dir is intended to demonstrate the basic pieces of functionality behind Fortsa

0 commit comments

Comments
 (0)