-
Notifications
You must be signed in to change notification settings - Fork 0
Envtest #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Makefile
Outdated
@{ \ | ||
set -e ;\ | ||
YAML=external/test/crd-clusterwidenetworkpolicy.yaml ;\ | ||
kubectl apply -f https://raw.githubusercontent.com/metal-stack/firewall-controller/master/config/crd/bases/metal-stack.io_clusterwidenetworkpolicies.yaml -o yaml | sed '/^ resourceVersion/d' > $$YAML ;\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use curl
config/samples/postgres.yaml
Outdated
namespace: database | ||
name: sample-name-a | ||
namespace: default | ||
name: sample-name |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change the file name to complete.
config/samples/postgres.yaml
Outdated
apiVersion: database.fits.cloud/v1 | ||
kind: Postgres | ||
metadata: | ||
namespace: database | ||
name: sample-name-a | ||
namespace: default |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change to prod ns: metal-extension-cloud
controllers/suite_test.go
Outdated
) | ||
|
||
func init() { | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
Add integration tests by using controller-runtime pkg envtest.