Skip to content

Commit

Permalink
fix: Fix autopilot deploy targets
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonvigil committed Jan 22, 2025
1 parent 67c56b8 commit 62ceb49
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 33 deletions.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ install: manifests
deploy-controller: docker-build docker-push
kustomize build config/installbundle/releases/scopes/cluster/withworkloadidentity | sed -e 's/$${PROJECT_ID?}/${PROJECT_ID}/g'| kubectl apply -f - ${CONTEXT_FLAG}

# Deploy controller only, this will skip CRD install in the configured K8s and usually runs much
# faster than "make deploy". It is useful if you only want to quickly apply code change in controller
.PHONY: deploy-controller-autopilot
deploy-controller-autopilot: docker-build docker-push
kustomize build config/installbundle/releases/scopes/cluster/autopilot-withworkloadidentity | sed -e 's/$${PROJECT_ID?}/${PROJECT_ID}/g'| kubectl apply -f - ${CONTEXT_FLAG}

# Generate CRD go clients
.PHONY: generate-go-client
generate-go-client:
Expand Down Expand Up @@ -365,7 +371,7 @@ deploy-kcc-standard: docker-build docker-push config-connector-manifests-standar
.PHONY: deploy-kcc-autopilot
deploy-kcc-autopilot: docker-build docker-push config-connector-manifests-autopilot push-operator-manifest
kubectl apply -f config/installbundle/release-manifests/autopilot/manifests.yaml ${CONTEXT_FLAG}
kustomize build config/installbundle/releases/scopes/cluster/withworkloadidentity | sed -e 's/$${PROJECT_ID?}/${PROJECT_ID}/g'| kubectl apply -f - ${CONTEXT_FLAG}
kustomize build config/installbundle/releases/scopes/cluster/autopilot-withworkloadidentity | sed -e 's/$${PROJECT_ID?}/${PROJECT_ID}/g'| kubectl apply -f - ${CONTEXT_FLAG}

.PHONY: powertool-tests
powertool-tests:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,11 @@ resources:
- ../withsecretvolume
patches:
- path: hostnetwork_patch.yaml

patchesJson6902:
- target:
group: apps
version: v1
kind: Deployment
name: cnrm-resource-stats-recorder
namespace: cnrm-system
path: recorder_remove_hostport_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,11 @@ resources:
- ../withworkloadidentity
patches:
- path: hostnetwork_patch.yaml

patchesJson6902:
- target:
group: apps
version: v1
kind: Deployment
name: cnrm-resource-stats-recorder
namespace: cnrm-system
path: recorder_remove_hostport_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,12 @@ resources:
- ../shared-components
patches:
- path: hostnetwork_patch.yaml
patchesJson6902:
- target:
group: apps
version: v1
kind: Deployment
name: cnrm-resource-stats-recorder
namespace: cnrm-system
path: recorder_remove_hostport_patch.yaml

Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,4 @@
# limitations under the License.

resources:
- ../release-bundle/install-bundle-autopilot-gcp-identity/0-cnrm-system.yaml

patchesJson6902:
- target:
group: apps
version: v1
kind: Deployment
name: cnrm-resource-stats-recorder
namespace: cnrm-system
path: recorder_remove_hostport_patch.yaml
- ../release-bundle/install-bundle-autopilot-gcp-identity/0-cnrm-system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,4 @@
# limitations under the License.

resources:
- ../release-bundle/install-bundle-autopilot-workload-identity/0-cnrm-system.yaml

patchesJson6902:
- target:
group: apps
version: v1
kind: Deployment
name: cnrm-resource-stats-recorder
namespace: cnrm-system
path: recorder_remove_hostport_patch.yaml
- ../release-bundle/install-bundle-autopilot-workload-identity/0-cnrm-system.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,4 @@
# limitations under the License.

resources:
- ../release-bundle/install-bundle-autopilot-namespaced/0-cnrm-system.yaml

patchesJson6902:
- target:
group: apps
version: v1
kind: Deployment
name: cnrm-resource-stats-recorder
namespace: cnrm-system
path: recorder_remove_hostport_patch.yaml
- ../release-bundle/install-bundle-autopilot-namespaced/0-cnrm-system.yaml

0 comments on commit 62ceb49

Please sign in to comment.