Skip to content

Commit

Permalink
rename ipxe-operator to current boot-operator
Browse files Browse the repository at this point in the history
  • Loading branch information
defo89 committed Jul 3, 2024
1 parent 26d25d7 commit 30d782c
Show file tree
Hide file tree
Showing 16 changed files with 54 additions and 54 deletions.
14 changes: 7 additions & 7 deletions system/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ PROVIDER_IPAM_VERSION ?= v0.1.0
PROVIDER_KUBERNIKUS_VERSION ?= 9fd81475b828971913b3b27addf51fdbd0511d85
BAREMETAL_OPERATOR_VERSION ?= v0.6.0
METAL_OPERATOR_VERSION ?= 59fa5118ded38b711bbe940838552f4696151269
IPXE_OPERATOR_VERSION ?= 61c6898bfd7772008835bdcca8d8a64c1dfc3b32
BOOT_OPERATOR_VERSION ?= 61c6898bfd7772008835bdcca8d8a64c1dfc3b32
FEDHCP_VERSION ?= a59539c62aaa11a96c82fe792c87daaac4cb75bf

SHELL := bash
Expand Down Expand Up @@ -91,12 +91,12 @@ build-metal-operator:
@yq -i '.fullnameOverride="metal-operator"' metal-operator-core/values.yaml
@yq -i '.version="1.0.0"' metal-operator-core/Chart.yaml

build-ipxe-operator:
@cat kustomize/ipxe-operator/kustomization.yaml >> kustomization.yaml
$(call build-chart,ipxe-operator,https://github.com/ironcore-dev/ipxe-operator//config/default,$(IPXE_OPERATOR_VERSION))
@yq -i '.controllerManager.manager.image.tag="$(IPXE_OPERATOR_VERSION)"' ipxe-operator/values.yaml
@yq -i '.fullnameOverride="ipxe-operator"' ipxe-operator/values.yaml
@yq -i '.version="0.0.5"' ipxe-operator/Chart.yaml
build-boot-operator:
@cat kustomize/boot-operator/kustomization.yaml >> kustomization.yaml
$(call build-chart,boot-operator,https://github.com/ironcore-dev/boot-operator//config/default,$(BOOT_OPERATOR_VERSION))
@yq -i '.controllerManager.manager.image.tag="$(BOOT_OPERATOR_VERSION)"' boot-operator/values.yaml
@yq -i '.fullnameOverride="boot-operator"' boot-operator/values.yaml
@yq -i '.version="0.0.5"' boot-operator/Chart.yaml

build-fedhcp:
@cat kustomize/fedhcp/kustomization.yaml >> kustomization.yaml
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v2
name: ipxe-operator
name: boot-operator
description: A Helm chart for Kubernetes
# A chart can be either an 'application' or a 'library' chart.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{/*
Expand the name of the chart.
*/}}
{{- define "ipxe-operator.name" -}}
{{- define "boot-operator.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
{{- end }}

Expand All @@ -10,7 +10,7 @@ Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
If release name contains chart name it will be used as a full name.
*/}}
{{- define "ipxe-operator.fullname" -}}
{{- define "boot-operator.fullname" -}}
{{- if .Values.fullnameOverride }}
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
{{- else }}
Expand All @@ -26,16 +26,16 @@ If release name contains chart name it will be used as a full name.
{{/*
Create chart name and version as used by the chart label.
*/}}
{{- define "ipxe-operator.chart" -}}
{{- define "boot-operator.chart" -}}
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
{{- end }}

{{/*
Common labels
*/}}
{{- define "ipxe-operator.labels" -}}
helm.sh/chart: {{ include "ipxe-operator.chart" . }}
{{ include "ipxe-operator.selectorLabels" . }}
{{- define "boot-operator.labels" -}}
helm.sh/chart: {{ include "boot-operator.chart" . }}
{{ include "boot-operator.selectorLabels" . }}
{{- if .Chart.AppVersion }}
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
{{- end }}
Expand All @@ -45,17 +45,17 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
{{/*
Selector labels
*/}}
{{- define "ipxe-operator.selectorLabels" -}}
app.kubernetes.io/name: {{ include "ipxe-operator.name" . }}
{{- define "boot-operator.selectorLabels" -}}
app.kubernetes.io/name: {{ include "boot-operator.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
{{- end }}

{{/*
Create the name of the service account to use
*/}}
{{- define "ipxe-operator.serviceAccountName" -}}
{{- define "boot-operator.serviceAccountName" -}}
{{- if .Values.serviceAccount.create }}
{{- default (include "ipxe-operator.fullname" .) .Values.serviceAccount.name }}
{{- default (include "boot-operator.fullname" .) .Values.serviceAccount.name }}
{{- else }}
{{- default "default" .Values.serviceAccount.name }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ include "ipxe-operator.fullname" . }}-controller-manager
name: {{ include "boot-operator.fullname" . }}-controller-manager
labels:
app.kubernetes.io/component: manager
app.kubernetes.io/created-by: ipxe-operator
app.kubernetes.io/part-of: ipxe-operator
control-plane: controller-manager
{{- include "ipxe-operator.labels" . | nindent 4 }}
{{- include "boot-operator.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.controllerManager.replicas }}
selector:
matchLabels:
control-plane: controller-manager
{{- include "ipxe-operator.selectorLabels" . | nindent 6 }}
{{- include "boot-operator.selectorLabels" . | nindent 6 }}
template:
metadata:
labels:
control-plane: controller-manager
{{- include "ipxe-operator.selectorLabels" . | nindent 8 }}
{{- include "boot-operator.selectorLabels" . | nindent 8 }}
annotations:
kubectl.kubernetes.io/default-container: manager
spec:
Expand Down Expand Up @@ -69,5 +69,5 @@ spec:
| nindent 10 }}
securityContext:
runAsNonRoot: true
serviceAccountName: {{ include "ipxe-operator.fullname" . }}-controller-manager
serviceAccountName: {{ include "boot-operator.fullname" . }}-controller-manager
terminationGracePeriodSeconds: 10
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: {{ include "ipxe-operator.fullname" . }}-leader-election-role
name: {{ include "boot-operator.fullname" . }}-leader-election-role
labels:
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: ipxe-operator
app.kubernetes.io/part-of: ipxe-operator
{{- include "ipxe-operator.labels" . | nindent 4 }}
{{- include "boot-operator.labels" . | nindent 4 }}
rules:
- apiGroups:
- ""
Expand Down Expand Up @@ -43,17 +43,17 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: {{ include "ipxe-operator.fullname" . }}-leader-election-rolebinding
name: {{ include "boot-operator.fullname" . }}-leader-election-rolebinding
labels:
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: ipxe-operator
app.kubernetes.io/part-of: ipxe-operator
{{- include "ipxe-operator.labels" . | nindent 4 }}
{{- include "boot-operator.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: '{{ include "ipxe-operator.fullname" . }}-leader-election-role'
name: '{{ include "boot-operator.fullname" . }}-leader-election-role'
subjects:
- kind: ServiceAccount
name: '{{ include "ipxe-operator.fullname" . }}-controller-manager'
name: '{{ include "boot-operator.fullname" . }}-controller-manager'
namespace: '{{ .Release.Namespace }}'
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "ipxe-operator.fullname" . }}-manager-role
name: {{ include "boot-operator.fullname" . }}-manager-role
labels:
{{- include "ipxe-operator.labels" . | nindent 4 }}
{{- include "boot-operator.labels" . | nindent 4 }}
rules:
- apiGroups:
- ""
Expand Down Expand Up @@ -133,17 +133,17 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "ipxe-operator.fullname" . }}-manager-rolebinding
name: {{ include "boot-operator.fullname" . }}-manager-rolebinding
labels:
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: ipxe-operator
app.kubernetes.io/part-of: ipxe-operator
{{- include "ipxe-operator.labels" . | nindent 4 }}
{{- include "boot-operator.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: '{{ include "ipxe-operator.fullname" . }}-manager-role'
name: '{{ include "boot-operator.fullname" . }}-manager-role'
subjects:
- kind: ServiceAccount
name: '{{ include "ipxe-operator.fullname" . }}-controller-manager'
name: '{{ include "boot-operator.fullname" . }}-controller-manager'
namespace: '{{ .Release.Namespace }}'
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "ipxe-operator.fullname" . }}-metrics-reader
name: {{ include "boot-operator.fullname" . }}-metrics-reader
labels:
app.kubernetes.io/component: kube-rbac-proxy
app.kubernetes.io/created-by: ipxe-operator
app.kubernetes.io/part-of: ipxe-operator
{{- include "ipxe-operator.labels" . | nindent 4 }}
{{- include "boot-operator.labels" . | nindent 4 }}
rules:
- nonResourceURLs:
- /metrics
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "ipxe-operator.fullname" . }}-controller-manager-metrics-service
name: {{ include "boot-operator.fullname" . }}-controller-manager-metrics-service
labels:
app.kubernetes.io/component: kube-rbac-proxy
app.kubernetes.io/created-by: ipxe-operator
app.kubernetes.io/part-of: ipxe-operator
control-plane: controller-manager
{{- include "ipxe-operator.labels" . | nindent 4 }}
{{- include "boot-operator.labels" . | nindent 4 }}
spec:
type: {{ .Values.metricsService.type }}
selector:
control-plane: controller-manager
{{- include "ipxe-operator.selectorLabels" . | nindent 4 }}
{{- include "boot-operator.selectorLabels" . | nindent 4 }}
ports:
{{- .Values.metricsService.ports | toYaml | nindent 2 }}
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "ipxe-operator.fullname" . }}-proxy-role
name: {{ include "boot-operator.fullname" . }}-proxy-role
labels:
app.kubernetes.io/component: kube-rbac-proxy
app.kubernetes.io/created-by: ipxe-operator
app.kubernetes.io/part-of: ipxe-operator
{{- include "ipxe-operator.labels" . | nindent 4 }}
{{- include "boot-operator.labels" . | nindent 4 }}
rules:
- apiGroups:
- authentication.k8s.io
Expand All @@ -24,17 +24,17 @@ rules:
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ include "ipxe-operator.fullname" . }}-proxy-rolebinding
name: {{ include "boot-operator.fullname" . }}-proxy-rolebinding
labels:
app.kubernetes.io/component: kube-rbac-proxy
app.kubernetes.io/created-by: ipxe-operator
app.kubernetes.io/part-of: ipxe-operator
{{- include "ipxe-operator.labels" . | nindent 4 }}
{{- include "boot-operator.labels" . | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: '{{ include "ipxe-operator.fullname" . }}-proxy-role'
name: '{{ include "boot-operator.fullname" . }}-proxy-role'
subjects:
- kind: ServiceAccount
name: '{{ include "ipxe-operator.fullname" . }}-controller-manager'
name: '{{ include "boot-operator.fullname" . }}-controller-manager'
namespace: '{{ .Release.Namespace }}'
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "ipxe-operator.fullname" . }}-controller-manager
name: {{ include "boot-operator.fullname" . }}-controller-manager
labels:
app.kubernetes.io/component: rbac
app.kubernetes.io/created-by: ipxe-operator
app.kubernetes.io/part-of: ipxe-operator
{{- include "ipxe-operator.labels" . | nindent 4 }}
{{- include "boot-operator.labels" . | nindent 4 }}
annotations:
{{- toYaml .Values.controllerManager.serviceAccount.annotations | nindent 4 }}
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ metricsService:
protocol: TCP
targetPort: https
type: ClusterIP
fullnameOverride: ipxe-operator
fullnameOverride: boot-operator
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Adds namespace to all resources.
namespace: ipxe-operator-system
namespace: boot-operator-system

# Value of this field is prepended to the
# names of all resources, e.g. a deployment named
# "wordpress" becomes "alices-wordpress".
# Note that it should also match with the prefix (text before '-') of the namespace
# field above.
namePrefix: ipxe-operator-
namePrefix: boot-operator-

patches:
- path: ./kustomize/ipxe-operator/patch-operator-deployment.yaml
- path: ./kustomize/boot-operator/patch-operator-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ipxe-operator-controller-manager
namespace: ipxe-operator-system
name: boot-operator-controller-manager
namespace: boot-operator-system
spec:
template:
spec:
Expand Down

0 comments on commit 30d782c

Please sign in to comment.