Skip to content

Commit

Permalink
get config values with config bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
azhry committed Feb 23, 2023
1 parent 9207b87 commit e1b259e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (c *ClusterApiClient) ApplyYaml(yamlString string) error {

if _, err := (*dri).Create(context.Background(), unstructuredObj, metav1.CreateOptions{}); err != nil {
c.LabelSelector = nil
if !strings.Contains(error.Error(err), ` already exists`) {
if strings.Contains(error.Error(err), ` already exists`) {
continue
}
return err
Expand Down

0 comments on commit e1b259e

Please sign in to comment.