-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
010228b
commit 2f530a4
Showing
10 changed files
with
382 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,6 +22,7 @@ vendor | |
|
||
# editor and IDE paraphernalia | ||
.idea | ||
.vscode | ||
*.swp | ||
*.swo | ||
*~ |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package v1alpha1 | ||
|
||
func IsClientSecurityEnabled(c *EtcdCluster) bool { | ||
clientSecurityEnabled := false | ||
if c.Spec.Security != nil && c.Spec.Security.TLS.ClientSecret != "" { | ||
clientSecurityEnabled = true | ||
} | ||
return clientSecurityEnabled | ||
} | ||
|
||
func IsServerSecurityEnabled(c *EtcdCluster) bool { | ||
serverSecurityEnabled := false | ||
if c.Spec.Security != nil && c.Spec.Security.TLS.ServerSecret != "" { | ||
serverSecurityEnabled = true | ||
} | ||
return serverSecurityEnabled | ||
} | ||
|
||
func IsServerCADefined(c *EtcdCluster) bool { | ||
serverCADefined := false | ||
if c.Spec.Security != nil && c.Spec.Security.TLS.ServerTrustedCASecret != "" { | ||
serverCADefined = true | ||
} | ||
return serverCADefined | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.