Skip to content

Commit

Permalink
modify unused apis, fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kkb0318 committed Jun 1, 2024
1 parent 6121971 commit 6016727
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 104 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ spec:
Check the IRSASetup custom resource status to verify whether it is set to true.
5. Modify kube-apiserver Settings
> [!NOTE]
> Please ensure that only one IRSASetup resource is created.
4. Modify kube-apiserver Settings
If the IRSASetup status is true, a key file (Name: `irsa-manager-key` , Namespace: `kube-system` ) will be created. This is used for signing tokens in the kubernetes API.
Execute the following commands on the control plane server to save the public and private keys locally for Kubernetes signatures:
Expand Down
18 changes: 0 additions & 18 deletions api/v1alpha1/irsasetup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ type IRSASetupSpec struct {
// Discovery configures the IdP Discovery process, essential for setting up IRSA by locating
// the OIDC provider information.
Discovery Discovery `json:"discovery"`

// Auth contains authentication configuration details.
Auth Auth `json:"auth,omitempty"`
}

// Discovery holds the configuration for IdP Discovery, which is crucial for locating
Expand All @@ -60,21 +57,6 @@ type S3Discovery struct {
BucketName string `json:"bucketName"`
}

// Auth holds the authentication configuration details.
type Auth struct {
// SecretRef specifies the reference to the Kubernetes secret containing authentication details.
SecretRef SecretRef `json:"secretRef"`
}

// SecretRef contains the reference to a Kubernetes secret.
type SecretRef struct {
// Name specifies the name of the secret.
Name string `json:"name"`

// Namespace specifies the namespace of the secret.
Namespace string `json:"namespace,omitempty"`
}

// IRSASetupStatus defines the observed state of IRSASetup
type IRSASetupStatus struct {
SelfHostedSetup []metav1.Condition `json:"selfHostedSetup,omitempty"`
Expand Down
32 changes: 0 additions & 32 deletions api/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 0 additions & 19 deletions config/crd/bases/irsa.kkb0318.github.io_irsasetups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,6 @@ spec:
spec:
description: IRSASetupSpec defines the desired state of IRSASetup
properties:
auth:
description: Auth contains authentication configuration details.
properties:
secretRef:
description: SecretRef specifies the reference to the Kubernetes
secret containing authentication details.
properties:
name:
description: Name specifies the name of the secret.
type: string
namespace:
description: Namespace specifies the namespace of the secret.
type: string
required:
- name
type: object
required:
- secretRef
type: object
cleanup:
description: |-
Cleanup, when enabled, allows the IRSASetup to perform garbage collection
Expand Down
34 changes: 0 additions & 34 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,6 @@ Package v1alpha1 contains API Schema definitions for the irsa v1alpha1 API group



#### Auth



Auth holds the authentication configuration details.



_Appears in:_
- [IRSASetupSpec](#irsasetupspec)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `secretRef` _[SecretRef](#secretref)_ | SecretRef specifies the reference to the Kubernetes secret containing authentication details. | | |


#### Discovery


Expand Down Expand Up @@ -118,7 +102,6 @@ _Appears in:_
| `cleanup` _boolean_ | Cleanup, when enabled, allows the IRSASetup to perform garbage collection<br />of resources that are no longer needed or managed. | | |
| `mode` _string_ | Mode specifies the mode of operation. Can be either "selfhosted" or "eks". | | |
| `discovery` _[Discovery](#discovery)_ | Discovery configures the IdP Discovery process, essential for setting up IRSA by locating<br />the OIDC provider information. | | |
| `auth` _[Auth](#auth)_ | Auth contains authentication configuration details. | | |



Expand Down Expand Up @@ -177,22 +160,5 @@ _Appears in:_
| `bucketName` _string_ | BucketName is the name of the S3 bucket that hosts the OIDC discovery information. | | |


#### SecretRef



SecretRef contains the reference to a Kubernetes secret.



_Appears in:_
- [Auth](#auth)

| Field | Description | Default | Validation |
| --- | --- | --- | --- |
| `name` _string_ | Name specifies the name of the secret. | | |
| `namespace` _string_ | Namespace specifies the namespace of the secret. | | |




0 comments on commit 6016727

Please sign in to comment.