Skip to content

Commit

Permalink
Merge pull request #453 from jackfrancis/cert-manager-dependencies
Browse files Browse the repository at this point in the history
don’t deliver cert-manager CRDs with cluster-api-operator chart
  • Loading branch information
k8s-ci-robot committed Mar 13, 2024
2 parents ee252ac + c8a9022 commit a0285da
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,7 @@ release-manifests: $(KUSTOMIZE) $(RELEASE_DIR) ## Builds the manifests to publis
release-chart: $(HELM) $(KUSTOMIZE) $(RELEASE_DIR) $(CHART_DIR) $(CHART_PACKAGE_DIR) ## Builds the chart to publish with a release
cp -rf $(ROOT)/hack/charts/cluster-api-operator/. $(CHART_DIR)
$(KUSTOMIZE) build ./config/chart > $(CHART_DIR)/templates/operator-components.yaml
$(ROOT)/hack/inject-cert-manager-helm.sh $(CERT_MANAGER_VERSION)
$(ROOT)/hack/inject-cert-manager-chart-version.sh $(CERT_MANAGER_VERSION)
$(HELM) package $(CHART_DIR) --app-version=$(HELM_CHART_TAG) --version=$(HELM_CHART_TAG) --destination=$(CHART_PACKAGE_DIR)

.PHONY: release-staging
Expand Down
1 change: 1 addition & 0 deletions hack/charts/cluster-api-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ cert-manager:
enabled: false
fullnameOverride: "cert-manager"
namespace: "cert-manager"
installCRDs: true
# ---
# Cluster API provider options
core: ""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,9 @@ if [[ ! "$1" =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
fi

VERSION=$1
URL="https://github.com/cert-manager/cert-manager/releases/download/${VERSION}/cert-manager.crds.yaml"
OUTPUT_DIR="${CHART_DIR}/crds"

# Create the output directory if it doesn't exist
mkdir -p "$OUTPUT_DIR"

# Download and save the file
curl -L -o "${OUTPUT_DIR}/cert-manager.crds.yaml" "$URL"
echo "Downloaded cert-manager.crds.yaml for ${VERSION} and saved it in ${OUTPUT_DIR}"
mkdir -p "$CHART_DIR"

# Modify version in Chart.yaml
CHART_FILE="${CHART_DIR}/Chart.yaml"
Expand Down

0 comments on commit a0285da

Please sign in to comment.