Skip to content

Commit

Permalink
Send definition to superclass for kubernetes_resource subclass.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajshepley committed Sep 25, 2020
1 parent 5b3022c commit af1ce13
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/krane/kubernetes_resource/persistent_volume_claim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class StorageClass < KubernetesResource
attr_reader :name

def initialize(definition)
super(definition: definition)
@definition = definition
@name = definition.dig("metadata", "name").to_s
end
Expand Down

0 comments on commit af1ce13

Please sign in to comment.