Skip to content

Commit

Permalink
update for git issue #3
Browse files Browse the repository at this point in the history
  • Loading branch information
humoflife committed Jan 25, 2024
1 parent cb29902 commit bf9ca5e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ UPTEST_VERSION = v0.10.0
# certain conventions such as the default examples root or package directory.
XPKG_DIR = $(shell pwd)
XPKG_EXAMPLES_DIR = examples
XPKG_IGNORE = .github/workflows/ci.yaml,.github/workflows/tag.yml,.github/workflows/e2e.yaml,.github/workflows/yamllint.yaml,init/*.yaml,.work/uptest-datasource.yaml,test/provider/*.yaml
XPKG_IGNORE = .github/workflows/ci.yaml,.github/workflows/tag.yml,.github/workflows/e2e.yaml,.github/workflows/yamllint.yaml,init/*.yaml,.work/uptest-datasource.yaml,test/provider/*.yaml,examples/*.yaml

XPKG_REG_ORGS ?= xpkg.upbound.io/upbound
# NOTE(hasheddan): skip promoting on xpkg.upbound.io as channel tags are
Expand Down
1 change: 1 addition & 0 deletions examples/vault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: sec.upbound.io/v1alpha1
kind: Vault
metadata:
name: configuration-vault
namespace: default
spec:
parameters:
id: configuration-vault
Expand Down
15 changes: 7 additions & 8 deletions test/setup.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/bin/bash
# Uptest setup
SCRIPT_DIR=$( cd -- $( dirname -- "${BASH_SOURCE[0]}" ) &> /dev/null && pwd )
${KUBECTL} wait configuration.pkg configuration-vault --for=condition=Healthy --timeout 5m
${KUBECTL} wait configuration.pkg configuration-vault --for=condition=Installed --timeout 5m
${KUBECTL} wait configurationrevisions.pkg --all --for=condition=Healthy --timeout 5m
${KUBECTL} wait xrd --all --for condition=Established

${KUBECTL} -n upbound-system wait --timeout=5m --for=condition=Available deployment --all

${KUBECTL} wait function.pkg --all --timeout 5m --for condition=Healthy
Expand All @@ -10,14 +15,8 @@ ${KUBECTL} apply -f ${SCRIPT_DIR}/provider/provider-configs.yaml
SA=$(${KUBECTL} -n upbound-system get sa -o name|grep provider-kubernetes|\
sed -e "s|serviceaccount\/|upbound-system:|g")
${KUBECTL} create clusterrolebinding provider-kubernetes-admin-binding \
--clusterrole cluster-admin --serviceaccount="${SA}"
--clusterrole cluster-admin --serviceaccount="${SA}" || true
SA=$(${KUBECTL} -n upbound-system get sa -o name|grep provider-helm|\
sed -e "s|serviceaccount\/|upbound-system:|g")
${KUBECTL} create clusterrolebinding provider-helm-admin-binding \
--clusterrole cluster-admin --serviceaccount="${SA}"

find ${SCRIPT_DIR}/../apis -name "definition.yaml"|\
while read y; do ${KUBECTL} apply -f $y; done
find ${SCRIPT_DIR}/../apis -name "composition.yaml"|\
while read y; do ${KUBECTL} apply -f $y; done
#${KUBECTL} apply -f ${SCRIPT_DIR}/../examples/vault.yaml
--clusterrole cluster-admin --serviceaccount="${SA}" || true

0 comments on commit bf9ca5e

Please sign in to comment.