This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: PersistentVolume | |
| metadata: | |
| name: mysql-pv | |
| spec: | |
| capacity: | |
| storage: 20Gi | |
| accessModes: | |
| - ReadWriteOnce | |
| hostPath: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: gmail-web-app-mysql-service | |
| labels: | |
| app: gmail-web-app-mysql | |
| spec: | |
| ports: | |
| - port: 3306 | |
| selector: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: gmail-web-app | |
| labels: | |
| app: gmail-web-app | |
| spec: | |
| ports: | |
| - port: 3000 | |
| selector: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'active_support/all' | |
| class User | |
| attr_accessor :name, :admin | |
| def initialize(options = {}, &block) | |
| options.each do |k,v| | |
| self.public_send "#{k}=", v | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'spec_helper' | |
| # TODO: there are a lot of code that duplicates, move it to helpers | |
| RSpec.describe FactoryBoy do | |
| User = Struct.new(:name, :admin) | |
| Building = Struct.new(:address) | |
| before(:each) do | |
| FactoryBoy.reset |
NewerOlder