-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sebastian Hoß <[email protected]>
- Loading branch information
Showing
7 changed files
with
130 additions
and
0 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
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
69 changes: 69 additions & 0 deletions
69
crd-catalog/gp42/aws-auth-operator/auth.ops42.org/v1alpha1/awsauthsyncconfigs.yaml
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,69 @@ | ||
apiVersion: apiextensions.k8s.io/v1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
annotations: | ||
controller-gen.kubebuilder.io/version: v0.4.1 | ||
name: awsauthsyncconfigs.auth.ops42.org | ||
spec: | ||
group: auth.ops42.org | ||
names: | ||
kind: AwsAuthSyncConfig | ||
listKind: AwsAuthSyncConfigList | ||
plural: awsauthsyncconfigs | ||
singular: awsauthsyncconfig | ||
scope: Namespaced | ||
versions: | ||
- name: v1alpha1 | ||
schema: | ||
openAPIV3Schema: | ||
description: AwsAuthSyncConfig is the Schema for the awsauthsyncconfigs API | ||
properties: | ||
apiVersion: | ||
description: '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' | ||
type: string | ||
kind: | ||
description: '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' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: AwsAuthSyncConfigSpec defines the desired state of AwsAuthSyncConfig | ||
properties: | ||
syncIamGroups: | ||
description: Sync AWS IAM groups to k8s RBAC groups | ||
items: | ||
properties: | ||
dest: | ||
description: Destination K8s RBAC group for synchronization | ||
type: string | ||
source: | ||
description: Source AWS IAM group for synchronization | ||
type: string | ||
required: | ||
- dest | ||
- source | ||
type: object | ||
type: array | ||
type: object | ||
status: | ||
description: AwsAuthSyncConfigStatus defines the observed state of AwsAuthSyncConfig | ||
properties: | ||
lastSyncTime: | ||
description: 'Important: Run "make" to regenerate code after modifying this file' | ||
format: date-time | ||
type: string | ||
status: | ||
description: 'one of: "Success", "Failure", "No Change"' | ||
type: string | ||
type: object | ||
type: object | ||
served: true | ||
storage: true | ||
subresources: | ||
status: {} | ||
status: | ||
acceptedNames: | ||
kind: '' | ||
plural: '' | ||
conditions: [] | ||
storedVersions: [] |
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
38 changes: 38 additions & 0 deletions
38
kube-custom-resources-rs/src/auth_ops42_org_v1alpha1/awsauthsyncconfigs.rs
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,38 @@ | ||
// WARNING: generated by kopium - manual changes will be overwritten | ||
// kopium command: kopium --docs --filename=./crd-catalog/gp42/aws-auth-operator/auth.ops42.org/v1alpha1/awsauthsyncconfigs.yaml --derive=Default --derive=PartialEq | ||
// kopium version: 0.16.2 | ||
|
||
use kube::CustomResource; | ||
use serde::{Serialize, Deserialize}; | ||
|
||
/// AwsAuthSyncConfigSpec defines the desired state of AwsAuthSyncConfig | ||
#[derive(CustomResource, Serialize, Deserialize, Clone, Debug, Default, PartialEq)] | ||
#[kube(group = "auth.ops42.org", version = "v1alpha1", kind = "AwsAuthSyncConfig", plural = "awsauthsyncconfigs")] | ||
#[kube(namespaced)] | ||
#[kube(status = "AwsAuthSyncConfigStatus")] | ||
#[kube(schema = "disabled")] | ||
pub struct AwsAuthSyncConfigSpec { | ||
/// Sync AWS IAM groups to k8s RBAC groups | ||
#[serde(default, skip_serializing_if = "Option::is_none", rename = "syncIamGroups")] | ||
pub sync_iam_groups: Option<Vec<AwsAuthSyncConfigSyncIamGroups>>, | ||
} | ||
|
||
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)] | ||
pub struct AwsAuthSyncConfigSyncIamGroups { | ||
/// Destination K8s RBAC group for synchronization | ||
pub dest: String, | ||
/// Source AWS IAM group for synchronization | ||
pub source: String, | ||
} | ||
|
||
/// AwsAuthSyncConfigStatus defines the observed state of AwsAuthSyncConfig | ||
#[derive(Serialize, Deserialize, Clone, Debug, Default, PartialEq)] | ||
pub struct AwsAuthSyncConfigStatus { | ||
/// Important: Run "make" to regenerate code after modifying this file | ||
#[serde(default, skip_serializing_if = "Option::is_none", rename = "lastSyncTime")] | ||
pub last_sync_time: Option<String>, | ||
/// one of: "Success", "Failure", "No Change" | ||
#[serde(default, skip_serializing_if = "Option::is_none")] | ||
pub status: Option<String>, | ||
} | ||
|
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 @@ | ||
pub mod awsauthsyncconfigs; |
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