Skip to content

Commit

Permalink
add gp42/aws-auth-operator
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Hoß <[email protected]>
  • Loading branch information
sebhoss committed Nov 12, 2023
1 parent f7174a5 commit a5db7e1
Show file tree
Hide file tree
Showing 7 changed files with 130 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ Files: crd-catalog/GoogleCloudPlatform/spark-on-k8s-operator/*
Copyright: The GoogleCloudPlatform/spark-on-k8s-operator Authors
License: Apache-2.0

Files: crd-catalog/gp42/aws-auth-operator/*
Copyright: The gp42/aws-auth-operator Authors
License: Apache-2.0

Files: crd-catalog/grafana-operator/grafana-operator/*
Copyright: The grafana-operator/grafana-operator Authors
License: Apache-2.0
Expand Down
8 changes: 8 additions & 0 deletions code-generator/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,14 @@ pub const CRD_V1_SOURCES: &'static [UpstreamSource] = &[
"https://github.com/GoogleCloudPlatform/spark-on-k8s-operator/blob/master/charts/spark-operator-chart/crds/sparkoperator.k8s.io_sparkapplications.yaml",
],
},
UpstreamSource {
project_name: "gp42/aws-auth-operator",
license: APACHE_V2,
urls: &[
"https://github.com/gp42/aws-auth-operator/blob/main/config/crd/bases/auth.ops42.org_awsauthconfigs.yaml",
"https://github.com/gp42/aws-auth-operator/blob/main/config/crd/bases/auth.ops42.org_awsauthsyncconfigs.yaml",
],
},
UpstreamSource {
project_name: "grafana-operator/grafana-operator",
license: APACHE_V2,
Expand Down
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: []
1 change: 1 addition & 0 deletions kube-custom-resources-rs/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ argoproj_io_v1beta1 = []
asdb_aerospike_com_v1 = []
asdb_aerospike_com_v1beta1 = []
atlasmap_io_v1alpha1 = []
auth_ops42_org_v1alpha1 = []
authzed_com_v1alpha1 = []
autoscaling_k8s_io_v1 = []
autoscaling_k8s_io_v1beta2 = []
Expand Down
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>,
}

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub mod awsauthsyncconfigs;
9 changes: 9 additions & 0 deletions kube-custom-resources-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,13 @@ apiVersion: `atlasmap.io/v1alpha1`
kinds:
- `AtlasMap`
## auth_ops42_org_v1alpha1
apiVersion: `auth.ops42.org/v1alpha1`
kinds:
- `AwsAuthSyncConfig`
## authzed_com_v1alpha1
apiVersion: `authzed.com/v1alpha1`
Expand Down Expand Up @@ -2694,6 +2701,8 @@ pub mod asdb_aerospike_com_v1;
pub mod asdb_aerospike_com_v1beta1;
#[cfg(feature = "atlasmap_io_v1alpha1")]
pub mod atlasmap_io_v1alpha1;
#[cfg(feature = "auth_ops42_org_v1alpha1")]
pub mod auth_ops42_org_v1alpha1;
#[cfg(feature = "authzed_com_v1alpha1")]
pub mod authzed_com_v1alpha1;
#[cfg(feature = "autoscaling_k8s_io_v1")]
Expand Down

0 comments on commit a5db7e1

Please sign in to comment.