Skip to content

Commit

Permalink
fix linter and add comment on build tag to readme
Browse files Browse the repository at this point in the history
  • Loading branch information
derpsteb committed Dec 4, 2024
1 parent 7af050a commit b038c0c
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 11 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ run:
modules-download-mode: readonly
build-tags:
- e2e
- contrast_unstable_api

output:
formats:
Expand Down
2 changes: 1 addition & 1 deletion e2e/aks-runtime/aks_runtime_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 Edgeless Systems GmbH
// SPDX-License-Identifier: AGPL-3.0-only

//go:build e2e
//go:build e2e && contrast_unstable_api

package aksruntime

Expand Down
2 changes: 1 addition & 1 deletion e2e/genpolicy/genpolicy_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 Edgeless Systems GmbH
// SPDX-License-Identifier: AGPL-3.0-only

//go:build e2e
//go:build e2e && contrast_unstable_api

package genpolicy

Expand Down
2 changes: 1 addition & 1 deletion e2e/getdents/getdents_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 Edgeless Systems GmbH
// SPDX-License-Identifier: AGPL-3.0-only

//go:build e2e
//go:build e2e && contrast_unstable_api

package getdents

Expand Down
2 changes: 1 addition & 1 deletion e2e/internal/contrasttest/contrasttest.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 Edgeless Systems GmbH
// SPDX-License-Identifier: AGPL-3.0-only

//go:build e2e
//go:build e2e && contrast_unstable_api

package contrasttest

Expand Down
2 changes: 1 addition & 1 deletion e2e/openssl/openssl_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 Edgeless Systems GmbH
// SPDX-License-Identifier: AGPL-3.0-only

//go:build e2e
//go:build e2e && contrast_unstable_api

package openssl

Expand Down
2 changes: 1 addition & 1 deletion e2e/policy/policy_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 Edgeless Systems GmbH
// SPDX-License-Identifier: AGPL-3.0-only

//go:build e2e
//go:build e2e && contrast_unstable_api

package policy

Expand Down
2 changes: 1 addition & 1 deletion e2e/regression/regression_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 Edgeless Systems GmbH
// SPDX-License-Identifier: AGPL-3.0-only

//go:build e2e
//go:build e2e && contrast_unstable_api

package regression

Expand Down
2 changes: 1 addition & 1 deletion e2e/servicemesh/servicemesh_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 Edgeless Systems GmbH
// SPDX-License-Identifier: AGPL-3.0-only

//go:build e2e
//go:build e2e && contrast_unstable_api

package servicemesh

Expand Down
2 changes: 1 addition & 1 deletion e2e/volumestatefulset/volumestatefulset_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 Edgeless Systems GmbH
// SPDX-License-Identifier: AGPL-3.0-only

//go:build e2e
//go:build e2e && contrast_unstable_api

package volumestatefulset

Expand Down
2 changes: 1 addition & 1 deletion e2e/workloadsecret/workloadsecret_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2024 Edgeless Systems GmbH
// SPDX-License-Identifier: AGPL-3.0-only

//go:build e2e
//go:build e2e && contrast_unstable_api

package workloadsecret

Expand Down
5 changes: 4 additions & 1 deletion packages/by-name/contrast/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ let
;
pname = "${contrast.pname}-e2e";

tags = [ "e2e" "contrast_unstable_api" ];
tags = [
"e2e"
"contrast_unstable_api"
];

subPackages = [
"e2e/genpolicy"
Expand Down
5 changes: 5 additions & 0 deletions sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@
Please expect breaking changes with new minor versions.

The SDK allows writing programs that interact with a Contrast deployment like the CLI does, without relying on the CLI.

# Building

To build the SDK please add the build tag `contrast_unstable_api` to the importing module's files and build commands.
This tag will be removed once the SDK is officially removed.

0 comments on commit b038c0c

Please sign in to comment.