Skip to content

Commit

Permalink
CRDs helm subchart
Browse files Browse the repository at this point in the history
  • Loading branch information
cheina97 committed Sep 22, 2023
1 parent 63e2afd commit a5148fb
Show file tree
Hide file tree
Showing 29 changed files with 48 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ purge: manifests ctl
# Generate manifests e.g. CRD, RBAC etc.
manifests: controller-gen
rm -f deployments/liqo/crds/*
$(CONTROLLER_GEN) paths="./apis/..." crd:generateEmbeddedObjectMeta=true output:crd:artifacts:config=deployments/liqo/crds
$(CONTROLLER_GEN) paths="./apis/..." crd:generateEmbeddedObjectMeta=true output:crd:artifacts:config=deployments/liqo/charts/liqo-crds/crds

#Generate RBAC for each controller
rbacs: controller-gen
Expand Down
8 changes: 2 additions & 6 deletions deployments/liqo/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,5 @@ 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.
version: "0.1"

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
# AppVersion is commented by default. Uncomment it or add it as extra-args to helm package if you want to release a new Liqo version
# appVersion:
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0
23 changes: 23 additions & 0 deletions deployments/liqo/charts/liqo-crds/.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/
18 changes: 18 additions & 0 deletions deployments/liqo/charts/liqo-crds/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: v2
name: liqo-crds
description: A Helm chart for Liqo, contains the CRDs

# 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
File renamed without changes.
4 changes: 4 additions & 0 deletions pkg/liqoctl/uninstall/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ import (
"sigs.k8s.io/controller-runtime/pkg/client"

discoveryv1alpha1 "github.com/liqotech/liqo/apis/discovery/v1alpha1"
ipamv1alpha1 "github.com/liqotech/liqo/apis/ipam/v1alpha1"
netv1alpha1 "github.com/liqotech/liqo/apis/net/v1alpha1"
networkingv1alpha1 "github.com/liqotech/liqo/apis/networking/v1alpha1"
offv1alpha1 "github.com/liqotech/liqo/apis/offloading/v1alpha1"
sharingv1alpha1 "github.com/liqotech/liqo/apis/sharing/v1alpha1"
virtualKubeletv1alpha1 "github.com/liqotech/liqo/apis/virtualkubelet/v1alpha1"
Expand All @@ -49,6 +51,8 @@ var liqoGroupVersions = []schema.GroupVersion{
offv1alpha1.GroupVersion,
sharingv1alpha1.GroupVersion,
virtualKubeletv1alpha1.SchemeGroupVersion,
networkingv1alpha1.GroupVersion,
ipamv1alpha1.GroupVersion,
}

// Options encapsulates the arguments of the uninstall command.
Expand Down

0 comments on commit a5148fb

Please sign in to comment.