class SecurityContextConstraintExample {

  private static final Logger logger = LoggerFactory.getLogger(SecurityContextConstraintExample.class);

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

  public static void main(String[] args) {<FILL_FUNCTION_BODY>}

}

    try (OpenShiftClient client = new KubernetesClientBuilder().build().adapt(OpenShiftClient.class)) {
      logger.info("Cluster SecurityContextConstraints:");
      client.securityContextConstraints().list().getItems().forEach(scc -> logger.info(" - {}", scc.getMetadata().getName()));
      final SecurityContextConstraints scc = client.securityContextConstraints().resource(
          new SecurityContextConstraintsBuilder()
              .withNewMetadata().withName("scc").endMetadata()
              .withAllowPrivilegedContainer(true)
              .withNewRunAsUser()
              .withType("RunAsAny")
              .endRunAsUser()
              .withNewSeLinuxContext()
              .withType("RunAsAny")
              .endSeLinuxContext()
              .withNewFsGroup()
              .withType("RunAsAny")
              .endFsGroup()
              .withNewSupplementalGroups()
              .withType("RunAsAny")
              .endSupplementalGroups()
              .addToUsers("admin")
              .addToGroups("admin-group")
              .build())
          .create();
      logger.info("Created SecurityContextConstraints {}", scc);
    } catch (KubernetesClientException e) {
      logger.error(e.getMessage(), e);
    }
  
<no_super_class>