Skip to content

Commit

Permalink
Removed the exception for scc
Browse files Browse the repository at this point in the history
  • Loading branch information
piyush-garg committed Jan 18, 2018
1 parent 8ac86c3 commit 7412c68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -904,13 +904,13 @@ protected void updateApiVersion(KubernetesResourceList list) {
* using API Groups with custom version strings
*/
protected void updateApiVersion(HasMetadata hasMetadata) {
if((hasMetadata.getApiVersion()==null ||
/*if((hasMetadata.getApiVersion()==null ||
hasMetadata.getApiVersion()=="" ||
hasMetadata.getApiVersion().equalsIgnoreCase("security.openshift.io/v1")) &&
hasMetadata.getKind().equalsIgnoreCase("securitycontextconstraints")){
hasMetadata.setApiVersion("v1");
return;
}
}*/
String version = getApiGroupVersion();
if (hasMetadata != null && version != null && version.length() > 0) {
String current = hasMetadata.getApiVersion();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

public class SecurityContextConstraintExample {

//You need to be login as admin on Openshift for this
//You need to be login as admin on Openshift for this Example
//command for that is
//oc login -u system:admin

Expand Down

0 comments on commit 7412c68

Please sign in to comment.