Skip to content

Commit

Permalink
Add boot-operator-remote chart
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuckal777 committed Nov 15, 2024
1 parent 9956754 commit 75d39c5
Show file tree
Hide file tree
Showing 14 changed files with 840 additions and 0 deletions.
15 changes: 15 additions & 0 deletions system/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,21 @@ build-boot-operator:
@yq -i '.fullnameOverride="boot-operator"' boot-operator/values.yaml
@yq -i '.version="1.0.1"' boot-operator/Chart.yaml

build-boot-operator-remote:
@cat kustomize/boot-operator-remote/kustomization.yaml > kustomization.yaml
@kubectl kustomize | helmify -crd-dir boot-operator-remote
@cp kustomize/boot-operator-remote/remote-kubeconfig.yaml boot-operator-remote/templates
@cp kustomize/boot-operator-remote/managedresource.yaml boot-operator-remote/templates
@mkdir boot-operator-remote/managedresources
@kubectl kustomize kustomize/boot-operator-managedresources > boot-operator-remote/managedresources/kustomize.yaml
@yq -i '.controllerManager.manager.image.tag="$(BOOT_OPERATOR_VERSION)"' boot-operator-remote/values.yaml
@yq -i '.fullnameOverride="boot-operator"' boot-operator-remote/values.yaml
@yq -i '.remote.ca=""' boot-operator-remote/values.yaml
@yq -i '.remote.server=""' boot-operator-remote/values.yaml
@yq -i '.version="0.1.0"' boot-operator-remote/Chart.yaml
@$(SED) -i 's/serviceAccountName.*$$/serviceAccountName: default/g' boot-operator-remote/templates/deployment.yaml
@$(SED) -i 's/kind: Role/kind: ClusterRole/g' boot-operator-remote/managedresources/kustomize.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))
Expand Down
23 changes: 23 additions & 0 deletions system/boot-operator-remote/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
21 changes: 21 additions & 0 deletions system/boot-operator-remote/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: v2
name: boot-operator-remote
description: A Helm chart for Kubernetes
# A chart can be either an 'application' or a 'library' chart.
#
# Application charts are a collection of templates that can be packaged into versioned archives
# to be deployed.
#
# Library charts provide useful utilities or functions for the chart developer. They're included as
# a dependency of application charts to inject those utilities and functions into the rendering
# pipeline. Library charts do not define any templates and therefore cannot be deployed.
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.1.0"
Loading

0 comments on commit 75d39c5

Please sign in to comment.