-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #259 from mayrf/publish-edp-keycloak-operator
Publish module edp-keycloak-operator
- Loading branch information
Showing
17 changed files
with
6,531 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
2,577 changes: 2,577 additions & 0 deletions
2,577
edp-keycloak-operator/crds/edp-keycloak-operator.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
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,7 @@ | ||
[package] | ||
name = "edp-keycloak-operator" | ||
edition = "v0.10.0" | ||
version = "v1.23.0" | ||
|
||
[dependencies] | ||
k8s = "1.31.2" |
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,5 @@ | ||
[dependencies] | ||
[dependencies.k8s] | ||
name = "k8s" | ||
full_name = "k8s_1.31.2" | ||
version = "1.31.2" |
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,143 @@ | ||
""" | ||
This file was generated by the KCL auto-gen tool. DO NOT EDIT. | ||
Editing this file might prove futile when you re-run the KCL auto-gen generate command. | ||
""" | ||
import k8s.apimachinery.pkg.apis.meta.v1 | ||
|
||
|
||
schema Keycloak: | ||
r""" | ||
Keycloak is the Schema for the keycloaks API. | ||
|
||
Attributes | ||
---------- | ||
apiVersion : str, default is "v1.edp.epam.com/v1", required | ||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | ||
kind : str, default is "Keycloak", required | ||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | ||
metadata : v1.ObjectMeta, default is Undefined, optional | ||
metadata | ||
spec : V1EdpEpamComV1KeycloakSpec, default is Undefined, optional | ||
spec | ||
status : V1EdpEpamComV1KeycloakStatus, default is Undefined, optional | ||
status | ||
""" | ||
|
||
|
||
apiVersion: "v1.edp.epam.com/v1" = "v1.edp.epam.com/v1" | ||
|
||
kind: "Keycloak" = "Keycloak" | ||
|
||
metadata?: v1.ObjectMeta | ||
|
||
spec?: V1EdpEpamComV1KeycloakSpec | ||
|
||
status?: V1EdpEpamComV1KeycloakStatus | ||
|
||
|
||
schema V1EdpEpamComV1KeycloakSpec: | ||
r""" | ||
KeycloakSpec defines the desired state of Keycloak. | ||
|
||
Attributes | ||
---------- | ||
adminType : str, default is Undefined, optional | ||
AdminType can be user or serviceAccount, if serviceAccount was specified, then client_credentials grant type should be used for getting admin realm token. | ||
caCert : V1EdpEpamComV1KeycloakSpecCaCert, default is Undefined, optional | ||
ca cert | ||
insecureSkipVerify : bool, default is Undefined, optional | ||
InsecureSkipVerify controls whether api client verifies the server's | ||
certificate chain and host name. If InsecureSkipVerify is true, api client | ||
accepts any certificate presented by the server and any host name in that | ||
certificate. | ||
secret : str, default is Undefined, required | ||
Secret is a secret name which contains admin credentials. | ||
url : str, default is Undefined, required | ||
URL of keycloak service. | ||
""" | ||
|
||
|
||
adminType?: "serviceAccount" | "user" | ||
|
||
caCert?: V1EdpEpamComV1KeycloakSpecCaCert | ||
|
||
insecureSkipVerify?: bool | ||
|
||
secret: str | ||
|
||
url: str | ||
|
||
|
||
schema V1EdpEpamComV1KeycloakSpecCaCert: | ||
r""" | ||
CACert defines the root certificate authority | ||
that api client use when verifying server certificates. | ||
|
||
Attributes | ||
---------- | ||
configMapKeyRef : V1EdpEpamComV1KeycloakSpecCaCertConfigMapKeyRef, default is Undefined, optional | ||
config map key ref | ||
secretKeyRef : V1EdpEpamComV1KeycloakSpecCaCertSecretKeyRef, default is Undefined, optional | ||
secret key ref | ||
""" | ||
|
||
|
||
configMapKeyRef?: V1EdpEpamComV1KeycloakSpecCaCertConfigMapKeyRef | ||
|
||
secretKeyRef?: V1EdpEpamComV1KeycloakSpecCaCertSecretKeyRef | ||
|
||
|
||
schema V1EdpEpamComV1KeycloakSpecCaCertConfigMapKeyRef: | ||
r""" | ||
Selects a key of a ConfigMap. | ||
|
||
Attributes | ||
---------- | ||
key : str, default is Undefined, required | ||
The key to select. | ||
name : str, default is Undefined, optional | ||
Name of the referent. | ||
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | ||
TODO: Add other useful fields. apiVersion, kind, uid? | ||
""" | ||
|
||
|
||
key: str | ||
|
||
name?: str | ||
|
||
|
||
schema V1EdpEpamComV1KeycloakSpecCaCertSecretKeyRef: | ||
r""" | ||
Selects a key of a secret. | ||
|
||
Attributes | ||
---------- | ||
key : str, default is Undefined, required | ||
The key of the secret to select from. | ||
name : str, default is Undefined, optional | ||
Name of the referent. | ||
More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | ||
TODO: Add other useful fields. apiVersion, kind, uid? | ||
""" | ||
|
||
|
||
key: str | ||
|
||
name?: str | ||
|
||
|
||
schema V1EdpEpamComV1KeycloakStatus: | ||
r""" | ||
KeycloakStatus defines the observed state of Keycloak. | ||
|
||
Attributes | ||
---------- | ||
connected : bool, default is Undefined, required | ||
Connected shows if keycloak service is up and running. | ||
""" | ||
|
||
|
||
connected: bool | ||
|
||
|
180 changes: 180 additions & 0 deletions
180
edp-keycloak-operator/v1/v1_edp_epam_com_v1_keycloak_auth_flow.k
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,180 @@ | ||
""" | ||
This file was generated by the KCL auto-gen tool. DO NOT EDIT. | ||
Editing this file might prove futile when you re-run the KCL auto-gen generate command. | ||
""" | ||
import k8s.apimachinery.pkg.apis.meta.v1 | ||
|
||
|
||
schema KeycloakAuthFlow: | ||
r""" | ||
KeycloakAuthFlow is the Schema for the keycloak authentication flow API. | ||
|
||
Attributes | ||
---------- | ||
apiVersion : str, default is "v1.edp.epam.com/v1", required | ||
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | ||
kind : str, default is "KeycloakAuthFlow", required | ||
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | ||
metadata : v1.ObjectMeta, default is Undefined, optional | ||
metadata | ||
spec : V1EdpEpamComV1KeycloakAuthFlowSpec, default is Undefined, optional | ||
spec | ||
status : V1EdpEpamComV1KeycloakAuthFlowStatus, default is Undefined, optional | ||
status | ||
""" | ||
|
||
|
||
apiVersion: "v1.edp.epam.com/v1" = "v1.edp.epam.com/v1" | ||
|
||
kind: "KeycloakAuthFlow" = "KeycloakAuthFlow" | ||
|
||
metadata?: v1.ObjectMeta | ||
|
||
spec?: V1EdpEpamComV1KeycloakAuthFlowSpec | ||
|
||
status?: V1EdpEpamComV1KeycloakAuthFlowStatus | ||
|
||
|
||
schema V1EdpEpamComV1KeycloakAuthFlowSpec: | ||
r""" | ||
KeycloakAuthFlowSpec defines the desired state of KeycloakAuthFlow. | ||
|
||
Attributes | ||
---------- | ||
alias : str, default is Undefined, required | ||
Alias is display name for authentication flow. | ||
authenticationExecutions : [V1EdpEpamComV1KeycloakAuthFlowSpecAuthenticationExecutionsItems0], default is Undefined, optional | ||
AuthenticationExecutions is list of authentication executions for this auth flow. | ||
builtIn : bool, default is Undefined, required | ||
BuiltIn is true if this is built-in auth flow. | ||
childRequirement : str, default is Undefined, optional | ||
ChildRequirement is requirement for child execution. Available options: REQUIRED, ALTERNATIVE, DISABLED, CONDITIONAL. | ||
childType : str, default is Undefined, optional | ||
ChildType is type for auth flow if it has a parent, available options: basic-flow, form-flow | ||
description : str, default is Undefined, optional | ||
Description is description for authentication flow. | ||
parentName : str, default is Undefined, optional | ||
ParentName is name of parent auth flow. | ||
providerId : str, default is Undefined, required | ||
ProviderID for root auth flow and provider for child auth flows. | ||
realm : str, default is Undefined, optional | ||
Deprecated: use RealmRef instead. | ||
Realm is name of KeycloakRealm custom resource. | ||
realmRef : V1EdpEpamComV1KeycloakAuthFlowSpecRealmRef, default is Undefined, optional | ||
realm ref | ||
topLevel : bool, default is Undefined, required | ||
TopLevel is true if this is root auth flow. | ||
""" | ||
|
||
|
||
alias: str | ||
|
||
authenticationExecutions?: [V1EdpEpamComV1KeycloakAuthFlowSpecAuthenticationExecutionsItems0] | ||
|
||
builtIn: bool | ||
|
||
childRequirement?: str | ||
|
||
childType?: str | ||
|
||
description?: str | ||
|
||
parentName?: str | ||
|
||
providerId: str | ||
|
||
realm?: str | ||
|
||
realmRef?: V1EdpEpamComV1KeycloakAuthFlowSpecRealmRef | ||
|
||
topLevel: bool | ||
|
||
|
||
schema V1EdpEpamComV1KeycloakAuthFlowSpecAuthenticationExecutionsItems0: | ||
r""" | ||
AuthenticationExecution defines keycloak authentication execution. | ||
|
||
Attributes | ||
---------- | ||
alias : str, default is Undefined, optional | ||
Alias is display name for this execution. | ||
authenticator : str, default is Undefined, optional | ||
Authenticator is name of authenticator. | ||
authenticatorConfig : V1EdpEpamComV1KeycloakAuthFlowSpecAuthenticationExecutionsItems0AuthenticatorConfig, default is Undefined, optional | ||
authenticator config | ||
authenticatorFlow : bool, default is Undefined, optional | ||
AuthenticatorFlow is true if this is auth flow. | ||
priority : int, default is Undefined, optional | ||
Priority is priority for this execution. Lower values have higher priority. | ||
requirement : str, default is Undefined, optional | ||
Requirement is requirement for this execution. Available options: REQUIRED, ALTERNATIVE, DISABLED, CONDITIONAL. | ||
""" | ||
|
||
|
||
alias?: str | ||
|
||
authenticator?: str | ||
|
||
authenticatorConfig?: V1EdpEpamComV1KeycloakAuthFlowSpecAuthenticationExecutionsItems0AuthenticatorConfig | ||
|
||
authenticatorFlow?: bool | ||
|
||
priority?: int | ||
|
||
requirement?: str | ||
|
||
|
||
schema V1EdpEpamComV1KeycloakAuthFlowSpecAuthenticationExecutionsItems0AuthenticatorConfig: | ||
r""" | ||
AuthenticatorConfig is configuration for authenticator. | ||
|
||
Attributes | ||
---------- | ||
alias : str, default is Undefined, optional | ||
Alias is display name for authenticator config. | ||
config : {str:str}, default is Undefined, optional | ||
Config is configuration for authenticator. | ||
""" | ||
|
||
|
||
alias?: str | ||
|
||
config?: {str:str} | ||
|
||
|
||
schema V1EdpEpamComV1KeycloakAuthFlowSpecRealmRef: | ||
r""" | ||
RealmRef is reference to Realm custom resource. | ||
|
||
Attributes | ||
---------- | ||
kind : str, default is Undefined, optional | ||
Kind specifies the kind of the Keycloak resource. | ||
name : str, default is Undefined, optional | ||
Name specifies the name of the Keycloak resource. | ||
""" | ||
|
||
|
||
kind?: "KeycloakRealm" | "ClusterKeycloakRealm" | ||
|
||
name?: str | ||
|
||
|
||
schema V1EdpEpamComV1KeycloakAuthFlowStatus: | ||
r""" | ||
KeycloakAuthFlowStatus defines the observed state of KeycloakAuthFlow. | ||
|
||
Attributes | ||
---------- | ||
failureCount : int, default is Undefined, optional | ||
failure count | ||
value : str, default is Undefined, optional | ||
value | ||
""" | ||
|
||
|
||
failureCount?: int | ||
|
||
value?: str | ||
|
||
|
Oops, something went wrong.