Skip to content

Commit

Permalink
Merge branch 'nephio-project:main' into metaData-Store-OwnerRefs
Browse files Browse the repository at this point in the history
  • Loading branch information
kushnaidu committed Sep 4, 2024
2 parents 14eb297 + e6f8396 commit ebf6b79
Show file tree
Hide file tree
Showing 44 changed files with 502 additions and 760 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/porchctl-cli-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ jobs:
chmod: 0755
- name: Build and install porchctl
run: |
go build -o ${GITHUB_WORKSPACE}.build/ ./cmd/porchctl
mv ${GITHUB_WORKSPACE}.build/porchctl /usr/local/bin/porchctl
make porchctl
mv ${GITHUB_WORKSPACE}/.build/porchctl /usr/local/bin/porchctl
sudo chmod 755 /usr/local/bin/porchctl
porchctl version
- name: Create k8s Kind Cluster
uses: helm/kind-action@v1
with:
Expand Down
15 changes: 2 additions & 13 deletions .github/workflows/porchctl-dev-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,11 @@

name: porchctl dev release

# build and update the porchctl on merge to main branch
on:
pull_request:
paths-ignore:
- "build/**"
- "controllers/**"
- "deployments/**"
- "docs/**"
- "examples/**"
- "release/**"
- "scripts/**"
- ".prow.yaml"
- "OWNERS"
push:
branches:
- main
types:
- closed

jobs:
build:
Expand Down
3 changes: 2 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"cwd": "${workspaceFolder}",
"env": {
"CERT_STORAGE_DIR": "${workspaceFolder}/.build/pki/tmp",
"WEBHOOK_HOST": "localhost"
"WEBHOOK_HOST": "localhost",
"GOOGLE_API_GO_EXPERIMENTAL_DISABLE_NEW_AUTH_LIB": "true"
}
},
{
Expand Down
27 changes: 17 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ CACHEDIR=$(CURDIR)/.cache
export DEPLOYPORCHCONFIGDIR ?= $(BUILDDIR)/deploy
DEPLOYKPTCONFIGDIR=$(BUILDDIR)/kpt_pkgs
PORCHDIR=$(abspath $(CURDIR))
PORCHCTL_VERSION := $(shell date '+development-%Y-%m-%dT%H:%M:%S')

# This includes the following targets:
# test, unit, unit-clean,
Expand Down Expand Up @@ -66,13 +67,6 @@ else
endif
endif

# Modules are ordered in dependency order. A module precedes modules that depend on it.
MODULES = \
examples/apps/hello-server \
api \
. \
controllers \

.DEFAULT_GOAL := all

.PHONY: all
Expand Down Expand Up @@ -139,17 +133,30 @@ start-function-runner:
$(IMAGE_REPO)/$(PORCH_FUNCTION_RUNNER_IMAGE):$(IMAGE_TAG) \
-disable-runtimes pod


# API Modules
API_MODULES = \
api \
pkg/kpt/api \
controllers \

.PHONY: generate-api
generate-api:
KUBE_VERBOSE=2 $(CURDIR)/scripts/generate-api.sh

.PHONY: generate
generate: generate-api ## Generate CRDs, other K8s manifests and helper go code
@for f in $(MODULES); do (cd $$f; echo "Generating $$f"; go generate -v ./...) || exit 1; done
@for f in $(API_MODULES); do (cd $$f; echo "Generating for $$f ..."; go generate -v ./...) || exit 1; done

# Go Modules are ordered in dependency order. A module precedes modules that depend on it.
GO_MODULES = \
api \
. \
controllers \

.PHONY: tidy
tidy:
@for f in $(MODULES); do (cd $$f; echo "Tidying $$f"; go mod tidy) || exit 1; done
@for f in $(GO_MODULES); do (cd $$f; echo "Tidying $$f"; go mod tidy) || exit 1; done

.PHONY: configure-git
configure-git:
Expand Down Expand Up @@ -186,7 +193,7 @@ porch:

.PHONY: porchctl
porchctl:
go build -o $(PORCHCTL) ./cmd/porchctl
go build -ldflags="-X github.com/nephio-project/porch/cmd/porchctl/run.version=$(PORCHCTL_VERSION)" -o $(PORCHCTL) ./cmd/porchctl

.PHONY: fix-headers
fix-headers:
Expand Down
Loading

0 comments on commit ebf6b79

Please sign in to comment.