Faas: Rename sample function names to lowercase

Created on 8 Oct 2017  路  12Comments  路  Source: openfaas/faas

The current set of function names in the samples.yml file are invalid, so need to be lowercase to be deployable on Swarm/K8s. Also replace _ for - for DNS validation.

Testing:

This should yield no errors:

faas-cli build -f samples.yml
faas-cli deploy -f samples.yml

https://github.com/openfaas/faas/blob/master/sample-functions/samples.yml

hacktoberfest skilbeginner

Most helpful comment

i am taking it

All 12 comments

Derek add label: helpwanted

i am taking it

don't know how to run these commands

faas-cli build -f samples.yml
faas-cli deploy -f samples.yml

@VijayGomathi Can you give us a bit more info? How have you tried so far? What message do you get when trying to run them?

@rgee0 I tried installing faas-cli via npm. but i could not run the command. I am getting the following error message.
"'faas-cli' is not recognized as an internal or external command,
operable program or batch file."

I also tried installing faas-cli package globally in npm. Still getting the same error

@VijayGomathi please try $ curl -sSL https://cli.openfaas.com | sudo sh

@rgee0 I am using windows operating system

@rgee0 now I'm getting this error. Please help.
faas-cli

You can't use Windows containers for this script.. switch to Linux containers.

I'm not sure what was meant by Also replace _ for - for DNS validation., maybe those replacements were made in an earlier merged PR? If my branch is missing what's meant by that, just let me know what exactly needs to change and I'll fix it as well.

Fixed by @GrantSheehan - thank you. @VijayGomathi thank you for taking a shot at this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FlankMiao picture FlankMiao  路  4Comments

alexellis picture alexellis  路  7Comments

edouardkleinhans picture edouardkleinhans  路  8Comments

jvice152 picture jvice152  路  7Comments

alexellis picture alexellis  路  7Comments